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.