Author: mkleint Date: Fri Jan 18 12:20:46 2008 New Revision: 613256 URL: http://svn.apache.org/viewvc?rev=613256&view=rev Log: when version is defined in plugin-management section, we need to use it in mojo binding.
Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/binding/BindingUtils.java Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/binding/BindingUtils.java URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/binding/BindingUtils.java?rev=613256&r1=613255&r2=613256&view=diff ============================================================================== --- maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/binding/BindingUtils.java (original) +++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/binding/BindingUtils.java Fri Jan 18 12:20:46 2008 @@ -279,6 +279,9 @@ PluginExecution exec = (PluginExecution) plugin.getExecutionsAsMap().get( mojo.getExecutionId() ); mojo.setConfiguration( mergeConfigurations( plugin, exec ) ); + + mojo.setVersion( plugin.getVersion() ); + } } }