mirror of https://github.com/apache/maven.git
correct resolution bug when a new snapshot is downloaded
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163720 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9209aaf3b6
commit
6f8b171aaf
|
@ -69,7 +69,6 @@ public class SnapshotTransformation
|
||||||
throw new ArtifactMetadataRetrievalException( "Error reading local metadata", e );
|
throw new ArtifactMetadataRetrievalException( "Error reading local metadata", e );
|
||||||
}
|
}
|
||||||
|
|
||||||
String version = localMetadata.constructVersion();
|
|
||||||
boolean alreadyResolved = alreadyResolved( artifact );
|
boolean alreadyResolved = alreadyResolved( artifact );
|
||||||
if ( !alreadyResolved )
|
if ( !alreadyResolved )
|
||||||
{
|
{
|
||||||
|
@ -144,6 +143,8 @@ public class SnapshotTransformation
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
String version = localMetadata.constructVersion();
|
||||||
|
|
||||||
if ( getLogger().isInfoEnabled() )
|
if ( getLogger().isInfoEnabled() )
|
||||||
{
|
{
|
||||||
if ( !version.equals( artifact.getBaseVersion() ) && !alreadyResolved )
|
if ( !version.equals( artifact.getBaseVersion() ) && !alreadyResolved )
|
||||||
|
|
Loading…
Reference in New Issue