Maven repositories 


January 23, 2011 19:28:35    Last update: October 28, 2011 12:10:07
Maven repositories are a central part of the Maven build system. Maven resolves dependencies through repositories. There are two types of repositories: local and remote.

The local repository stores local build artifacts (when you do mvn install) and caches artifacts from remote repositories. It is usually located on the local file system at $USER_HOME/.m2/repository.

Remote repositories are located on the network and accessed by URLs (http:// or file:// etc). The central Maven repository is: The Java EE repositories are located at: and Remote repositories can also be set up on the company intranet within a company's firewall.

The central repository is automatically configured after installation. You can add additional repositories in settings.xml, for example:
<?xml version="1.0" encoding="UTF-8"?>


		    <name> Repository for Maven</name>

You can search for dependency groupId/artifactId/version with the Maven Central Search Engine.
Share |
| Comment  | Tags