maven-mvnd icon indicating copy to clipboard operation
maven-mvnd copied to clipboard

[discuss] mvndw, alias and more support?

Open rmannibucau opened this issue 4 years ago • 3 comments
trafficstars

Hi,

  1. 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.
  2. also wonder if alias command support can be added ('mvnd my-alias" which would run "mvnd install -pl foo -pl bar" etc)
  3. 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

rmannibucau avatar Feb 22 '21 07:02 rmannibucau

  1. 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"?

  1. 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?

  1. 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.

ppalaga avatar Feb 22 '21 08:02 ppalaga

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.

gnodet avatar Apr 02 '21 07:04 gnodet

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?

rmannibucau avatar Sep 01 '21 08:09 rmannibucau