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 b0b7e2b0b..d3dc6e969 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 @@ -165,6 +165,11 @@ public class RepositoryModelResolver StringUtils.replaceChars( groupId, '.', '/' ) + '/' + artifactId + '/' + version + '/' + artifactId + '-' + StringUtils.remove( version, "-SNAPSHOT" ) + '-' + lastVersion + '-' + buildNumber + ".pom"; + if ( log.isDebugEnabled() ) + { + log.debug( "use snapshot path {} for maven coordinate {}", snapshotPath, + groupId + ":" + artifactId + ":" + version ); + } File model = new File( basedir, snapshotPath ); //model = pathTranslator.toFile( basedir, groupId, artifactId, lastVersion, filename ); if ( model.exists() )