前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到教程。
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 包到私服