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 e3d9588c41..fe6fdbfa6d 100644 --- a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java +++ b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java @@ -139,7 +139,7 @@ public class DefaultMaven if ( projects.isEmpty() ) { - projects.add( getSuperProject( request ) ); + projects.add( projectBuilder.buildStandaloneSuperProject() ); foundProjects = false; } @@ -307,22 +307,6 @@ public class DefaultMaven } } - private MavenProject getSuperProject( MavenExecutionRequest request ) - throws MavenExecutionException - { - MavenProject superProject; - try - { - superProject = projectBuilder.buildStandaloneSuperProject(); - - } - catch ( ProjectBuildingException e ) - { - throw new MavenExecutionException( e.getMessage(), e ); - } - return superProject; - } - private List getProjects( MavenExecutionRequest request ) throws MavenExecutionException, BuildFailureException {