isSnapshot is true for latest, but we don't want that metadata

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@278988 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-06 12:44:30 +00:00
parent 9ab02bb1d3
commit e1a3311062
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ public abstract class AbstractVersionTransformation
throws ArtifactMetadataRetrievalException
{
// TODO: can we improve on this?
ArtifactMetadata metadata = null;
if ( !artifact.isSnapshot() )
ArtifactMetadata metadata;
if ( !artifact.isSnapshot() || Artifact.LATEST_VERSION.equals( artifact.getBaseVersion() ) )
{
metadata = new ArtifactRepositoryMetadata( artifact );
}