I was to retrieve a jar from ivy cache to a lib folder, below is the ivy.xml code:
<configurations>
<conf name="specificFolder" description="add jar to web-inf/lib folder"/>
</configurations>
<dependencies>
<dependency org="javax.servlet" name="servlet-api" rev="2.4" transitive="false" conf="specificFolder"/>
<dependency org="org.springframework" name="spring-beans" rev="2.5.5" transitive="false" />
<dependency org="org.springframework" name="spring-webmvc" rev="2.5.5" transitive="false" />
<dependency org="org.springframework" name="spring-web" rev="2.5.5" transitive="false" />
<dependency org="org.springframework" name="spring-context" rev="2.5.5" transitive="false" />
<dependency org="org.springframework" name="spring" rev="1.2.6" transitive="false" />
then this is ant target:
<target name="test">
<ivy:retrieve pattern="lib/[artifact](.[ext])" sync="true" type="jar" conf="specificFolder"/>
</target>
But I got "Unresolved Dependency", this anything I am doing wrong?