diff options
author | Olivier Lamy <olamy@apache.org> | 2012-03-12 11:01:16 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-03-12 11:01:16 +0000 |
commit | d4b081c74d62d2dbfa60dc35298148b2b4e48aed (patch) | |
tree | d4454bf9233aeb5d4c26d3aa04edf276d1b57cdf /archiva-modules/plugins/maven2-repository | |
parent | eee8044673c61b8554ee6fc4b58f0e9ef0df8125 (diff) | |
download | archiva-d4b081c74d62d2dbfa60dc35298148b2b4e48aed.tar.gz archiva-d4b081c74d62d2dbfa60dc35298148b2b4e48aed.zip |
fix junit
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1299623 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/maven2-repository')
-rw-r--r-- | archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java | 6 |
1 files 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 ); } } |