Working with Maven Repositories

See Also 

Software library archives (JARs), build artifacts and dependencies that are used to build Maven projects are stored in repositories. There are two types of repositories:

The IDE indexes the contents of local and remote Maven repositories using the Nexus indexing engine. The IDE uses the repository indexes for some Maven-related functions such as code completion. You can browse and manage Maven repository indexes in the Services window.

To browse Maven repositories:

The Maven Repositories node in the Services window lists the Maven repositories registered with the IDE and enables you to add, remove and update Maven repositories. The local Maven repository is indicated by a yellow repository node ( local Maven repository) and remote repositories are indicated by blue repository nodes ( remote Maven repository).

You can expand the repository nodes to view the indexed artifacts grouped by GroupId and ArtifactId, the version of the sources and the type of packaging. Depending on the metadata available, you can right-click an artifact to perform various actions.

To locate artifacts in the repositories:

  1. Right-click the Maven Repositories node and choose Find.
  2. Enter the search term for the artifact in the Find in Repositories dialog box (a groupID, for example) and select any additional criteria. Click OK.

When you click OK the IDE will create a node for the search term (Find in repository) under the Maven Repositories node. Expand the search node to view a list of the artifacts that matched your search. You can remove the search node by right-clicking the node and choosing Delete.

To add a repository:

  1. Right-click the Maven Repositories node and choose Add Repository.
  2. Specify the details for the new repository. Click Add.

When you click Add the IDE will create a node for the new repository. under the Maven Repositories node.

To update the index of a repository:

See Also
Working with Maven Artifacts
About Working with Maven

Legal Notices