IntelliJ IDEA: "Indexed Maven Repositories" list - how to add remote maven repository in this list?

dnim picture dnim · Nov 16, 2011 · Viewed 56.5k times · Source

I'm having trouble understanding how to get repositories in the "Indexed Maven Repositories" list of the IntelliJ IDEA.

In one my project I have two repos in this list: one local and one (main) remote (see attached screenshot below). And in other project (created using AppFuse template) I have only one (local) repo in list.

I'm tried to add the repos in pom.xml file and in settings.xml file, but the repos did not appear in this "magic" list.

And this means:

  1. I can't see artifactId and versions of artifacts in dropdownlist (Ctrl+SPACE)
  2. IDEA can't find the necessary artifacts (or his versions). It is looking only in my local repo

Version of IntelliJ IDEA: 11.0

Version of Maven: 2.2.1

snapshot of settings

Answer

Anton Makeev picture Anton Makeev · Nov 16, 2011

This list is updated automatically from the repositories specified in your pom files (or inherited from parent project's pom and settings.xml).

If you open a project that has some additional repositories specified, you'll see them in this list and will be able to update the indices.