我正在开发一个开源库,并希望将发布内容发送到内部工件服务器。我一直在使用maven's distributionManagement
并压倒一切 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
当发布插件运行部署时,如何通过命令行覆盖存储库?