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

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

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

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

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

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

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

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

方法二:手动下载

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

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

放入对应maven仓库

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

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

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

最后全部成功

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