What is the format of svn-settings.xml for use with Maven SCM plugin?

前端 未结 1 866
醉话见心
醉话见心 2021-01-06 17:44

I\'m trying to externalize my username and password but it seems the format of svn-settings.xml is incorrect. I can\'t find any resources on the web except

相关标签:
1条回答
  • 2021-01-06 18:25

    According to the maven SCM integration documentation it seems that the svn-settings.xml file only allows these parameters:

    • configDirectory
    • useCygwinPath
    • cygwinMountPath
    • useNonInteractive

    If you do not want to put the password in the pom.xml you can pass it as a command line parameter

    in the pom.xml:

    <connectionUrl>scm:svn:http://my_username@my_hostname/im-tools-repos/trunk</connectionUrl>
    

    And when invoking maven:

    mvn -Dpassword=my_password scm:status
    
    0 讨论(0)
提交回复
热议问题