jira-importer commented on issue #295:
URL: 
https://github.com/apache/maven-deploy-plugin/issues/295#issuecomment-2771522664

   **[Stephan Leicht 
Vogt](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=sleicht)** 
commented
   
   The same happens with source files configured in ```xml
   \<sources>...\</sources>
   
   ```
   
   This problem can be easily solved with this patch:
   
   ```
   
   Index: DeployFileMojo.java
   
   ---
   
   --- DeployFileMojo.java      (revision 1705858)
   +++ DeployFileMojo.java      (working copy)
   @@ -363,6 +363,8 @@
   throw new MojoExecutionException( e.getMessage(), e );
   }
   
   + 
   
         // flush attached artifacts for multi-execution-deployments
   
   + 
   
         project.getAttachedArtifacts( ).clear();
         if ( sources != null )
         {
             projectHelper.attachArtifact( project, "jar", "sources", sources );
   
   ```
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to