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.

Bug 237618 - Support possibility to run the project without server configured in the IDE
Summary: Support possibility to run the project without server configured in the IDE
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-24 11:33 UTC by Martin Janicek
Modified: 2014-07-23 02:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project (3.09 KB, application/zip)
2013-10-24 11:33 UTC, Martin Janicek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Janicek 2013-10-24 11:33:55 UTC
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)
Comment 1 Martin Janicek 2013-11-27 09:48:21 UTC
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..
Comment 2 Martin Janicek 2013-11-27 10:08:27 UTC
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).
Comment 3 Martin Janicek 2013-11-27 14:02:20 UTC
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.
Comment 4 Quality Engineering 2013-11-28 02:44:28 UTC
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
Comment 5 Martin Janicek 2014-07-22 07:55:01 UTC
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
Comment 6 Quality Engineering 2014-07-23 02:09:11 UTC
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