How can one determine the origin of a given Maven dependency?
build-process, dependencies, java, maven-2
Solution
As mentioned by @Eugene, the origin of a dependency isn't stored anywhere so the only way to find this after the fact (if you're not behind a corporate repository) would be to purge the dependencies of a given project and to re-resolve them. The following goal of the Maven Dependency Plugin can do that:
mvn dependency:purge-local-repository -DreResolve=true
Note that `reResolve` is set to `true` by default, I just mentioned it for documentation purposes.
Problem
Given a local Maven repository, can one determine the remote repository that is the source of a particular dependency? How?