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 the indexes in the Maven Repositories window.

To browse Maven repositories

  1. Choose Window > Other > Maven Repository Browser to open the Maven Repositories window.
  2. Expand the nodes in the window to view the contents of the repositories.

The Maven Repositories 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).

The Maven Repositories window contains the following buttons for working with repositories.

Button Description
Updates repository indexesUpdates Indexes. Click this to reindex the local repository and update the indexes for the remote repositories.
Add repositoryAdd repository. Click this to open the Add Repository dialog box where you can specify the details for the new repository.
Find in repositoryFind. Click this to open the Find in Repositories dialog box. Enter a term to search the repositories for artifacts containing the term.

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

See Also
About Working with Maven

Legal Notices