misread this change, thought it was incorporated into isSnapshot but that is what we are trying to avoid

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@292154 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-28 09:18:40 +00:00
parent b94672b9e4
commit 7773aa4d40
1 changed files with 4 additions and 3 deletions

View File

@ -62,13 +62,14 @@ public abstract class AbstractVersionTransformation
throws ArtifactMetadataRetrievalException
{
RepositoryMetadata metadata;
if ( artifact.isSnapshot() )
// Don't use snapshot metadata for LATEST (which isSnapshot returns true for)
if ( !artifact.isSnapshot() || Artifact.LATEST_VERSION.equals( artifact.getBaseVersion() ) )
{
metadata = new SnapshotArtifactRepositoryMetadata( artifact );
metadata = new ArtifactRepositoryMetadata( artifact );
}
else
{
metadata = new ArtifactRepositoryMetadata( artifact );
metadata = new SnapshotArtifactRepositoryMetadata( artifact );
}
repositoryMetadataManager.resolve( metadata, remoteRepositories, localRepository );