背景:将项目打包到nexus私服仓库中报错
出错代码:
<distributionManagement>
<!-- 配置正式版发布的仓库(非必要)-->
<repository>
<id>itheima-release</id>
<url>http://localhost:8081/repository/itheima-release/</url>
</repository>
<!-- 配置快照版发布的仓库(非必要)-->
<snapshotRepository>
<id>itheima-snapshot</id>
<url>http://localhost:8081/repository/itheima-snapshot/</url>
</snapshotRepository>
</distributionManagement>
原因:
1,要么是你创建仓库时version-policy选错了,snapshot仓库的version-policy选成了release等
2,要么是xml的distributionManagement填岔了