You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Thrawn <th...@shadowhunt.de> on 2008/09/03 16:02:11 UTC
wrong ivy-1.0.0.xml in ivy cache
-----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-----