Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: Set the settings.xml location in the pom.xml?

Is it possible to set the location of the settings.xml file inside the pom.xml file.

I know you can do it from the command line typing mvn -s location/of/settings.xml, but I wanted to know if I can set that within the pom.xml so I don't have to keep typing through command line.

like image 967
Rob Avery IV Avatar asked Nov 13 '22 12:11

Rob Avery IV


1 Answers

No. And that's probably a horrible idea, from a security standpoint. It'd allow the creator of a pom to bypass all your settings.xml settings. If you do the mvn -s location/of/settings.xml you will at least know it happened. But if you just randomly build a project, who knows how malicious that project's creator was.

like image 131
Michael Avatar answered Nov 15 '22 06:11

Michael