Maven more than 1 settings.xml

I have more than 1 settings.xml file and I want to specify the 1 I want to use when I run > mvn from the command line, because running mvn help:effective-settings is showing 1 file but it seems that is using the other one

Upvotes: 0

Views: 2220

Answers (1)

Pablo
Pablo

Reputation: 534

Use:

mvn --settings settingsYouWant.xml clean install

If you add the argument -X to your maven command (debug) you can see which one is picking.

Upvotes: 2

Related Questions