diff --git a/maven-plugins/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/JarSourceMojo.java b/maven-plugins/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/JarSourceMojo.java index 01c93831fc..a93a9c9730 100644 --- a/maven-plugins/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/JarSourceMojo.java +++ b/maven-plugins/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/JarSourceMojo.java @@ -102,6 +102,7 @@ public class JarSourceMojo project.getArtifactId(), project.getVersion(), null, "java-source", "sources" ); + artifact.setFile( outputFile ); project.addAttachedArtifact( artifact ); } else