如何解决具有 infinispan 依赖性的 ivy 中的依赖性问题?
How to resolve dependency issues in ivy with infinispan dependency?
我在解决 infinispan 库 (infinispan-jcache) 的依赖项时遇到问题。如果我 运行 ant ivy-retrieve
然后我收到以下消息:
ivy-retrieve:
[ivy:cleancache] :: Apache Ivy 2.5.0-rc1 - 20180412005306 :: http://ant.apache.org/ivy/ ::
[ivy:cleancache] :: loading settings :: url = jar:file:/home/andreas/.ant/lib/ivy-2.5.0-rc1.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: example#ivy;working@ubuntu-dev
[ivy:retrieve] confs: [default]
[ivy:retrieve] :: resolution report :: resolve 1473ms :: artifacts dl 0ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 1 | 0 | 0 | 0 || 0 | 0 |
---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: org.infinispan#infinispan-jcache;9.4.8.Final: org.infinispan#infinispan-jcache-parent;9.4.8.Final->org.infinispan#infinispan-parent;9.4.8.Final->org.infinispan#infinispan-build-configuration-parent;9.4.8.Final
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
BUILD FAILED
/home/andreas/git/ivy-test/build.xml:5: impossible to resolve dependencies:
resolve failed - see output for details
Total time: 2 seconds
如果我启用详细输出,则有问题的依赖项似乎是 infinispan-build-configuration-parent-9.4.8.Final.jar
,它根本不存在于中央 Maven 存储库中
[ivy:retrieve] CLIENT ERROR: Not Found url=https://repo1.maven.org/maven2/org/infinispan/infinispan-build-configuration-parent/9.4.8.Final/infinispan-build-configuration-parent-9.4.8.Final.jar
build.xml
<?xml version="1.0" encoding="utf-8"?>
<project name="ivy" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="ivy-retrieve" description="retrieve dependencies locally">
<ivy:retrieve pattern="lib/[artifact]-[revision](-[classifier]).[ext]"/>
</target>
</project>
ivy.xml
<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra">
<info organisation="example" module="ivy"/>
<dependencies>
<dependency org="org.infinispan" name="infinispan-jcache" rev="9.4.8.Final" />
</dependencies>
</ivy-module>
有没有人有关于如何下载 infinispan 版本作为 ivy 依赖的好的解决方案? maven central 上引用的文件夹中只有一个 pom 文件。我可能必须配置 ivy 还是只使用不同的存储库?
那个 jar 不存在,因为 build-configuration 有包装 pom
。我已经在本地试过了,Ivy 的依赖解析器错误地抛出一个 org.apache.ivy.plugins.circular.CircularDependencyException 因为它无法理解层次结构...
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-bom;9.4.13.Final {} with public (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-bom;9.4.13.Final {} with main (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-parent;9.4.13.Final {} with public (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-parent;9.4.13.Final {} with main (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-commons;9.4.13.Final {*=[*]} with public (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-commons;9.4.13.Final {*=[*]} with main (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
这看起来像 https://issues.apache.org/jira/browse/IVY-1588
如果您使用从 master 构建的最新 ivy.jar,它可以工作:https://builds.apache.org/view/All/job/Ivy/lastSuccessfulBuild/artifact/build/artifact/jars/
我在解决 infinispan 库 (infinispan-jcache) 的依赖项时遇到问题。如果我 运行 ant ivy-retrieve
然后我收到以下消息:
ivy-retrieve:
[ivy:cleancache] :: Apache Ivy 2.5.0-rc1 - 20180412005306 :: http://ant.apache.org/ivy/ ::
[ivy:cleancache] :: loading settings :: url = jar:file:/home/andreas/.ant/lib/ivy-2.5.0-rc1.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: example#ivy;working@ubuntu-dev
[ivy:retrieve] confs: [default]
[ivy:retrieve] :: resolution report :: resolve 1473ms :: artifacts dl 0ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 1 | 0 | 0 | 0 || 0 | 0 |
---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: org.infinispan#infinispan-jcache;9.4.8.Final: org.infinispan#infinispan-jcache-parent;9.4.8.Final->org.infinispan#infinispan-parent;9.4.8.Final->org.infinispan#infinispan-build-configuration-parent;9.4.8.Final
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
BUILD FAILED
/home/andreas/git/ivy-test/build.xml:5: impossible to resolve dependencies:
resolve failed - see output for details
Total time: 2 seconds
如果我启用详细输出,则有问题的依赖项似乎是 infinispan-build-configuration-parent-9.4.8.Final.jar
,它根本不存在于中央 Maven 存储库中
[ivy:retrieve] CLIENT ERROR: Not Found url=https://repo1.maven.org/maven2/org/infinispan/infinispan-build-configuration-parent/9.4.8.Final/infinispan-build-configuration-parent-9.4.8.Final.jar
build.xml
<?xml version="1.0" encoding="utf-8"?>
<project name="ivy" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="ivy-retrieve" description="retrieve dependencies locally">
<ivy:retrieve pattern="lib/[artifact]-[revision](-[classifier]).[ext]"/>
</target>
</project>
ivy.xml
<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra">
<info organisation="example" module="ivy"/>
<dependencies>
<dependency org="org.infinispan" name="infinispan-jcache" rev="9.4.8.Final" />
</dependencies>
</ivy-module>
有没有人有关于如何下载 infinispan 版本作为 ivy 依赖的好的解决方案? maven central 上引用的文件夹中只有一个 pom 文件。我可能必须配置 ivy 还是只使用不同的存储库?
那个 jar 不存在,因为 build-configuration 有包装 pom
。我已经在本地试过了,Ivy 的依赖解析器错误地抛出一个 org.apache.ivy.plugins.circular.CircularDependencyException 因为它无法理解层次结构...
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-bom;9.4.13.Final {} with public (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-bom;9.4.13.Final {} with main (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-parent;9.4.13.Final {} with public (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-parent;9.4.13.Final {} with main (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-commons;9.4.13.Final {*=[*]} with public (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-commons;9.4.13.Final {*=[*]} with main (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
这看起来像 https://issues.apache.org/jira/browse/IVY-1588
如果您使用从 master 构建的最新 ivy.jar,它可以工作:https://builds.apache.org/view/All/job/Ivy/lastSuccessfulBuild/artifact/build/artifact/jars/