Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

find out from which maven repository the jar is coming from

There is a plugin that works properly in my co-worker's system but doesn't in mine. I suspect it because of a repository included in his settings.xml but not in mine. Is there a tool that I can use to figure out from which repo is this plugin being downloaded from?

like image 743
Salil Surendran Avatar asked Aug 13 '12 17:08

Salil Surendran


2 Answers

Maven stores that info in a file called _maven.repositories in your local maven repository (typically ~/.m2/repositories) for each artifact. The file is located right beside the corresponding artifacts in the local maven repository.

This file will typically list the repository / plugin-repository that the artifact was downloaded from. This matches to the repository from your settings.xml file.

like image 136
Stefan Ferstl Avatar answered Oct 08 '22 10:10

Stefan Ferstl


In Maven 3, the file seems being changed to _remote.repositories

like image 43
Justin Avatar answered Oct 08 '22 11:10

Justin