mirror of https://github.com/apache/maven.git
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:
parent
b94672b9e4
commit
7773aa4d40
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue