记录一次wagon报错Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload-single (default-cli) on xxx: Error handling resource

该报错是配置的fromFile路径和指定执行maven命令的目录不一致导致层级出错而找不到本地jar包位置,检查运行maven的目录和配置的路径是否正确即可。

<build><extensions><extension><groupId>org.apache.maven.wagon</groupId><artifactId>wagon-ssh</artifactId><version>2.10</version></extension></extensions><plugins><plugin><groupId>org.codehaus.mojo</groupId><artifactId>wagon-maven-plugin</artifactId><version>1.0</version><configuration><serverId>${profiles.active}</serverId><fromFile>${profiles.module}/target/${profiles.jar}</fromFile><url><![CDATA[scp://${profiles.user}:${profiles.password}@${profiles.url}${profiles.path}/deplay]]></url><commands><command><![CDATA[${profiles.path}/${profiles.bulid}]]></command></commands><!-- 运行命令 mvn clean package wagon:upload-single wagon:sshexec--><!-- 执行环境变量 运行命令 mvn clean package wagon:upload-single -Pxxx wagon:sshexec--><displayCommandOutputs>true</displayCommandOutputs></configuration></plugin></plugins></build><!-- 环境 --><profiles><profile><id>xxx</id><properties><profiles.active>xxx</profiles.active><profiles.url>远端ip</profiles.url><profiles.path>远端文件地址</profiles.path><profiles.module>模块名称</profiles.module><profiles.jar>jar包名称</profiles.jar><profiles.user>远端服务器用户名</profiles.user><profiles.password>远端服务器密码</profiles.password><profiles.bulid>执行脚本</profiles.bulid></properties><activation><activeByDefault>true</activeByDefault></activation><!-- clean package wagon:upload-single wagon:sshexec --></profile></profiles>

更新: 今天搭建新项目再次出现这个问题

1.第一种可能:scp报错,如果是Ubantu 系统可以看下这个
链接:Ubantu 系统 ssh 不能执行scp 报错:Algorithm negotiation fail
2.请检查上面配置的scp的url对应的目录权限 及 目录所有人 是否为下面配置的profiles.user登录服务器的user

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

  1. ruoyi-cloud 服务器端idea启动报错Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (defau

    ruoyi-cloud 服务器端idea启动报错Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (defau ...

  2. maven打包报错Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.6.1:cle

    问题记录: maven打包报错Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.6.1:cle 解决办法: 这个 ...

  3. thingsboard 编译失败,报错 Failed to execute goal com.mycila:license-maven-plugin:3.0

    欢迎加入ThingsBoard技术交流群 这里可复制Q群号:69998183 关注"云腾五洲":获取二开ThingsBoard物联网平台演示 交流社区:ThingsKit-Thin ...

  4. 淘淘商城项目报错 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 ...

  5. Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (defau-cli) on project

    @[TOC](Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (defau-cli) on project) ...

  6. Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on project

    Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on project sp03- ...

  7. Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0

    1.问题描述 利用maven导包,运行Mybatis案例的main函数时报错. [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven- ...

  8. IDEA运行test出现 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:16.0.0:exec (default-cli) on

    IDEA运行test出现 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli) on ...

  9. Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exe问题解决

    解决:Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project sp ...

最新文章

  1. Fatal Error: Out of memory php内存溢出处理三种方法
  2. python写的游戏怎么给别人玩-用python写游戏脚本原来这么简单
  3. JVM系列二:垃圾回收
  4. java.awt.action 命令模式_java设计模式之命令模式
  5. 一篇文章带你详解 HTTP 协议之报文首部及字段详解(中)
  6. Image and video pencil sketch with OpenCV 3.X and CUDA
  7. 关于Android Listview的问题
  8. kafka消息消费原理演示
  9. 亿级流量场景下的平滑扩容:TDSQL的水平扩容方案实践
  10. 如何以及为什么使用Spoon分析,生成和转换Java代码
  11. java html转图片_Python一键转Java?“Google翻译”你别闹
  12. 多重共线性的解决方法之——岭回归与LASSO
  13. 远程连接redis,并设置字符集
  14. 数学专业英语--2.5(几何)
  15. 微信小程序UI设计(一)之开发前言
  16. 计算机二级答题技巧口诀,计算机二级考试答题技巧(祝逢考必过)
  17. client-go的使用及源码分析
  18. UVALive 4850 Installations——思维
  19. MATLAB添加噪声
  20. 树莓派家用NAS解决方案

热门文章

  1. Passbolt 密码管理器安装流程
  2. 台式电脑怎么进入修复计算机,你的电脑/设备需要修复,请问怎么处理?
  3. Web自动化测试进阶
  4. 计算机规则英语作文,计算机信息技术(五笔及中英文打字测试试题).doc
  5. Electron教程2_Windows上安装Electron
  6. 波动方程——弦的横振动(牛顿第二定律+胡克定律)| 偏微分方程(二)
  7. mathtype安装过程中如何填写信息
  8. USB2.0传输速率
  9. macOS黑苹果安装提示未能安装所需的固件更新
  10. PlentyOfFish.com .NET网站的又一传奇(转)