IvyIDEA 插件不会下载所有依赖项

IvyIDEA plugin doesn't download all the dependencies

我正在做一个使用 ant + ivy 进行构建的项目。

因为 Intellij IDEA 是我主要的 IDE 开发工具,所以我下载了 IvyIDEA 插件,以便通过 ivy 自动解决依赖关系的过程。

过了一会儿,我注意到并不是所有的依赖项都被下载了,其中一些是,但是一些自定义工件丢失了。我检查了插件生成的依赖项列表,其中一些实际上丢失了,认为解析过程成功完成:

report for projName compile produced in C:\Users\test\.ivy2\cache\projName-compile.xml
    resolve done (6375ms resolve - 156ms download)
post 1.3 ivy file: using exact as default matcher
post 1.3 ivy file: using exact as default matcher
post 1.3 ivy file: using exact as default matcher
post 1.3 ivy file: using exact as default matcher
post 1.3 ivy file: using exact as default matcher
post 1.3 ivy file: using exact as default matcher
post 1.3 ivy file: using exact as default matcher
No problems detected during resolve for module 'ProjName' [All configurations].

我开始深入研究插件生成的 ivy 日志,看到了一堆不同的依赖项:

Sort dependencies of : projToImport;1.1.85300.20210326.5 / Number of dependencies = 8
Non matching revision detected when sorting.  projToImportdepends on anotherProj;1.1.81201.20210326.1, doesn't match anotherProj;1.1.81201.20210406.1
Module descriptor is processed : junit#junit;4.11
....

重要说明:当我在安装了 Ivy 插件的 Eclipse IDE 中执行相同操作时,它一切正常并且我可以看到 [=29] 中描述的所有依赖项=] 这让我觉得我的 ivy-settings.xml 和 ivy.xml 文件是正确的。

因此,我假设 IvyIDEA 插件无法以正确的方式或其他方式工作。如何解决这个问题?

我的IveIDE一个配置:

问题出在 ivy 的版本上:我使用的当前版本的 IvyIDEA 插件 (1.0.16) 包含 ivy 2.5.0,我必须使用 ivy 2.4.0 才能 运行 我的常春藤设置.xml\ivy.xml.

所以我的解决方案是将 ivy 降级到 2.4.0 版。