This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 141514 [details] Test project As suggested by Jarda, we should support possibility to run Maven Web project that don't have any server configured within the IDE (see attached simple project)
First part done in web-main #f9f60d30cb26 Now it should work correctly even for projects without server BUT you still need to have at least one server instance (of the type of which you are using it's goals) registered within the IDE. I'm trying to improve it to be able to work even without any server registered, but that's not working at the moment. I'll keep trying..
Jardo could you please try it and tell me if the current behavior is what you expected or not? Even with no server defined, the tomcat7:run gets called, Tomcat is started, application is deployed.. but in such case I have no idea what's the context and I'm not sure if it would be possible to open the browser automatically (on the correct URL of course).
Two more updates done in: web-main #f1bc0106ec6b web-main #16c04743e04f Now if there is more instances of the requested type of the server, user is asked to choose one of them for the correct deployment.
Integrated into 'main-silver', will be available in build *201311280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f9f60d30cb26 User: Martin Janicek <mjanicek@netbeans.org> Log: #237618 - Support possibility to run the project without server configured in the IDE
web-main #2ba6a9f13ebe Now the IDE takes a look if there is explicitly defined server and if it is, then use this one. Otherwise it will use whatever is defined by custom actions. That means for using tomcat7:run, jetty:run etc. you don't need to do anything special, just register the goal action and declare plugin in pom.xml
Integrated into 'main-silver', will be available in build *201407230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2ba6a9f13ebe User: Martin Janicek <mjanicek@netbeans.org> Log: #237618 + #245111 - Improving support for using servers not registered within IDE but rather defined by maven plugin itself