From 5282fec65d60f7733117de45ef92bdf83b1f7f0f Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Sun, 15 Mar 2009 19:28:37 +0000 Subject: [PATCH] o Fixed resolution of plugin metaversions git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@754731 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugin/DefaultPluginManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java index a33492812e..4672f12a79 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java @@ -182,7 +182,7 @@ public class DefaultPluginManager // TODO: this should be possibly outside // All version-resolution logic has been moved to DefaultPluginVersionManager. logger.debug( "Resolving plugin: " + plugin.getKey() + " with version: " + pluginVersion ); - if ( ( pluginVersion == null ) || Artifact.LATEST_VERSION.equals( pluginVersion ) || Artifact.RELEASE_VERSION.equals( pluginVersion ) ) + if ( pluginVersion == null ) { logger.debug( "Resolving version for plugin: " + plugin.getKey() ); pluginVersion = resolvePluginVersion( plugin.getGroupId(), plugin.getArtifactId(), project, session ); @@ -212,6 +212,8 @@ public class DefaultPluginManager { Artifact pluginArtifact = resolvePluginArtifact( plugin, project, session ); + plugin.setVersion( pluginArtifact.getBaseVersion() ); + addPlugin( plugin, pluginArtifact, project, session ); } else