]> source.dussan.org Git - archiva.git/commitdiff
Adding artifact version to artifact key
authorMartin Stockhammer <martin_s@apache.org>
Tue, 21 Apr 2020 16:23:00 +0000 (18:23 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Tue, 21 Apr 2020 16:23:00 +0000 (18:23 +0200)
archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/content/base/ArchivaArtifact.java

index f5e4222cb7546214c74dd8d648d090aedf37f2fe..cb210ac939d4e742c8596d253838623d53fee437 100644 (file)
@@ -192,8 +192,9 @@ public class ArchivaArtifact extends ArchivaContentItem implements Artifact
         key.append( defaultString( getVersion().getProject().getNamespace().getNamespace() )).append( ":" );
         key.append( defaultString( getId() ) ).append( ":" );
         key.append( defaultString( getVersion().getVersion() ) ).append( ":" );
+        key.append( defaultString( getArtifactVersion( ) ) ).append( ":" );
         key.append( defaultString( getClassifier() ) ).append( ":" );
-        key.append( defaultString( getType() ) );
+        key.append( defaultString( getRemainder() ) );
 
         return key.toString();
     }