slachiewicz opened a new pull request, #1804: URL: https://github.com/apache/maven-dependency-plugin/pull/1804
Closes #1803. `go-offline` filtered the project's dependencies by rebuilding each `Dependency` from its artifact coordinates, which dropped `<exclusions>`, `optional` and `systemPath` before resolution. It now keeps the original dependencies, so the collect request matches what Maven itself resolves. Two side effects follow from passing the real dependencies: - Direct dependencies reach the resolver in declaration order rather than hash order, so transitive version conflicts resolve to the same winner Maven picks. - A system-scope dependency (when `excludeScope=system` is not set) resolves from its `systemPath` instead of being looked up by coordinates in the remote repositories. Verified: `go-offline-direct-exclusion-gh-1803` fails on master with "The following artifacts could not be resolved" and passes with the fix. -- 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]
