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

   ## Summary
   
   Migrates `maven-dependency-plugin` to the analyzer API added for 1.18.0 in 
the `1.17.3-SNAPSHOT` build:
   
   - Bumps `maven-dependency-analyzer` from 1.17.2 to 1.17.3-SNAPSHOT.
   - Replaces the duplicated `groupId:artifactId` key logic in `ForcedUsage` 
and `AnalyzeDepMgt` with `ArtifactKeys.groupArtifactId`.
   - Adds an **Ambiguous Used Classes** section to `analyze-report` using 
`getAmbiguousUsedDependencyClasses()`, `getCandidateArtifactsByUsedClass()`, 
and `getSelectedArtifactByUsedClass()`. The table lists each class, the 
artifacts that provide it, and the artifact the analyzer selected.
   
   The low-level `ClassEntrySource` and `Path` overloads don't apply here. The 
plugin consumes the high-level `ProjectDependencyAnalyzer` SPI, so no analyzer 
signature changes are needed. The class-level data comes from 
apache/maven-dependency-analyzer#320.
   
   ## Verification
   
   - `mvn -B -o -Dtest=AnalyzeReportRendererTest test`: 2 tests pass.
   - `mvn -B -o -Prun-its verify` on JDK 21 with the snapshot installed 
locally: 756 unit tests and 122 ITs pass, with no failures or errors.
   - `mvn spotless:apply` and `mvn -N spotless:check` pass on JDK 17.
   
   ## Merge blocker
   
   This PR stays in draft until the analyzer release is published. GitHub 
Actions can't resolve `1.17.3-SNAPSHOT` because the plugin doesn't declare an 
Apache snapshots repository. Before marking this PR ready, publish the analyzer 
release and change the dependency to the released version.
   


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