In Chapter 2, Software Engineering Techniques, we explored Dependency Management capabilities of Apache Maven in the recipe Dependency management. Apache Maven projects can be dependent on other "artifacts". These artifacts can be other projects or external libraries. Apache Maven stores all packaged artifacts in a local repository. The local repository exists on your filesystem and its location is configured in ${M2_HOME}/conf/settings.xml
or ${USER_HOME}/.m2/settings.xml
.
In the instances where we have dependencies that aren't available in the local repository, we see that Apache Maven automatically downloads them from the Maven Central Repository.
It is possible that our projects have unique dependencies that aren't available in the Apache Maven Central Repository . Apache Maven does let you manually add libraries into the local repository through the command line. However, to expect every project team member to manually download and install the...