Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding maven repo in IntelliJ

Tags:

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.

like image 899
Joelmob Avatar asked May 20 '12 20:05

Joelmob


People also ask

How do I add Maven to an existing IntelliJ project?

Add Maven support Open an existing project, for example, a Java project. In the Project tool window, right-click your project and select Add Framework Support. In the dialog that opens, select Maven from the options on the left and click OK.

Why Maven is not showing in IntelliJ?

In the file menu select settings -> plugins. search for maven, select maven, select enable. Restart intellij. Once restarted you will now have the option to start new maven project and maven functionality will be accessible in all your previous projects.

How do I download Maven repository from IntelliJ?

Download a library from MavenFrom the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Libraries. and select From Maven. You can also specify another library location, and select whether you want to download transitive dependencies, source files, Javadoc files, or annotations.

Can we install Maven in IntelliJ?

Maven IntelliJ IDEA supports a fully-functional integration with Maven that helps you automate your building process. You can easily create a new Maven project, open and sync an existing one, add a Maven support to any existing IntelliJ IDEA project, configure and manage a multi-module project.


1 Answers

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.

like image 156
CrazyCoder Avatar answered Sep 24 '22 10:09

CrazyCoder