}
}
}
- if ( versionMetadata == null )
- {
- return null;
- }
-
- MavenProjectFacet mavenFacet = new MavenProjectFacet();
- mavenFacet.setGroupId( groupId );
- mavenFacet.setArtifactId( artifactId );
- versionMetadata.addFacet( mavenFacet );
- MavenProjectFacet versionMetadataMavenFacet =
- (MavenProjectFacet) versionMetadata.getFacet( MavenProjectFacet.FACET_ID );
- if ( versionMetadataMavenFacet != null )
- {
- if ( mavenFacet.getPackaging() != null && !StringUtils.equalsIgnoreCase( mavenFacet.getPackaging(),
- versionMetadataMavenFacet.getPackaging() ) )
- {
- mavenFacet.setPackaging( null );
- }
- }
return versionMetadata;
}
mainContent.find("#browse_breadcrumb" ).show();
mainContent.find("#browse_breadcrumb" ).html(mediumSpinnerImg());
var metadataUrl="restServices/archivaServices/browseService/projectVersionMetadata/"+encodeURIComponent(groupId)+"/"+encodeURIComponent(artifactId);
+ metadataUrl+="/"+encodeURIComponent(version);
var selectedRepo=getSelectedBrowsingRepository();
if (selectedRepo){
metadataUrl+="?repositoryId="+encodeURIComponent(selectedRepo);