1

2 Maven Repositories - repA, repB. repA is getting decommissioned. Multiple applications depend currently on both repA,repB.

What is the quickest way to identify jars which are on repA but not on repB ? Also, would be perfect if repA and repB have the same versions of a given jar- we can compare the md5 so that we can show diffs & prompt those applications for additional testing.

Alternative solution might be show all jars(version,md5) under a repository.

Achow
  • 8,600
  • 6
  • 39
  • 49
  • *are on repA* , do you mean repA is dependent on here or those which depends on repA? – Naman Dec 12 '16 at 04:15
  • RepA,B totally separate. Apps depend on both currently – Achow Dec 12 '16 at 04:33
  • does `mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree` (`mvn dependency:tree`) for both repA and repB solves your problem? – Naman Dec 12 '16 at 04:42
  • if your repositories are file-based, this page can help you: http://stackoverflow.com/questions/4997693/given-two-directory-trees-how-can-i-find-out-which-files-differ – saeid rastak Dec 12 '16 at 05:44

1 Answers1

1
mvn project-info-reports:dependencies

this will generate a reporting html in /target/site/dependencies.html

you can check the information in Dependency Repository Locations enter image description here

more about the plugin

chaoluo
  • 2,596
  • 1
  • 17
  • 29