elharo commented on code in PR #320:
URL: 
https://github.com/apache/maven-source-plugin/pull/320#discussion_r3813373461


##########
src/main/java/org/apache/maven/plugins/source/AggregatorSourceJarMojo.java:
##########
@@ -36,8 +36,12 @@ public class AggregatorSourceJarMojo extends SourceJarMojo {
      */
     @Override
     protected void doExecute() throws MojoException {
-        if (Type.POM.equals(getProject().getPackaging().type().id())) {
+        String type = getProject().getPackaging().type().id();
+        if (Type.POM.equals(type)) {
             packageSources(reactorProjects);
+        } else {
+            getLog().warn("NOT aggregating sources as this goal requires a 
project with [" + Type.POM

Review Comment:
   I'm unsure about this. Maybe debug level? I don't know.



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