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

前端 未结 1 391
后悔当初
后悔当初 2020-11-30 18:13

Is it possible to point to a specific settings file in order to override the default settings.xml being used by maven for a single command? Example:

mvn clea         


        
相关标签:
1条回答
  • 2020-11-30 18:44

    You can simply use:

    mvn --settings YourOwnSettings.xml clean install
    

    or

    mvn -s YourOwnSettings.xml clean install
    
    0 讨论(0)
提交回复
热议问题