Ivy problem mit jacoco dependency

Hi,

ich habe ein build file bei dem ich per jacoco die coverage ermitteln will.

Nun habe ich folgendes in mein buildskript eingetragen:

      <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"/>

was laut cachepath | Apache Ivy dazu fuehrt, dass die dependency resolved wird und dann für den taskdef bereitsteht.

Wenn ich das nun laufen lasse bekomme ich aber

[ivy:cachepath] :: downloading artifacts ::
[ivy:cachepath] :: resolution report :: resolve 19ms :: artifacts dl 0ms
	---------------------------------------------------------------------
	|                  |            modules            ||   artifacts   |
	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
	---------------------------------------------------------------------
	|       test       |   1   |   0   |   0   |   0   ||   0   |   0   |
	---------------------------------------------------------------------
[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 (19ms resolve - 0ms download)
[ivy:cachepath] 
[ivy:cachepath] :: problems summary ::
[ivy:cachepath] :::: WARNINGS
[ivy:cachepath] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:cachepath] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] 		:: 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] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] 
[ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

irgendwas scheint hier mit org.jacoco.ant-caller zu sein, was aber nicht wirklich gibt (nix im netz gefunden).

Die eigentliche dependency (org.jacoco.ant) ist vorhanden-

Weiss jemand was da läuft ? Hab auch mit älteren jacoco Versionen probiert, da ist aber das selbe

thx

Wie kommt ivy auf 0.7.3.201502191951 ??
Das sollte eigentlich 0.7.5.201505241946 lauten.

argh mein Fehler - hatte es von dem Versuch mit einer älteren Version genommen…

habe editiert und den richtigen Block hinzugefügt.

mhmm… möglicherweise ein mehr generelles Problem

Wenn ich anstatt jacoco cobertura probiere, kommt


[ivy:cachepath] :: resolving dependencies :: net.sourceforge.cobertura#cobertura-caller;working
[ivy:cachepath] 	confs: [test]
[ivy:cachepath] 	found net.sourceforge.cobertura#cobertura;2.1.1 in public
[ivy:cachepath] :: resolution report :: resolve 1341ms :: 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] 		:: net.sourceforge.cobertura#cobertura;2.1.1: configuration not public in net.sourceforge.cobertura#cobertura;2.1.1: 'test'. It was required from net.sourceforge.cobertura#cobertura-caller;working test
[ivy:cachepath] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:cachepath] 
[ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

wieder so ein -caller…

Das Problem war der conf="test", das eigentlich dazu dienen sollte es der test configuration zugehörig zu machen, aber warum auch immer - das Ganze zerhauen hat.

Mit dem Entfernen der conf deklaration läuft es nun…