gnodet opened a new pull request, #13153: URL: https://github.com/apache/maven/pull/13153
## Summary Implements `Node.getRepository()`, which previously always threw `UnsupportedOperationException`. The implementation queries the local repository manager — a pure disk lookup with no network I/O — to determine which remote repository the artifact was originally downloaded from. This information is tracked by the local repo manager in `.repositories` tracking files alongside each cached artifact. Returns `Optional.empty()` for: - Root nodes with no artifact - Nodes with no candidate repositories (e.g. local installs) - Artifacts that were locally installed (not downloaded from a remote) ## Changes - `DefaultNode.getRepository()`: replaces `UnsupportedOperationException` with a `LocalRepositoryManager.find()`-based implementation - `Node.java`: adds missing `@return` Javadoc - `DefaultNodeTest`: four new tests covering the happy path, the not-found case, no-artifact (root node), and empty-repos cases -- 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]
