赞
踩
在idea
中点击deploy
插件上传项目到nexus
服务器,出现如下错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project maven_03_pojo: Failed to deploy artifacts: Could not transfer artifact com.itheima:maven_03_pojo:jar:1.0-20230517.090723-1 from/to itheima-snapshot (http://localhost:8081/repository/itheima-snapshot/): Failed to transfer file http://localhost:8081/repository/itheima-snapshot/com/itheima/maven_03_pojo/1.0-SNAPSHOT/maven_03_pojo-1.0-20230517.090723-1.jar with status code 400
我在nexus中创建了两个仓库:itheima-release和itheima-snapshot,但version policy都设成了Release,形成了冲突。
删除并重建itheima-snapshot仓库,把version policy设为Snapshot即可。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。