[ 
https://issues.apache.org/jira/browse/MSHARED-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887908#comment-17887908
 ] 

Elliotte Rusty Harold edited comment on MSHARED-1204 at 10/9/24 12:33 PM:
--------------------------------------------------------------------------

The problem with using a default value for ignoredDependencies in the 
maven-dependency-plugin is that this is a "List of dependencies that will be 
ignored. Any dependency on this list will be excluded from the 'declared but 
unused', the 'used but undeclared', and the 'non-test scoped' list."

By default we'd like to exclude these from declared but unused and non-test 
scoped but not from used but undeclared. Might still belong in the plugin 
though.

However, I can use ignoredNonTestScopedDependencies and 
ignoredUnusedDeclaredDependencies. I will move this issue to the 
maven-dependency-plugin.


was (Author: elharo):
The problem with using a default value for ignoredDependencies in the 
maven-dependency-plugin is that this is a "List of dependencies that will be 
ignored. Any dependency on this list will be excluded from the 'declared but 
unused', the 'used but undeclared', and the 'non-test scoped' list."

By default we'd like to exclude these from declared but unused and non-test 
scoped but not from used but undeclared. Might still belong in the plugin 
though.

> Consider special casing slf4j-simple et al
> ------------------------------------------
>
>                 Key: MSHARED-1204
>                 URL: https://issues.apache.org/jira/browse/MSHARED-1204
>             Project: Maven Shared Components
>          Issue Type: New Feature
>          Components: maven-dependency-analyzer
>            Reporter: Elliotte Rusty Harold
>            Assignee: Elliotte Rusty Harold
>            Priority: Major
>
>  slf4j-simple is sometimes added to classpaths to shut up annoying warnings 
> from SLF4J at run and test time, even though it isn't absolutely required. 
> Can we do better with our analysis of the common case and similar ones, 
> rather than reporting it as declared but unused?
> ```
>     <dependency>
>       <groupId>org.slf4j</groupId>
>       <artifactId>slf4j-simple</artifactId>
>       <scope>test</scope>
>     </dependency>
> ```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to