Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6182

ModelResolver interface enhancement: addition of resolveModel( Dependency ) supporting version ranges

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0-beta-1, 3.5.0
    • Component/s: None
    • Labels:
      None

      Description

      In order to implement MNG-4463 in Maven 3.5.1, the ModelResolver interface needs to be enhanced: we need a new method that can use a version range, like the one that was done for parent resolution

          ModelSource resolveModel( Dependency dependency )
              throws UnresolvableModelException;

      We will do that in Maven 3.5.0, but will not use any of the new methods. When e.g. IDE integrators upgrade to Maven 3.5.0, they will need to enhance their implementations as of Maven 3.5.0 instead of Maven 3.5.1. This way we can avoid adding methods to public interfaces in a patch release Maven 3.5.1 and have a Maven 3.5.0 public API prepared for everything planned for 3.5.x.

        Activity

        Hide
        hudson Hudson added a comment -

        ABORTED: Integrated in Jenkins build maven-3.x #1560 (See https://builds.apache.org/job/maven-3.x/1560/)
        MNG-6182 ModelResolver interface enhancements. (schulte: http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=ab800b0cfae4e3ca9453304e3b9727ba4a4b712b)

        • (edit) maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelResolver.java
        • (edit) maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java
        • (edit) maven-model-builder/src/main/java/org/apache/maven/model/resolution/ModelResolver.java
        Show
        hudson Hudson added a comment - ABORTED: Integrated in Jenkins build maven-3.x #1560 (See https://builds.apache.org/job/maven-3.x/1560/ ) MNG-6182 ModelResolver interface enhancements. (schulte: http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=ab800b0cfae4e3ca9453304e3b9727ba4a4b712b ) (edit) maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelResolver.java (edit) maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java (edit) maven-model-builder/src/main/java/org/apache/maven/model/resolution/ModelResolver.java
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build maven-3.x #1574 (See https://builds.apache.org/job/maven-3.x/1574/)
        MNG-6182 ModelResolver interface enhancements. (schulte: http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=f1ccecdd893eea0a320634a49bc6e56b776fb213)

        • (add) maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultModelResolverTest.java
        • (add) maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build maven-3.x #1574 (See https://builds.apache.org/job/maven-3.x/1574/ ) MNG-6182 ModelResolver interface enhancements. (schulte: http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=f1ccecdd893eea0a320634a49bc6e56b776fb213 ) (add) maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultModelResolverTest.java (add) maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java

          People

          • Assignee:
            schulte77 Christian Schulte
            Reporter:
            schulte77 Christian Schulte
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development