Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ and M2 repo

I have configured Maven in IntelliJ, and the paths are correct to the M2 repo. How do I tell IntelliJ to look at that repo when it needs a dependency in my project?

like image 757
Frank Avatar asked Jul 19 '12 23:07

Frank


People also ask

How do I change the .m2 path in IntelliJ?

From the main menu select File | Settings/Preferences | Build, Execution, Deployment |Build Tools | Maven. On the Maven settings page, in the Maven home directory field, specify the location of the Maven custom version installation.

How do I change my local repository in IntelliJ?

Save this answer. Show activity on this post. For IntelliJ Community Edition 2020.3, go to File | Settings | Build, Execution Deployment | Maven, and change the "Local repository:" by clicking on the Override checkbox on the right and entering the path to its left.


1 Answers

In Settings > Maven click on Override next to Local repository directory http://www.jetbrains.com/idea/webhelp/maven.html

Hope this helps.

like image 90
Raul Avatar answered Oct 17 '22 02:10

Raul