diff --git a/maven-external-version-plugin/src/main/java/org/apache/maven/version/ExternalVersionExtension.java b/maven-external-version-plugin/src/main/java/org/apache/maven/version/ExternalVersionExtension.java index f528342..c88f91e 100644 --- a/maven-external-version-plugin/src/main/java/org/apache/maven/version/ExternalVersionExtension.java +++ b/maven-external-version-plugin/src/main/java/org/apache/maven/version/ExternalVersionExtension.java @@ -93,7 +93,7 @@ public void afterProjectsRead( MavenSession session ) Map gavVersionMap = new HashMap(); - for ( MavenProject mavenProject : session.getAllProjects() ) + for ( MavenProject mavenProject : session.getProjects() ) { // Lookup this plugin's configuration Plugin plugin = mavenProject.getPlugin( "org.apache.maven.plugins:maven-external-version-plugin" ); @@ -143,7 +143,7 @@ public void afterProjectsRead( MavenSession session ) // now we have only updated the versions of the projects, we need to update // the references between the updated projects - for ( MavenProject mavenProject : session.getAllProjects() ) + for ( MavenProject mavenProject : session.getProjects() ) { try {