当前位置: 首页 > news >正文

maven的install不报错但deploy到nexus报400错误

一.情况描述

        mvn install工程正常构建完成,但我mvn deploy报400错误,局域网maven组件仓库nexus也是正常的,deploy的帐号密码都是对的。报错信息如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.1.1:deploy (default-deploy) on project pangu-axe-parent: Failed to deploy artifacts: Could not transfer artifact com.scantt:pangu-axe-parent:pom:0.2.2 from/to nexusServer (http://10.1.230.123:8081/nexus/content/repositories/releases/): status code: 400, reason phrase: Bad Request (400) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[JENKINS] Archiving C:\Users\Administrator\.jenkins\workspace\pangu-axe-parent\pangu-axe\pom.xml to com.scantt/pangu-axe/0.2.2/pangu-axe-0.2.2.pom
[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

二.问题是RELEASE版本和SNAPSHOT版本的区别

        在nexus仓库中,SNAPSHOT版本允许同一个版本号多次deploy,但RELEASE版本一个版本号仅允许deploy一次。根据实际情况,要么使用SNAPSHOT版本,要么使用RELEASE版本。

       PS:版本升级应该包含源代码版本和源代码生成的基于maven组件版本两个部分。源代码版本是通过git的分支与合并处理。maven组件版本是通过mvn versions:set -DnewVersion=xxxx 来修改的。详见之前的文章转载maven版本更新_manve 版本更新-CSDN博客

http://www.lryc.cn/news/366795.html

相关文章:

  • WebSocket前端分页:技术深度、实践困境与未来展望
  • 基于jeecgboot-vue3的Flowable流程-待办任务(一)
  • 计算机网络--传输层
  • 【Vue】普通组件的注册使用-局部注册
  • 搞编程学习时是如何查找资料的?
  • 2024年AI大模型训练数据白皮书作用
  • Highcharts 条形图:数据可视化利器
  • 算法——二分查找
  • 统计信号处理基础 习题解答10-8
  • Flutter打包网络问题解决办法
  • 【ARM Cache 及 MMU 系列文章 6.3 -- ARMv8/v9 Cache Tag数据读取及分析】
  • Lua移植到标准ANSI C环境
  • crossover软件安装程序怎么安装 Crossover for Mac切换Windows系统 crossover软件怎么样
  • 【2024高考作文】新课标I卷-人工智能主题,用chatGPT作答
  • 【计算机网络】P2 计算机网络体系结构基本概念,涉及分层的基本术语、SDU、PCI 与 PDU 的概念以及层次结构的含义
  • 主流物联网协议客户端开源库介绍(mqtt,coap,websocket,httphttps,tcp及udp)
  • 【Python】成功解决SyntaxError: invalid syntax
  • 源代码防泄密
  • Unity DOTS技术(十三) ComponentSystem及JobComponentSystem
  • Apifox的使用
  • 【SpringBoot】SpringBoot整合RabbitMQ消息中间件,实现延迟队列和死信队列
  • kafka消息积压处理方案
  • 【vscode-快捷键 一键JSON格式化】
  • 什么是 Spring Boot 的起步依赖和自动配置?它们的作用是什么?
  • rk3568 norflash+pcei nvme 配置
  • 【Vue】面经基础版-首页请求渲染
  • OBS+nginx+nginx-http-flv-module实现阿里云的推流和拉流
  • ch1计算机网络和因特网
  • Web前端安全测试:深入剖析与实战策略
  • Java学习-JDBC(一)