Reputation: 878
I am upgrading from maven 2 to maven 3. I have changed the maven home from M2_HOME to M3_HOME, created .m3 folder put the settings.xml inside it. Removed the .m2 folder also.
I see in the maven 3 global settings.xml, the default location of settings.xml is .m2\settings.xml. I could force maven to read the settings.xml from inside .m3 folder by supplying
mvn clean install -Dmaven.repo.local=C:/Users/tabeme/.m3/repository --settings C:\Users\tabeme\.m3\settings.xml
But I dont want to do this every time I build. Is there a way I can permanently make maven to read settings.xml from .m3 folder?
Upvotes: 0
Views: 1786
Reputation: 4859
Maven 3 is a drop in replacement for maven 2.
It uses M2_HOME and .m2 folders as normal.
You should only change settings if you for some reason want to run multiple maven instances.
Upvotes: 2