{
try
{
- versionMetadata =
+ ProjectVersionMetadata versionMetadataTmp =
metadataResolver.resolveProjectVersion( repositorySession, repoId, groupId, artifactId,
version );
+
+ if ( versionMetadata == null && versionMetadataTmp != null )
+ {
+ versionMetadata = versionMetadataTmp;
+ }
+
+
}
catch ( MetadataResolutionException e )
{
ArchivaArtifact archivaArtifact = new ArchivaArtifact( groupId, artifactId, version,
StringUtils.isEmpty( classifier )
? ""
- : classifier, "jar", repoId
- );
+ : classifier, "jar", repoId );
File file = managedRepositoryContent.toFile( archivaArtifact );
if ( file != null && file.exists() )
artifactContentEntryMap.put( entryRootPath,
new ArtifactContentEntry( entryRootPath, !currentEntry.isDirectory(),
- depth, repoId )
- );
+ depth, repoId ) );
}
else
{