Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Ivy cachepath在任何依赖项上都失败_Java_Ant_Ivy - Fatal编程技术网

Java Ivy cachepath在任何依赖项上都失败

Java Ivy cachepath在任何依赖项上都失败,java,ant,ivy,Java,Ant,Ivy,我尝试在我的ant/ivy构建中包括jacoco覆盖工具 我在build.xml中添加了以下行 <ivy:cachepath organisation="org.jacoco" module="org.jacoco.ant" revision="0.7.5.201505241946" inline="true" conf="test" pathid="jacoco.classpath"/> <taskdef resource="org/jacoco/ant/antlib.xml

我尝试在我的ant/ivy构建中包括jacoco覆盖工具

我在build.xml中添加了以下行

<ivy:cachepath organisation="org.jacoco" module="org.jacoco.ant" revision="0.7.5.201505241946" inline="true" conf="test" pathid="jacoco.classpath"/>
<taskdef resource="org/jacoco/ant/antlib.xml" classpathref="jacoco.classpath"/>
它抱怨“蚂蚁来电者”,但这是我在任何地方都找不到的

我是否遗漏了什么,或者如何让jacoco ant下定决心能够定义任务

谢谢

更新 我还为其他图书馆(cobertura、google guava)和所有图书馆(例如guava)试用了它

[ivy:cachepath] :: resolving dependencies :: com.google.guava#guava-caller;working
[ivycachepath]  confs: [test]
[ivy:cachepath]     found com.google.guava#guava;18.0 in public
[ivy:cachepath] :: resolution report :: resolve 2138ms :: artifacts dl 0ms
---------------------------------------------------------------------
|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|       test       |   1   |   1   |   1   |   0   ||   0   |   0   |
---------------------------------------------------------------------
[ivy:cachepath] 
[ivy:cachepath] :: problems summary ::
[ivy:cachepath] :::: WARNINGS
[ivy:cachepath]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath]         ::          UNRESOLVED DEPENDENCIES         ::
[ivy:cachepath]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath]         :: com.google.guava#guava;18.0: configuration not public in com.google.guava#guava;18.0: 'test'. It was required from com.google.guava#guava-caller;working test
[ivy:cachepath]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] 
[ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

中的
conf=“test”
的目的是什么?目的是将其定义为测试配置的一部分。但是删除它确实有帮助——依赖项可以下载,我可以继续。
[ivy:cachepath] :: resolving dependencies :: com.google.guava#guava-caller;working
[ivycachepath]  confs: [test]
[ivy:cachepath]     found com.google.guava#guava;18.0 in public
[ivy:cachepath] :: resolution report :: resolve 2138ms :: artifacts dl 0ms
---------------------------------------------------------------------
|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|       test       |   1   |   1   |   1   |   0   ||   0   |   0   |
---------------------------------------------------------------------
[ivy:cachepath] 
[ivy:cachepath] :: problems summary ::
[ivy:cachepath] :::: WARNINGS
[ivy:cachepath]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath]         ::          UNRESOLVED DEPENDENCIES         ::
[ivy:cachepath]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath]         :: com.google.guava#guava;18.0: configuration not public in com.google.guava#guava;18.0: 'test'. It was required from com.google.guava#guava-caller;working test
[ivy:cachepath]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] 
[ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS