MNG-3574 - project plugin meta version needs to be replaced with the resolved one.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@659463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Milos Kleint 2008-05-23 07:45:41 +00:00
parent e458d85616
commit ca2bb6a32f
1 changed files with 3 additions and 1 deletions

View File

@ -269,7 +269,9 @@ public class DefaultPluginManager
{
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() );
}