gnodet opened a new pull request, #13982: URL: https://github.com/apache/maven/pull/13982
## Summary - Resolve dependency JARs in `MojoDescriptorProcessorTest` from the test classpath via `Class.getProtectionDomain().getCodeSource()` instead of manually probing disk paths - Removes hardcoded version strings and the `resolveFile()` worktree/m2 lookup method - Removes now-unnecessary surefire `systemPropertyVariables` (`processor.worktree`, `processor.version`) - Uses `Path` and `setLocationFromPaths()` instead of `File` and `setLocation()` Fixes the CI failure where `maven-api-annotations` JAR could not be found because the original code had `resolveFile(null, ...)` — missing the worktree-relative path — and the artifact was not installed to the local repo during `verify`. ## Test plan - [x] All 26 `MojoDescriptorProcessorTest` tests pass locally - [ ] CI initial-build passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
