-
Notifications
You must be signed in to change notification settings - Fork 216
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
Set maven version like maven-wrapper #143
Comments
It is true that we embed Maven, but we modify it slightly. Pulling a random Maven version during the build and running with it would be rather risky because we test only against a single particular Maven version. Providing our own |
Oh, sorry I did not want to close. |
That sounds like a good idea, if it's not possible to use Maven out of the box. Adding a |
I thought it could work the very same way as with stock Maven:
|
Hm. Not sure if I understand that correctly, but this kind of solution would "only" allow to select a specific version of mvnd (like e.g. 0.0.9), wouldn't it? |
I am quite sure that supporting older Maven versions is not a priority for me and @gnodet but we are still open to contributions in case anybody else would like to work on that. |
Would it be possible to summarize what modifications you need to do to Maven, @ppalaga ? |
Start with downgrading Maven around here: https://github.com/mvndaemon/mvnd/blob/master/pom.xml#L46 |
@herder Maybe not exactly the answer you are looking for, but: With SDKMAN! it's possible to fix the The only thing missing currently is the functionality to automatically install the versions present in the For more information: |
Thinking about it this would maybe be better placed in the Maven-wrapper project? Since it downloads maven versions anyway, it might be easier to modify that script to either download the regular maven binary or a |
Fwiw, I think it would be nice if we could get |
Would be nice to allow a way for, say, IntelliJ (which wants just a path to maven directory), to be able to enjoy the benefits just by running a 'mvn', and it will use the mvnd. Kinda like a 'drop-in' solution to use the benefits. |
I'm not planning to actually come up with something that would work with multiple maven versions as |
Question: what's the plan on support for the Maven 3.x stream? |
I would think it will follow the maven 4.x stream. So we can plan on having mvnd with an embedded 3.x maven for some time. The 0.9.0 release is under vote, and I'll soon start a 0.10.0 based on maven 3.9.0 which is also being voted. |
To ensure repeatable builds in a CI environment it would be great to be able specify desired maven version, like the Maven Wrapper plugin.
Or possibly detect if
mvnw
is present in the project directory and use that?The text was updated successfully, but these errors were encountered: