From 6f8b171aaf0cd9ebd3f3b22a13c81a81c185c125 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Wed, 30 Mar 2005 14:56:32 +0000 Subject: [PATCH] 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 --- .../maven/artifact/transform/SnapshotTransformation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/transform/SnapshotTransformation.java b/maven-artifact/src/main/java/org/apache/maven/artifact/transform/SnapshotTransformation.java index 5e353ed9a5..d785815617 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/transform/SnapshotTransformation.java +++ b/maven-artifact/src/main/java/org/apache/maven/artifact/transform/SnapshotTransformation.java @@ -69,7 +69,6 @@ public class SnapshotTransformation throw new ArtifactMetadataRetrievalException( "Error reading local metadata", e ); } - String version = localMetadata.constructVersion(); boolean alreadyResolved = alreadyResolved( artifact ); if ( !alreadyResolved ) { @@ -144,6 +143,8 @@ public class SnapshotTransformation } else { + String version = localMetadata.constructVersion(); + if ( getLogger().isInfoEnabled() ) { if ( !version.equals( artifact.getBaseVersion() ) && !alreadyResolved )