From d4b081c74d62d2dbfa60dc35298148b2b4e48aed Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 12 Mar 2012 11:01:16 +0000 Subject: [PATCH] fix junit git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1299623 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/storage/maven2/RepositoryModelResolver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java index 9ef2745b2..975a97ad0 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java @@ -112,10 +112,10 @@ public class RepositoryModelResolver // is a SNAPSHOT ? if ( StringUtils.contains( version, "SNAPSHOT" ) ) { - model = findTimeStampedSnapshotPom( groupId, artifactId, version, model.getParent() ); - if ( model != null ) + File localSnapshotModel = findTimeStampedSnapshotPom( groupId, artifactId, version, model.getParent() ); + if ( localSnapshotModel != null ) { - return new FileModelSource( model ); + return new FileModelSource( localSnapshotModel ); } }