views:

37

answers:

3

What command can I use to ask Maven for a list of the default repositories that it searches for its dependencies? If no such command exists, where else may I look to find this default list?

+2  A: 

You can output the effective pom with the command

mvn help:effective-pom

There the default repositories are listed.

tangens
A: 

As a side-effect of displaying newer versions, the versions:display-dependency-updates goal of the Versions Maven Plugin also displays the names of the repositories that it searches. To display the newer versions and the repository names, run

mvn versions:display-dependency-updates
Derek Mahar
+1  A: 

on the command line, execute

mvn help:evaluate

then, when prompted, enter

${project.repositories}

see http://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html

seanizer