我正在开发一个开源库,并希望将发布版本发送到内部的 artifactory 服务器。我一直在使用 Maven 的 distributionManagement
并覆盖 altDeploymentRepository
来指向内部服务器(因此它从未出现在 pom 中)。当我执行 deploy:deploy
时,这个方法运行良好,但是当我使用 Maven 发布插件时,似乎被忽略了。
mvn clean -DaltDeploymentRepository=central::default::internalhost deploy ## works
mvn clean -DaltDeploymentRepository=central::default::internalhost release:perform ## fails, doesn't pick up this setting
当发布插件运行deploy时,如何通过命令行覆盖存储库?
mvn release:perform -Darguments=-DaltDeploymentRepository=myvalue
。 - yorkwcentral::default::internalhost
是什么意思?它不应该像一些 URL 一样吗? - Lei Yang