diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/binding/BindingUtils.java b/maven-core/src/main/java/org/apache/maven/lifecycle/binding/BindingUtils.java index 151c0991c7..67e9eda68f 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/binding/BindingUtils.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/binding/BindingUtils.java @@ -211,6 +211,7 @@ final class BindingUtils plugin = new Plugin(); plugin.setGroupId( binding.getGroupId() ); plugin.setArtifactId( binding.getArtifactId() ); + plugin.setVersion( binding.getVersion() ); } injectPluginManagementInfo( plugin, project ); @@ -238,6 +239,7 @@ final class BindingUtils configuration = mergeRawConfigurations( reportConfig, configuration ); } + binding.setVersion( plugin.getVersion() ); binding.setConfiguration( configuration ); } @@ -308,6 +310,7 @@ final class BindingUtils Map plugMgmtMap = buildPluginMap( plugMgmt ); String key = createPluginKey( plugin ); + Plugin mgmtPlugin = (Plugin) plugMgmtMap.get( key ); if ( mgmtPlugin != null )