Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
1. 没有指定仓库地址,就在项目pom里添加仓库或者-DaltDeploymentRepository。
2. 在setting.xml里指定了仓库,但是读取不到。maven-deploy-plugin版本2.8以下不会去setting.xml拉取配置,所以升级maven-deploy-plugin版本>=2.8。
版权声明:本文为xsgnzb原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。