Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-165

Mediate dependency versions for stricter Maven3 ProjectSorter

    XMLWordPrintableJSON

Details

    Description

      We currently depend on maven-project:2.0.8, but with Maven3 about to be released we should upgrade our dependencies to 3.0. In Maven3, maven-project has been moved into maven-core:3.0.

      Maven3 also brings in changes to ProjectSorter via MNG-3814. This means that versions are considered when ordering dependencies. This affects maven-runtime as only the mediated version of a dependency is available at runtime and thus vertices of the runtime dependency graph can be neglected, leading to incorrect ordering from MavenRuntime.getSortedProjects.

      To resolve this we need to inject the runtime version of all discovered artifacts into the parsed MavenProjects prior to sorting. This will emulate the situation that we have at runtime.

      Attachments

        Issue Links

          Activity

            People

              markh Mark Hobson
              markh Mark Hobson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: