开发者社区> 问答> 正文

idea mvn deploy 到 nexus 错误?报错

idea 直接构建打包到nexus报错。错误如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project pcd-web-framework: Failed to deploy artifacts: Could not transfer artifact com.maven.framework:pcd-web-framework🏺2.0.0 from/to nexus-releases (http://xxxxx/nexus/content/repositories/releases/): Failed to transfer file: http://xxxxx/nexus/content/repositories/releases/com/maven/framework/pcd-web-framework/2.0.0/pcd-web-framework-2.0.0.jar. Return code is: 400, ReasonPhrase: HTTP method PUT is not supported by this URL. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

展开
收起
爱吃鱼的程序员 2020-06-07 16:21:52 1010 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>自己回答下。查了很多资料都说到这个:</p>
    

     Return code is: 400
    400错误的含义是“错误的请求”,在这里的原因是往往是没有部署到nexus的仓库中。nexus的repository分三种类型:Hosted、Proxy和Virtual,另外还有一个repository group(仓库组)用于对多个仓库进行组合。部署的时候只能部署到Hosted类型的仓库中,如果是其他类型就会出现这个400错误。  具体是那里大牛们帮忙看看

    2020-06-07 16:22:12
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
蚂蚁金服高级开发工程师萧恺:IDEA 插件开发入门教程 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载