mirror of https://github.com/apache/archiva.git
fix to getArtifactReference beeing removed from LegacyArtifactPath
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@611119 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dbf1b87854
commit
9e7a167d4a
|
@ -67,7 +67,14 @@ public class AddLegacyArtifactPathAction
|
|||
|
||||
public String commit()
|
||||
{
|
||||
ArtifactReference artifact = this.legacyArtifactPath.getArtifactReference();
|
||||
ArtifactReference artifact = new ArtifactReference();
|
||||
|
||||
artifact.setGroupId( this.legacyArtifactPath.getGroupId() );
|
||||
artifact.setArtifactId( this.legacyArtifactPath.getArtifactId() );
|
||||
artifact.setClassifier( this.legacyArtifactPath.getClassifier() );
|
||||
artifact.setVersion( this.legacyArtifactPath.getVersion() );
|
||||
artifact.setType( this.legacyArtifactPath.getType() );
|
||||
|
||||
String path = repositoryContent.toPath( artifact );
|
||||
if ( ! path.equals( this.legacyArtifactPath.getPath() ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue