Allow Minor / Major Version Selection

Issue #18 new
Alex Courtis created an issue

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)

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

  2. mjensenbitbucket-bot 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.

  3. Log in to comment