From d389dffc68d2eb6fad5892498c2df56fc62efaea Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Thu, 28 Jul 2005 01:00:39 +0000 Subject: [PATCH] revert previous change - if that problem is encountered an alternative solution will need to be found git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@225663 13f79535-47bb-0310-9956-ffa450edef68 --- .../artifact/transform/AbstractVersionTransformation.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java index 3142e73529..96630f6068 100644 --- a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java +++ b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/transform/AbstractVersionTransformation.java @@ -116,12 +116,14 @@ public abstract class AbstractVersionTransformation VersionArtifactMetadata remoteMetadata; - checkedUpdates = true; - try { remoteMetadata = retrieveFromRemoteRepository( artifact, repository, localMetadata, updatePolicy ); + + // we must only flag this after checking for updates, otherwise subsequent attempts will look + // for SNAPSHOT without checking the metadata + checkedUpdates = true; } catch ( ResourceDoesNotExistException e ) {