maven-mvnd
maven-mvnd copied to clipboard
[discuss] mvndw, alias and more support?
Hi,
- I wonder if a mvndw is planned with a correct option parsing (maven one is not yet) which would enable to replace mvnw in script to benefit mvnd.
- also wonder if alias command support can be added ('mvnd my-alias" which would run "mvnd install -pl foo -pl bar" etc)
- lastly i wonder if mvnd can cache most of the cache for releases in .m2 to just reload it when started - and benefit the no daemon mode
- I wonder if a mvndw is planned with a correct option parsing (maven one is not yet) which would enable to replace mvnw in script to benefit mvnd.
Could you please explain what do you mean with "correct option parsing"?
- also wonder if alias command support can be added ('mvnd my-alias" which would run "mvnd install -pl foo -pl bar" etc)
This functionality is provided by shell. What would be the added value to balance the design and maintenance overhead in mvnd?
- lastly i wonder if mvnd can cache most of the cache for releases in .m2 to just reload it when started - and benefit the no daemon mode
Interesting idea.
P.S.: One question per issue would make it easier to track the individual questions.
This is related to https://github.com/mvndaemon/mvnd/issues/143
The main problem is that currently mvnd is tied to a specific maven version, because the maven cli is not extensible enough for mvnd and I did not want to rewrite it all.
Maybe patching a bit more mvn script and replacing this part - even with plain java code since mvnd can do it (yeah!) would make sense? Another common use case is to be able to force a java version before launching the maven command (either with sdk use java xxx or a plain script). Would be great to be able to put it in $rootProject/.mvnd/script.jshell or so (only point to take care is this should be optional - maybe an option --skip-mvnd-script - to enable to bypass it if we set up the env manually)
wdyt?