diff --git a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java index 1453d6d12c..b285bf0d3c 100644 --- a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java +++ b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java @@ -98,7 +98,7 @@ public class DefaultMaven { projects = collectProjects( request.getFiles(), request.getLocalRepository(), request.isRecursive() ); - projects = projectBuilder.getSortedProjects( projects ); + projects = MavenProject.getSortedProjects( projects ); if ( projects.isEmpty() ) {