From b933dad7daca9b7857ef53038165b4543f1a9678 Mon Sep 17 00:00:00 2001 From: Janis Kalofolias Date: Fri, 12 May 2017 14:24:59 +0200 Subject: [PATCH] Minor bug fix for newer Maven: git(All)Projects --- .../org/apache/maven/version/ExternalVersionExtension.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {