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