How to add repos in the list of indexed repo in Intellij IDEA?

109 views Asked by At

After, I have imported a project in Intellij IDEA, It couldn't resolve any dependance. because in Settings -> Build Tools -> Maven -> Repositories in the Indexed Maven Repositories, it has only the local repo. So, How can I add the Maven Central Repository?

1

There are 1 answers

2
liponcio On

That must be because you don't have maven correctly configured.

Verify if you have the correct configuration in your

/.m2/settings.xml

For more info see

http://maven.apache.org/settings.html