<project name="maven-test" xmlns:ivy="antlib:org.apache.ivy.ant">

	<property name="ivy.jar.dir" value="${user.home}/.ivy2/jars" />
	<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />

	<!-- ================================= 
				target: load-ivy  
			 ================================= -->
	<target name="load-ivy">
		<mkdir dir="${ivy.jar.dir}" />
		<path id="ivy.lib.path">
				<fileset dir="${ivy.jar.dir}" includes="*.jar"/>
		</path>
		<taskdef resource="org/apache/ivy/ant/antlib.xml"
							uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
	</target>    

	<ivy:settings file="ivysettings.xml" />

	<target name="resolve">
		<mkdir dir="lib"/>
    	
		<ivy:resolve file="ivy.xml" refresh="true" />
		<ivy:retrieve pattern="lib/[artifact].[ext]" />
	</target>

</project>