Maven - How do I validate dependencies are available in the declared repositories?
java, maven
Solution
run `mvn dependency:analyze`
it will check dependencies for you.
ref: http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html
Problem
I have just edited the `<repositories />` section of my `pom.xml` file for a project, removing a couple of repo's I thought were unneeded. I'd like to validate that the declared dependencies are still resolvable in the available repositories. However, all of the declared dependencies are available in my local repo, so any attempt to build will just use the local ones. I don't want to simply nuke my local repo, as it takes many hours to download all the dependencies from scratch. Similarly, I'm not interested in having maven attempt to download all the dependencies, I just want it to ensure that they're all resolvable (including transitive dependencies). How do I do this?