You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "elharo (via GitHub)" <gi...@apache.org> on 2026/07/07 11:16:29 UTC

[I] filterDependencies returns the full input set when no excludes are configured, polluting verbose output [maven-dependency-plugin]

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

   `AbstractAnalyzeMojo.filterDependencies()` at line 562-563:
   
   ```java
   if (excludes == null || excludes.length == 0) {
       return artifacts;
   }
   ```
   
   When no exclude patterns are configured (the default), the method returns the **entire input set** as "ignored" artifacts. The caller stores this in `ignoredUsedUndeclared`, `ignoredUnusedDeclared`, or `ignoredNonTestScope`.
   
   In `-Dverbose` mode, every artifact appears in both the "Used undeclared dependencies found:" section AND the "Ignored used undeclared dependencies:" section, making the verbose output useless.
   
   The method should return an empty set when no excludes are configured, not the full set.


-- 
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: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] filterDependencies returns the full input set when no excludes are configured, polluting verbose output [maven-dependency-plugin]

Posted by "pzygielo (via GitHub)" <gi...@apache.org>.
pzygielo commented on issue #1645:
URL: https://github.com/apache/maven-dependency-plugin/issues/1645#issuecomment-4903824790

   Doing "release" https://github.com/apache/maven-dependency-plugin/releases/tag/reproducer-verbose-duplicate instead of attaching files to this issue? 🤔 


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] filterDependencies returns the full input set when no excludes are configured, polluting verbose output [maven-dependency-plugin]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz closed issue #1645: filterDependencies returns the full input set when no excludes are configured, polluting verbose output
URL: https://github.com/apache/maven-dependency-plugin/issues/1645


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] filterDependencies returns the full input set when no excludes are configured, polluting verbose output [maven-dependency-plugin]

Posted by "elharo (via GitHub)" <gi...@apache.org>.
elharo commented on issue #1645:
URL: https://github.com/apache/maven-dependency-plugin/issues/1645#issuecomment-4904056898

   GitHub's API doesn't expose a way to upload files directly to issue attachments — the drag-and-drop      
        upload in the web UI uses an internal session-authenticated endpoint that isn't available via the REST/GraphQL     
        API. The release asset mechanism is the only way to host downloadable files via the CLI.  


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] filterDependencies returns the full input set when no excludes are configured, polluting verbose output [maven-dependency-plugin]

Posted by "elharo (via GitHub)" <gi...@apache.org>.
elharo commented on issue #1645:
URL: https://github.com/apache/maven-dependency-plugin/issues/1645#issuecomment-4903937899

   Reproducer project for this issue. Extract and run `mvn clean compile dependency:analyze -Dverbose` to see the duplicate output.


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org