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