问题报错:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project apollo: Failed to deploy artifacts: Could not transfer artifact com.ctrip.framework.ap
ollo:apollo:pom:0.8.0 from/to releases (http://192.168.1.43:8081/nexus/content/repositories/releases/): Failed to transfer file: http://192.168.1.43:8081/nexus/content/repositories/releases/com/ctrip/fra
mework/apollo/apollo/0.8.0/apollo-0.8.0.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [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
==== building client finished ====

问题分析:
很明显用户权限不足,按网上提供的解决办法:
http://www.iteye.com/problems/71458

修改nexus 的releases 下的Deployment Policy为allow redeploy 和用户deployment 的密码。
然而并没有什么用,还是报401.
mvn -X 这个命令查看当前生效的settings.xml是哪一个。

[DEBUG] Reading global settings from d:\apache-maven-3.3.9-bin\apache-maven-3.3.9\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\Administrator\.m2\settings.xml

发现有2个settings.xml在在git bash里面其使用的是C盘用户目录下的,而C盘这里面的username首字母大写,导致无法连接,所以把安装目录下改好的配置文件复制到
C:\Users\Administrator.m2\下,问题解决。
参考
参考

mvn -deploy 报错 Failed to deploy artifacts: Could not transfer artifact相关推荐

  1. 【maven】mvn deploy 报错 Failed to deploy artifacts: Could not transfer artifact

    文章目录 1.场景1 1.1 概述 1.场景1 1.1 概述 因为在windows下,内网环境,然后升级了flink,但是包是外网拷贝进去的,拷贝到我的本地,现在本地升级好了,需要将jar包发布到内网 ...

  2. mvn deploy报错”Non-resovable parent POM for...:Could not find artifact...“

    报错 执行mvn deploy或者mvn clean deploy:deploy-file时会报错:Non-resovable parent POM for-:Could not find artif ...

  3. 重新编译CDH版本hadoop报错:Non-resolvable parent POM: Could not transfer artifact com.

    重新编译CDH版本hadoop报错: Could not transfer artifact com.cloudera.cdh:cdh-root:pom:5.14.0 from/to cdh.repo ...

  4. mvn deploy 报错:Return code is: 400, ReasonPhrase: Bad Request. -

    mvn deploy 报错:Return code is: 400, ReasonPhrase: Bad Request. -> TEST通过没有报错,但是最终部署到Nexus中时出现错误. 后 ...

  5. 淘淘商城项目报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-

    @[TOC](淘淘商城项目报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (d ...

  6. 记录一次wagon报错Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload-single

    记录一次wagon报错Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload-single (default-cl ...

  7. Pyinstaller 打包exe 报错 “failed to execute script XXX“的一种解决方案

    Pyinstaller 打包exe 报错 "failed to execute script XXX"的一种解决方案 参考文章: (1)Pyinstaller 打包exe 报错 & ...

  8. tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].

    一.问题 tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost]. 多半情况是找不到 ...

  9. 解决IntelliJ IDEA报错Failed to read candidate component class: file [ ]; nested exception is org.

    解决IntelliJ IDEA报错Failed to read candidate component class: file [ ]; nested exception is org.springf ...

最新文章

  1. net start mysql 提示:服务名无效 请键入NET HELPING 2185以获得更多的帮助的问题
  2. C语言成长学习题(十六)
  3. 64位ubuntu kylin 16.04下tiny4412开发环境搭建
  4. sqlserver添加默认值
  5. android paint 圆角 绘制_[BOT] 一种android中实现“圆角矩形”的方法
  6. bzoj1051: [HAOI2006]受欢迎的牛(tarjan强连通分量)
  7. ~~字符串哈希(数据结构)(附模板题AcWing 841 字符串哈希)
  8. 家校协同小程序实战教程
  9. 手把手带你快速实现直播聊天室
  10. 定向思维 C# datediff
  11. 世界各国国家货币代码大全[收藏]
  12. C++搜索与回溯算法之红与黑
  13. Autovue 集成
  14. 项目应用案例:智慧灯杆、交互式投影装置等将助成都锦城大道变身“智慧大街”
  15. 一堂难忘的计算机课作文,难忘的一堂课作文7篇
  16. 康托展开(基于全排列的某一种hash)
  17. 微软 Visual Studio 2017 RC 中文版下载 - 免费社区版/专业版/企业版
  18. 高等数学——向量应用二空间直线
  19. 第一部分 思科九年 一(10)
  20. javaScript与jQuery中Window对象

热门文章

  1. 【华为OD机试真题 JAVA】数字反转打印
  2. 使用echarts配置中国地图
  3. Hi3518的uboot中播放音频
  4. [小技巧] Windows 命令行显示英文
  5. 计算机辅助翻译stm,计算机辅助翻译报告.doc
  6. 算算新税率比老费率少扣多少钱 --- 2018年10月1日 新的税收费率改革
  7. iPhoneX安全区域与H5引发的问题(Safe Area)
  8. 职称计算机xp系统试题,2015年职称计算机WindowsXP测试题及答案
  9. centos7安装apt
  10. John Morgan:黎曼几何、曲率、Ricci流以及在三维流形上的应用二讲