在maven构建到nexus 3时出现405错误

sta*_*ara 1 nexus sonatype nexus3

我在nexus 3中创建了代理repos,指向nexus 2托管的repos.这是在nexus2上快照和发布repos.现在,在distributionManagement标签上,iam使用代理URL并尝试执行"mvn clean deploy".我收到了错误

[INFO]部署工件时出错:无法传输文件:http://nexus3url/repository/m2-snapshots/path/abc-1.1.4-SNAPSHOT.pom.返回码是:405

有没有人试过这个.

谢谢

Dar*_*ter 6

如评论中所示,您只能部署到Maven Hosted Repositories而不是Proxies.这是设计的.

  • 在过去的 5 个小时里,我一直在浏览可能的解决方案。没有人在其他任何地方提到这一点。 (2认同)