careful
careful

Reputation: 69

How can I exclude reading settings.xml from mavens .m2 folder

does anyone knows how can I use the default maven settings and not the one which is defined in .m2/settings.xml, as this file has some other configurations which aren't suiting this project? I cloned a simple SpringBoot project, but can't find a solution of how to tell the project to not look on those settings from .m2/ and use the default ones.

Upvotes: 0

Views: 1226

Answers (2)

MatKuhr
MatKuhr

Reputation: 563

In IntelliJ you can override the settings file used by the maven plugin under Settings > Build, Execution, Deployment > Build Tools > Maven

Upvotes: 0

J Fabian Meier
J Fabian Meier

Reputation: 35843

You can write a second settings.xml (e.g. named second-settings.xml) that is right for your project and use it with -s second-settings.xml on the command line.

Upvotes: 1

Related Questions