常春藤缓存路径对任何依赖都失败

时间:2015-09-15 11:46:25

标签: 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" classpathref="jacoco.classpath"/>

据我了解,这解决了jacoco ant jar并允许我定义我的任务。

使用

运行此操作失败
[ivy:cachepath] WARN:   ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] WARN:   ::          UNRESOLVED DEPENDENCIES         ::
[ivy:cachepath] WARN:   ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] WARN:   :: org.jacoco#org.jacoco.ant;0.7.5.201505241946: configuration not public in org.jacoco#org.jacoco.ant;0.7.5.201505241946: 'test'. It was required from org.jacoco#org.jacoco.ant-caller;working test
[ivy:cachepath] WARN:   ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath]     report for org.jacoco#org.jacoco.ant-caller;working test produced in /home/vagrant/.ant/cache/org.jacoco-org.jacoco.ant-caller-test.xml
[ivy:cachepath]     resolve done (2431ms resolve - 0ms download)

它抱怨蚂蚁打电话&#39;但这是我在任何地方找不到的东西。

我是否会遗漏某些内容或如何解决jacoco ant以便能够定义任务?

由于

更新 我也尝试过其他库(cobertura,google 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

0 个答案:

没有答案