ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard_Senior <richard.sen...@gmail.com>
Subject Just the artifacts...
Date Tue, 22 Mar 2011 15:21:38 GMT

Hello,

This is my first 'modular' build and I've discovered Ivy.. which I
immediately like.
I'm trying to replace my existing build scripts which do what Ivy does
manually using the ant get task.
What I want to do is simply get all the dependancy jars into my /lib folder
but I'm getting all the source jars and ivy files too.
What do I do so that retrieve simply gets the jars I want, into the folder I
want, and nothing else?

These are my settings (censored) :

<ivysettings>	    
    <settings defaultCache="local" defaultResolver="resolvers"/>
           
    <caches defaultCacheDir="${lib.dir}">        
        <cache name="local" basedir="${lib.dir}">
            <ttl duration="0d" />
        </cache>
    </caches>
     
    <resolvers>
    	<chain name="resolvers" returnFirst="true">
			<filesystem name="workspace">    		
	    		<artifact
pattern="${workspace.dir}/[organisation]/build/dist/live/[artifact].[revision].[ext]"/>
	  		</filesystem>
	  		
	  		<url name="cruisecontrol">  			
	  			<artifact
pattern="http:/xxxx:8080/artifacts/[organisation]/[branch]/live/[artifact].[revision].[ext]"
/>
			</url>
														  
			<url name="com.springsource.repository.bundles.release">
			    <ivy
pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
/>
			    <artifact
pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
/>
			</url>
			
			<url name="com.springsource.repository.bundles.external">
			    <ivy
pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
/>
			    <artifact
pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
/>
			</url>
		</chain>          		
    </resolvers>
</ivysettings>



<ivy-module version="2.0">
    <info organisation="xxx" module="${ant.project.name}" />
    <dependencies>
    	<!--  buildtime dependancies --> 
	    <dependency org="org.apache.ant"
name="com.springsource.org.apache.tools.ant" rev="1.8.1" />
	   	   
	    <dependency org="com.springsource.bundlor"
name="com.springsource.bundlor" rev="1.0.0.RELEASE"/>
	    <dependency org="com.springsource.bundlor"
name="com.springsource.bundlor.blint" rev="1.0.0.RELEASE" />
	    <dependency org="com.springsource.bundlor"
name="com.springsource.bundlor.commandline" rev="1.0.0.RELEASE" />
	    <dependency org="com.springsource.bundlor"
name="com.springsource.bundlor.ant" rev="1.0.0.RELEASE" />
	    	    	    
	    <dependency org="org.objectweb.asm"
name="com.springsource.org.objectweb.asm" rev="3.2.0" />
	    <dependency org="org.objectweb.asm"
name="com.springsource.org.objectweb.asm.commons" rev="3.2.0" />	    
	    
	    <dependency org="com.springsource.util"
name="com.springsource.util.common" rev="2.0.0.RELEASE" />
	    <dependency org="com.springsource.util"
name="com.springsource.util.math" rev="2.0.0.RELEASE" />
	    <dependency org="com.springsource.util"
name="com.springsource.util.osgi" rev="2.0.0.RELEASE" />
	    <dependency org="com.springsource.util"
name="com.springsource.util.parser.manifest" rev="2.0.0.RELEASE" />
	    
	    <dependency org="org.junit" name="com.springsource.org.junit"
rev="4.8.1" />
	    <!-- runtime dependancies -->
	    <dependency org="com.thoughtworks.xstream"
name="com.springsource.com.thoughtworks.xstream" rev="1.3.1" />
	    <!--  aka stax -->
	    <dependency org="javax.xml.stream"
name="com.springsource.javax.xml.stream" rev="1.0.1" />
	    <!-- original open source version of ehcache, not teracotta version -->

	    <dependency org="net.sourceforge.ehcache"
name="com.springsource.net.sf.ehcache" rev="1.6.2" />
	    <dependency org="org.aopalliance"
name="com.springsource.org.aopalliance" rev="1.0.0" />
	    
	    <dependency org="org.apache.commons"
name="com.springsource.org.apache.commons.codec" rev="1.4.0" />
	    <dependency org="org.apache.commons"
name="com.springsource.org.apache.commons.httpclient" rev="3.1.0" />
		<dependency org="org.apache.commons"
name="com.springsource.org.apache.commons.lang" rev="2.5.0" />
		<dependency org="org.apache.commons"
name="com.springsource.org.apache.commons.logging" rev="1.1.1" />
		
		<dependency org="org.apache.log4j"
name="com.springsource.org.apache.log4j" rev="1.2.16" />
		<dependency org="org.codehaus.jettison"
name="com.springsource.org.codehaus.jettison" rev="1.0.1" />

		<!-- try to get something out of cruise -->
		<dependency org="core" name="xxx" rev="1.0.0" branch="20110318160503" />			   
    </dependencies>
</ivy-module>        

-- 
View this message in context: http://old.nabble.com/Just-the-artifacts...-tp31211016p31211016.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message