How to specify an alternate location for the .m2 folder or settings.xml permanently?

You need to add this line into your settings.xml (or uncomment if it’s already there).

<localRepository>C:\Users\me\.m2\repo</localRepository>

Also it’s possible to run your commands with mvn clean install -gs C:\Users\me\.m2\settings.xml – this parameter will force maven to use different settings.xml then the default one (which is in $HOME/.m2/settings.xml)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)