前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。
1. 執行 mvn clean deploy ... 想把 jar 包更新到私服倉庫,報錯:
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 -
DaltDeploymentRepos
2. 原因:在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>
配置的值來自私服此頁面,左邊是 id , 右邊點擊 copy 可得 url 。
更多請見文章:Docker 方式安裝、運行 Nexus3 、重置默認密碼、推送 jar 包到私服