mirror of
https://github.com/apache/maven.git
synced 2025-03-03 07:09:29 +00:00
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 void transformForResolve( Artifact artifact, List remoteRepositories, Art
|
||||
throw new ArtifactMetadataRetrievalException( "Error reading local metadata", e );
|
||||
}
|
||||
|
||||
String version = localMetadata.constructVersion();
|
||||
boolean alreadyResolved = alreadyResolved( artifact );
|
||||
if ( !alreadyResolved )
|
||||
{
|
||||
@ -144,6 +143,8 @@ else if ( snapshotPolicy.startsWith( ArtifactRepository.SNAPSHOT_POLICY_INTERVAL
|
||||
}
|
||||
else
|
||||
{
|
||||
String version = localMetadata.constructVersion();
|
||||
|
||||
if ( getLogger().isInfoEnabled() )
|
||||
{
|
||||
if ( !version.equals( artifact.getBaseVersion() ) && !alreadyResolved )
|
||||
|
Loading…
x
Reference in New Issue
Block a user