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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With