ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Lercher" <>
Subject Re: Source-attachments from my own repository
Date Thu, 26 Nov 2009 21:03:03 GMT
Ok, I did some kind of workaround, and it works now. However, I'm sure there must be a better
way. I did this to my ivysettings.xml:

	<settings defaultResolver="myrepo"/>
		<filesystem name="myrepo">
			<ivy pattern="/path-to/repository/[organisation]/[module]-[revision]/ivy.xml"/>
			<artifact pattern="/path-to/repository/[organisation]/[module]-[revision]/[artifact]-[revision].[ext]"
			<artifact pattern="/path-to/repository/[organisation]/[module]-[revision]/[artifact]-[revision]-sources.[ext]"

So, the thing that worries me is the last artifact that I added. This can't be the correct
way? Or is it?

I was able to achieve my desired result even without that last line, but only if I rename
my source jar to "commons-lang-2.4-source.jar" instead of "commons-lang-2.4-sources.jar".
(If possible, I'd like to keep the names and directory structure of the orignial commons-lang
release, only adding an ivy.xml file.)

BTW, my ivy.xml for commons-lang looks like this:

<ivy-module version="2.0" xmlns:xsi=""
		<conf name="master" visibility="public" description="..."/>
		<conf name="javadoc" visibility="public" description="..."/>
		<conf name="sources" visibility="public" description="..."/>
		<artifact name="commons-lang" type="jar" ext="jar" conf="master"/>
		<artifact name="commons-lang" type="source" ext="jar" conf="sources"/>

Changing the type attribute to "sources" doesn't seem to work.

Do you have a suggestion on the ideal approach? Or would you configure it like I did?


P.S. I'm using
Apache Ivy	2.1.0.final_20090925235825
Apache IvyDE

View raw message