最新版 DCM4CHE 源码编译,解决部分依赖不能下载问题

本文介绍了在编译Dcm4che 5.22版本时遇到的依赖问题,特别是org.weasis.core:weasis-core-img:jar:4.4.0无法从aliyun仓库下载的问题。解决方案包括修改pom.xml文件的URL和手动下载缺失的jar包放入本地Maven仓库。提示阿里云仓库可能存在包不全的情况,建议使用其他可靠的Maven仓库。
摘要由CSDN通过智能技术生成

Dcm4che 下载地址https://github.com/dcm4che/dcm4che.git

目前我下载的版本是5.22,需要maven jdk8

 

开始编译源码

  1. 打开CMD,进入下载目录
  2. 执行命令:mvn install -Dmaven.test.skip=true

常见问题:

[INFO]dcm4che-imageio-opencv ............................. FAILURE

[ERROR] Failed to execute goal on project dcm4che-imageio-opencv: Could not resolve dependencies for project org.dcm4che:dcm4che-imageio-opencv:jar:5.22.6: Failure to find org.weasis.core:weasis-core-img:jar:4.4.0 in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced

解决思路:获取org.weasis.core:weasis-core-img:jar:4.4.0的jar包;

方法一:修改dcm4che-parent.pom文件(主目录的pom.xml),修改url

经过测试,还是不能下载。

方法二:手动下载

https://github.com/nroduit/mvn-repo/blob/master/org/weasis/core/weasis-core-img/4.4.0/weasis-core-img-4.4.0.jar

放入对应maven仓库

再次执行,opencv_java-4.4.0-dcm-windows-x86 也遇到同样问题,依次解决

提示:aliyun的仓库有很多包不是最新的,最好不要用

最后全部成功

  • 5
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 13
    评论
评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值