大黄瓜de冬天 2023-06-09 13:34 采纳率: 88.9%
浏览 31
已结题

加载jar包到maven仓库

问题遇到的现象和发生背景
        maven加载缺少jar本地包,用mvn install把下载的jar导入本地maven仓库,再次maven加载还是没有
操作环境、软件版本等信息

错误信息

 [ERROR] Failed to execute goal on project common: Could not resolve dependencies for project 
com.qsbl.culturecloud:common:jar:1.0: Failed to collect dependencies at 
org.apache.activemq:activemq-all:jar:5.8.0 -> org.apache.activemq:activemq-amqp:jar:5.8.0 -> 
org.apache.qpid:proton-jms:jar:0.3.0-fuse-2: Failed to read artifact descriptor for 
org.apache.qpid:proton-jms:jar:0.3.0-fuse-2: Could not transfer artifact 
org.apache.qpid:proton-jms:pom:0.3.0-fuse-2 from/to com.fusesource.m2 
(http://repo.fusesource.com/nexus/content/groups/public/): Transfer failed for 
http://repo.fusesource.com/nexus/content/groups/public/org/apache/qpid/proton-jms/0.3.0-fuse-2/proton-jms-0.3.0-fuse-2.pom 
503 Service Unavailable -> [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/DependencyResolutionException

我想要达到的结果
          项目pom文件加载成功
  • 写回答

5条回答 默认 最新

  • 创意程序员 2023-06-09 13:43
    关注

    jar包能从公网下载,那么一般公有的maven仓库中也有,在settings.xml中设置多个maven仓库,一个本地,一个公有。需要访问哪个仓库时,临时改一下,把那个仓库配置移到前面。
    如果要上传本地maven仓库,确认上传成功了吗?
    依赖那么多,每次都下载上传,会很麻烦的。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(4条)

报告相同问题?

问题事件

  • 系统已结题 6月17日
  • 已采纳回答 6月9日
  • 创建了问题 6月9日

悬赏问题

  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数