specify custom location of maven security-settings.xml file?

后端 未结 1 1846
北海茫月
北海茫月 2021-02-19 06:48

with maven you can easily specify settings.xml location, e.g:

mvn -s custom/dir/settings.xml package

Is there a similiar way to specify custom

1条回答
  •  醉话见心
    2021-02-19 07:18

    This was requested as MNG-4853. Although not implemented directly, a workaround is suggested:

    I've verified that -Dsettings.security=path/to/security-settings.xml works

    As detailed in the announcement blog post, you can also use the master password relocation feature. Write an ~/.m2/security-settings.xml file with a redirection in it:

    
      /Volumes/mySecureUsb/secret/settings-security.xml
    
    

    0 讨论(0)
提交回复
热议问题