【maven】maven 项目 deploy 报错:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7
2021-03-26 10:28
标签:man xxxxxx mil pac 方法 tail tor src ever ======================= https://blog.csdn.net/liuxiao723846/article/details/52604377 maven 项目 deploy 报错:
意思是在pom文件中缺少distributionManagement标签,或者缺少-DaltDeployementRepositoty,说的是缺少deploy的地址,maven不知道你想要deploy到哪里,在pom文件中增加如下信息,就发布成功了. 或 【maven】maven 项目 deploy 报错:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7 标签:man xxxxxx mil pac 方法 tail tor src ever 原文地址:https://www.cnblogs.com/sxdcgaq8080/p/12641149.html参考地址:
报错:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project 项目名XXX: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRep
ository=id::layout::url parameter
报错原因:
解决方法:
distributionManagement>
snapshotRepository>
id>nexusid>
name>snapshotsname>
url>http://XXXXXXXXXXXXX/nexus/content/repositories/snapshotsurl>
snapshotRepository>
distributionManagement>
distributionManagement>
repository>
id>nexusid>
name>releasesname>
url>http://mvn2.qdingnet.com/nexus/content/repositories/releasesurl>
uniqueVersion>trueuniqueVersion>
repository>
snapshotRepository>
id>nexusid>
name>snapshotsname>
url>http://XXXXXXXXXXXXX/nexus/content/repositories/snapshotsurl>
snapshotRepository>
distributionManagement>
文章标题:【maven】maven 项目 deploy 报错:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7
文章链接:http://soscw.com/essay/68123.html