ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Lercher" <cl_for_mail...@gmx.net>
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:

<ivysettings>
	<settings defaultResolver="myrepo"/>
	
	<resolvers>
		<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]"
/>
		</filesystem>
	</resolvers>
</ivysettings>


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="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
    <info
        organisation="jakarta"
        module="commons-lang"
        status="release"
        revision="2.4">
	</info>
	<configurations>
		<conf name="master" visibility="public" description="..."/>
		<conf name="javadoc" visibility="public" description="..."/>
		<conf name="sources" visibility="public" description="..."/>
	</configurations>
	<publications>
		<artifact name="commons-lang" type="jar" ext="jar" conf="master"/>
		<artifact name="commons-lang" type="source" ext="jar" conf="sources"/>
    </publications>
	
</ivy-module>

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?

Thanks
Chris

P.S. I'm using
Apache Ivy	2.1.0.final_20090925235825
Apache IvyDE	2.0.0.final-200907011148-RELEASE

Mime
View raw message