Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter

在使用maven的上传命令时遇到的报错

原因是deploy插件的版本是2.7需要在项目的pom.xml文件中配置上传的仓库信息, 升级到2.8后会使用setting.xml中的配置

在pom.xml文件中的 build->plugins标签下添加
  <plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-deploy-plugin</artifactId>
	<version>2.8.2</version>
  </plugin>

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐