mirror of
https://github.com/apache/maven.git
synced 2025-02-08 11:05:37 +00:00
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 @@ protected String resolveVersion( Artifact artifact, ArtifactRepository localRepo
|
||||
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…
x
Reference in New Issue
Block a user