解决:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)
生活随笔
收集整理的這篇文章主要介紹了
解决:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
前些天發(fā)現(xiàn)了一個(gè)巨牛的人工智能學(xué)習(xí)網(wǎng)站,通俗易懂,風(fēng)趣幽默,忍不住分享一下給大家。點(diǎn)擊跳轉(zhuǎn)到教程。
1. 執(zhí)行 mvn clean deploy ... 想把 jar 包更新到私服倉(cāng)庫(kù),報(bào)錯(cuò):
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project xxx-xxx-xxx: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in - DaltDeploymentRepos2. 原因:在pom 中忘記了配置 私服信息,加上就可以了:
<distributionManagement><repository><id>maven-release</id><name>Nexus Release Repository</name><url>http://xx.xx.xx.xx:8081/repository/maven-releases/</url></repository><snapshotRepository><id>maven-snapshots</id><name>Nexus Release Repository</name><url>http://xx.xx.xx.xx:8081/repository/maven-snapshots/</url></snapshotRepository></distributionManagement>配置的值來(lái)自私服此頁(yè)面,左邊是 id , 右邊點(diǎn)擊 copy 可得 url 。
更多請(qǐng)見文章:Docker 方式安裝、運(yùn)行 Nexus3 、重置默認(rèn)密碼、推送 jar 包到私服
總結(jié)
以上是生活随笔為你收集整理的解决:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: C# Socket服务器及多客户端连接应
- 下一篇: 解决:无法获取实体类com.xxx.xx