Maven – Adding maven repo in IntelliJ

intellij-ideamaven

I'm having trouble adding this repo http://repo1.maven.org/maven2/ under Settings > Maven > Repositories. It also says Nexus Service or Artifactory URL. How can I check if the URL is one of these types?

http://repo1.maven.org/maven2/ is the URL I use in NetBeans for Maven, and it works there.

Best Answer

This repository is already used by default and is hardcoded, you don't need to add it manually. If you want to use any other repository, the easiest way would be to define it directly in the pom.xml file or in your settings.xml. In either way IDEA will load these settings automatically.