-
Notifications
You must be signed in to change notification settings - Fork 872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maven daemon support #3210
maven daemon support #3210
Conversation
Seems related to #3198. Maybe good to synchronize idea |
@ebarboni I'm not sure they need synchronizing. I don't think this will conflict having looked at the changes. The |
might resolve https://issues.apache.org/jira/browse/NETBEANS-4746 |
two issues encountered while working with mvnd:
|
What about distributing |
not sure if i would recommend doing this tbh. First of all, there is a chance that mvnd will merge with maven in the next major version of maven (so i heard). Also, if mvnw takes off, it will be just a flag and everything downloads behind the scene anyway - no need to bundle anything. There is also the issue with mvnd being MT, which will cause build failures on some projects or plugin combinations. So it can't be made default. I tested it on some dusty projects and not all of them built reliably with mvnd. the best strategy might be to wait a bit longer while supporting a little bit of everything. If mvnd merges with maven and mvnw takes off... things might get simpler, and NB could remove/unify some code. |
I have used |
let me rephrase: as |
sure, I tested this PR with that config. if you set path to mvnd/mvn/ you get maven, if you set path to mvnd/ you get mvnd. I don't have anything against it. But if there is an easy way to bundle the mvnd+mvn combo in another PR and set the paths accordingly by default, why not. Just don't put too much effort into it i would say ;) |
this might be too risky to be merged for 12.6. I did only basic clean/build/run manual testing with it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
mvnd 0.7.1 seems to be working better, the console output is very similar to regular maven and most simple projects I tested worked fine. (roller selenium tests didn't work with mvnd for example but this is not NB' fault) mvnd also recently became an apache project rebased this PR to latest master. All tests are green. I think we could integrate this as minimal/experimental feature. |
Got
|
added minimal support for https://github.com/mvndaemon/mvnd
maven home has the following layout:
while mvnd home looks like:
This PR allows users to set a mvnd home as a maven home, NetBeans will then use mvnd and also be able to query the maven version from the bundled maven home.
did a little bit of manual testing and it seems that everything is working fine.
potentially related jira issue:
https://issues.apache.org/jira/browse/NETBEANS-4746