Monday, April 5, 2021

maven command line how to point to a specific settings.xml for a single command?

https://stackoverflow.com/questions/25277866/maven-command-line-how-to-point-to-a-specific-settings-xml-for-a-single-command/25279325#25279325

We usually keep settings.xml in ~/.m2/settings.xml

But its kind of makes it global

What if we want to have our own local settings.xml instead of default and global one,

You can simply use:

mvn --settings YourOwnSettings.xml clean install

or

mvn -s YourOwnSettings.xml clean install


No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass