Search code examples
javamaven-2build-process

How can I ask Maven for a list of the default repositories?


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?


Solution

  • 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