From 9e7a167d4a13d479ddb63175cbd010a5fed7a09b Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Fri, 11 Jan 2008 09:18:13 +0000 Subject: [PATCH] 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 --- .../action/admin/legacy/AddLegacyArtifactPathAction.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/AddLegacyArtifactPathAction.java b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/AddLegacyArtifactPathAction.java index 162fa78ca..6dca666ea 100644 --- a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/AddLegacyArtifactPathAction.java +++ b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/AddLegacyArtifactPathAction.java @@ -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() ) ) { -- 2.39.5