maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r314797 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionManager.java
Date Wed, 12 Oct 2005 06:15:34 GMT
Author: jdcasey
Date: Tue Oct 11 23:15:28 2005
New Revision: 314797

URL: http://svn.apache.org/viewcvs?rev=314797&view=rev
Log:
Adding self-check for plugin version to the end of the resolution process, as a default.

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

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionManager.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionManager.java?rev=314797&r1=314796&r2=314797&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionManager.java
(original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/version/DefaultPluginVersionManager.java
Tue Oct 11 23:15:28 2005
@@ -214,6 +214,13 @@
                 promptToPersist = false;
             }
         }
+        
+        // if we're still empty here, and the current project matches the plugin in question,
use the current project's 
+        // version, I guess...
+        if ( StringUtils.isEmpty( version ) && project.getGroupId().equals( groupId
) && project.getArtifactId().equals( artifactId ) )
+        {
+              version = project.getVersion();
+        }
 
         // if we still haven't found a version, then fail early before we get into the update
goop.
         if ( StringUtils.isEmpty( version ) )



Mime
View raw message