How to pass Maven settings via environmental vars

后端 未结 3 1645
无人共我
无人共我 2020-12-29 23:18

In our setting.xml file we have the following:


    
      deploymentRepo
      repouser<         


        
3条回答
  •  暖寄归人
    2020-12-29 23:59

    You can pass the URL including the credentials like

    mvn deploy -DaltReleaseDeploymentRepository=myrepo::https://user:pass@server/repo

    see https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html

提交回复
热议问题