eka*_*aqu 15 plugins release maven
我正在开发一个开源库,并希望将发布内容发送到内部工件服务器.我一直在使用maven distributionManagement和overriding altDeploymentRepository指向内部服务器(因此它永远不会在pom中).我这样做很好,deploy:deploy但是当我使用maven release插件时,这似乎被忽略了.
mvn clean -DaltDeploymentRepository=central::default::internalhost deploy ## works
mvn clean -DaltDeploymentRepository=central::default::internalhost release:perform ## fails, doesn't pick up this setting
Run Code Online (Sandbox Code Playgroud)
当发布插件运行部署时,如何通过命令行覆盖存储库?
使用
altReleaseDeploymentRepository
Run Code Online (Sandbox Code Playgroud)
它具有与altDeploymentRepository相同的语法
更多信息:https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html
mvn版本:执行-Darguments = -DaltDeploymentRepository = myvalue
诀窍是:“-参数”
有效的解决方案在yorkw注释中(对于2.7版中的maven-deploy-plugin),当您使用更高版本的maven-deploy-plugin(例如2.8)时,请使用参数altReleaseDeploymentRepository。
| 归档时间: |
|
| 查看次数: |
7154 次 |
| 最近记录: |