- changed title to Allow Minor / Major Version Selection
Allow Minor / Major Version Selection
Follwing BUILDENG-6205, it would be useful to allow selection of the latest major or minor release of maven, as per the direction that buildeng is following.
e.g.
mvn_version=3.0
would pick latest minor 3.0 release, 3.0.5
at time of writing.
mvn_version=3
would pick latest major 3 release, 3.2.3
at time of writing.
Comments (4)
-
reporter -
Account Deactivated This would also be useful for the mavenRequiredVersion scripting, as it seems
<requireMavenVersion> <version>[3.0,)</version> </requireMavenVersion>
Will resolve to 3.0 which doesn't exist and therefore fails in mvnvm.
Maybe for the 2.x versions, some hard coded maps could be used, but for 3.x versions, maybe this can somehow be parsed? http://maven.apache.org/download.cgi
-
repo owner It might be easier to parse the maven metadata information here: http://central.maven.org/maven2/org/apache/maven/maven-core/maven-metadata.xml
-
repo owner It looks like this version list is in order of release which will make it even easier to parse. I am getting the maven source to check.
- Log in to comment