elharo opened a new issue, #306:
URL: https://github.com/apache/maven-source-plugin/issues/306

   `AggregatorSourceJarMojo.java:35-37`:
   
   ```java
   @Override
   protected void doExecute() throws MojoException {
       if (Type.POM.equals(getProject().getPackaging().type().id())) {
           packageSources(reactorProjects);
       }
   }
   ```
   
   If the aggregator project has non-POM packaging, the method returns without 
any warning or error message. While `@Mojo(aggregator = true)` typically 
implies POM packaging, a misleading build or configuration could lead to silent 
failure — no source JAR is produced and the user receives no indication why.
   
   **Fix**: Add an `else` branch with a warning or info message explaining why 
no sources were packaged.


-- 
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