You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2020/01/25 13:22:24 UTC

[maven-shade-plugin] 01/01: [MSHADE-339] - Shaded test jar has wrong type "jar"

This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch MSHADE-339
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git

commit a105d79368da1eb0d4a872288e6c6f8da6c58b09
Author: Peter De Maeyer <pe...@gmail.com>
AuthorDate: Sun Dec 22 20:37:02 2019 +0100

    [MSHADE-339] - Shaded test jar has wrong type "jar"
---
 src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
index 9427923..61c5cdb 100644
--- a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
@@ -579,7 +579,7 @@ public class ShadeMojo
 
                             replaceFile( shadedTests, testJar );
 
-                            projectHelper.attachArtifact( project, "jar", "tests", shadedTests );
+                            projectHelper.attachArtifact( project, "test-jar", "tests", shadedTests );
                         }
 
                         if ( createTestSourcesJar )