maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mkle...@apache.org
Subject svn commit: r659463 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
Date Fri, 23 May 2008 07:45:41 GMT
Author: mkleint
Date: Fri May 23 00:45:41 2008
New Revision: 659463

URL: http://svn.apache.org/viewvc?rev=659463&view=rev
Log:
MNG-3574 - project plugin meta version needs to be replaced with the resolved one.

Modified:
    maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java?rev=659463&r1=659462&r2=659463&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
(original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
Fri May 23 00:45:41 2008
@@ -269,7 +269,9 @@
         {
             projectPlugin = plugin;
         }
-        else if ( projectPlugin.getVersion() == null )
+        else if ( projectPlugin.getVersion() == null || 
+                  Artifact.RELEASE_VERSION.equals(projectPlugin.getVersion()) || 
+                  Artifact.LATEST_VERSION.equals(projectPlugin.getVersion()))
         {
             projectPlugin.setVersion( plugin.getVersion() );
         }



Mime
View raw message