ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thrawn <thr...@shadowhunt.de>
Subject wrong ivy-1.0.0.xml in ivy cache
Date Wed, 03 Sep 2008 14:02:11 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

How do I get all configurations from a locally published module into the
~ ivy cache?


I have 2 projects (A and B). B depends on A. I'm publishing A to a local
repository.

<ivy:publish
	resolver="project"
	artifactspattern="dist/[artifact]-[revision].[ext]"
	pubrevision="${revision}"
	validate="true"
	overwrite="true"/>

My project resolver looks like that:
<filesystem name="project">
	<artifact
pattern="${ivy.dir}/repository/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"
/>
</filesystem>

After publishing module A, everything looks fine.

repository/
`-- net.test
~    `-- A
~        |-- ivys
~        |   |-- ivy-1.0.0.xml
~        |   |-- ivy-1.0.0.xml.md5
~        |   `-- ivy-1.0.0.xml.sha1
~        |-- jars
~        |   |-- A-1.0.0.jar
~        |   |-- A-1.0.0.jar.md5
~        |   `-- A-1.0.0.jar.sha1
~        `-- sources
~            |-- A-1.0.0.zip
~            |-- A-1.0.0.zip.md5
~            `-- A-1.0.0.zip.sha1


module A has various configurations, that are all listed in the
ivy-1.0.0.xml in the local repository:
<configurations>
	<conf name="master"/>
	<conf name="runtime" extends="master"/>
	<conf name="source"/>
	<conf name="test" visibility="private"/>
</configurations>

In module B I depend on A:
<dependency org="net.test" name="A" rev="1.0.0" conf="master->runtime"/>

But I get the error "configuration(s) not found ..." during:
<ivy:retrieve
	pattern="${lib.home}/[artifact].[ext]"
	sync="true"
	conf="master,test"/>

When I take a look into the ~/.ivy2/cache/net.test/A/ivy-1.0.0.xml there
is only one configuration:
<configurations>
	<conf name="default" visibility="public"/>
</configurations>

So where are all the configurations that are available at the local
repository gone?

Can someone point me to my mistake?

thx
	Alex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFIvpjjci0IS3Y4ncoRAumjAJ9fQmJsc2fjNCLbNsiI4jip2K9VpACeJD4W
xAdL0vbqGVv3cZ8Z/T2H+K0=
=EdFF
-----END PGP SIGNATURE-----

Mime
View raw message