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

59,544

Solution 1

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.

Solution 2

You can manage these settings by editing your settings.xml file of the project

  1. Open the Project file list (Ctrl-1)
  2. Find your main parent pom.xml file
  3. Right click on it Choose Maven -> Open 'settings.xml'

As you can see it is a local copy of settings.xml file for your project. There is you can add/remove active repositories of the project. Look at the settings->repositories manual for details.

Solution 3

I had a related issue where I changed the repository in my settings.xml but the Indexed Maven Repositories list was still pointing to the old one. In order to get the maven build to look at the new one I had to run mvn idea:idea on the project

Share:
59,544
dnim
Author by

dnim

Updated on October 26, 2020

Comments

  • dnim
    dnim over 3 years

    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

  • dnim
    dnim over 12 years
    yep! It's really works.. I found the problem in other place (some of artifacts has a wrong versions..) Thank you, Anton! )
  • Superole
    Superole about 6 years
    ...except for https://repo.maven.apache.org/maven2 which seems to be some kind of undocumented default
  • louhow
    louhow about 3 years
    Ahh, this has been killing me. Thank you tons!