简体   繁体   中英

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM