环境配置
ANT_HOME D:\apache-ant-1.10.1
PATH %ANT_HOME%/bin
IVY_HOME D:\ivy2
下载ivy-2.5.0-rc1.jar到 %ANT_HOME%/lib
下载eclipse-ivy插件
ivy.xml参考文件
<?xml version="1.0" encoding="utf-8"?>
<ivy-module version="2.0">
<info organisation="com.shiyanlou" module="Captcha" status="integration"/>
<dependencies>
<dependency org="antlr" name="antlr" rev="2.7.1"/>
</dependencies>
</ivy-module>
ant参考文件
<?xml version="1.0" encoding="UTF-8"?>
<project name="Captcha" xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="get-lib">
<ivy:retrieve pattern="WebContent/WEB-INF/lib"/>
</target>
</project>