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?
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.
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.
In Settings > Maven click on Override next to Local repository directory http://www.jetbrains.com/idea/webhelp/maven.html
Hope this helps.
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