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?
Maven Central, a.k.a. the Central Repository, is the default repository for Maven, SBT, Leiningen, and many other JVM based build tools.
2.1 Find this file {MAVEN_HOME}\conf\settings. xml and update the localRepository . Issue mvn -version to find out where is Maven installed. 2.2 Save the file, done, the Maven local repository is now changed to D:/maven_repo .
A repository in Maven holds build artifacts and dependencies of varying types. There are exactly two types of repositories: local and remote: the local repository is a directory on the computer where Maven runs. It caches remote downloads and contains temporary build artifacts that you have not yet released.
Explicitly Pointing to Maven Central from your POM file. To explicitly configure maven to use Central from your Project Object Model (POM) file, you may do so by adding the following to your pom. xml: This is based on the Maven Default Project which defines the Super POM, or default settings, for all Maven builds.
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
You can output the effective pom with the command
mvn help:effective-pom
There the default repositories are listed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With