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 223217 - Running Maven project with Jetty support to scan the local maven dependency project
Summary: Running Maven project with Jetty support to scan the local maven dependency p...
Status: RESOLVED DUPLICATE of bug 243484
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-04 04:40 UTC by jumperchen
Modified: 2014-07-30 12:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jumperchen 2012-12-04 04:40:55 UTC
Like Eclipse's plugin - http://code.google.com/p/run-jetty-run/

It can run the maven project with jetty and scan its local maven dependency project, if you are working with multi-projects.

The benefit is that it doesn't need to run the war:war phase and automatically redeploy when another local maven dependency changed and all the jobs can be done in a second.
Comment 1 Milos Kleint 2012-12-04 07:10:13 UTC
if it's just about associating mvn jetty:run with the Run action, that should be easily achievable by editing the project properties, actions panel.
Comment 2 jumperchen 2012-12-04 08:04:24 UTC
No, the actions panel cannot detect the dependency project's change, unless you have to put all the stuff in the pom.xml, but if the project is edited by a lot of developers and it cannot be hard-code in the pom.xml, that means each developer has their own dependency, which needs to be scanned by jetty server.

I had tried a lot of way to solve this, but so far I can do is to use jetty:run with the current project, and use terminal to run with rsync to sync another maven projects to the current maven classpath, which is not efficient. That is why we cannot make a decision to move from Eclipse to NetBeans.

I also checked with NetBeans's source code, it seems that have a way to check if there depend on some of the local dependency projects, and then the NetBeans's IDE should be able to add the dependency scanner for jetty server. Sorry for that I am not a NetBeans's plugin expert, I cannot do this by myself.
Comment 3 jumperchen 2012-12-04 08:24:57 UTC
By the way, if you means the "Build With Dependencies", it will package each dependencies as a jar and then run with the current war project, that will spend 30~40 seconds in my SSD hard-disk, not like Run-Jetty-Run in a second.
Comment 4 Martin Janicek 2014-07-30 12:39:08 UTC

*** This bug has been marked as a duplicate of bug 243484 ***