slachiewicz opened a new pull request, #1816:
URL: https://github.com/apache/maven-dependency-plugin/pull/1816

   With `verbose`, the used undeclared and non-test scoped warnings of 
`dependency:analyze` and `analyze-only` now list, under each class, the project 
classes that use it, so the warning says which code to change:
   
   ```
   [WARNING]    org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
   [WARNING]       class org.apache.maven.artifact.repository.metadata.Metadata
   [WARNING]          used by Main
   ```
   
   Classes and users are sorted; the class lines under used undeclared 
previously came out in hash order. Output without `verbose` is unchanged. 
Usages are read before `usedDependencies` forcing, because the analyzer's 
`forceDeclaredDependenciesUsage` empties the usage set of every used declared 
dependency. Works with analyzer 1.17.2.
   
   Verified: `mvn -Prun-its verify` on JDK 17 → 757 tests, 122/122 ITs pass; 
the forced-usage test fails when usages are read after forcing.
   


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