catch ( RepositoryException e )
{
throw new RuntimeException( e );
}
ArtifactReference ref = new ArtifactReference();
ref.setArtifactId( artifact.getProject() );
ref.setGroupId( artifact.getNamespace() );
ref.setVersion( artifact.getVersion() );
path = repo.toPath( ref );
path = path.substring( 0, path.lastIndexOf( "/" ) + 1 ) + artifact.getId();
// TODO: need to accommodate Maven 1 layout too. Non-maven repository formats will need to generate this
// facet (perhaps on the fly) if wanting to display the Maven 2 elements on the Archiva pages