zl程序教程

您现在的位置是:首页 >  后端

当前栏目

ivy + ant+eclipse

eclipse ant
2023-09-14 08:59:40 时间

在Eclipse配置Ivy,这个工作的作用是把ivy.xml变成classpath的一部分,使得我们只需要维护ivy.xml不需要维护.classpath文件。 
配置步骤: 
1、Window->preference->ant->RunTime->Classpath->Ant Home Entries, 
右边Add External Jars,添加org.apache.ivy_2.1.0.cr1_20090319213629.jar。 
2、安装Ivy插件:Help->Install new software->add, 
Name: IvyDE,Location: http://www.apache.org/dist/ant/ivyde/updatesite 
安装成功后重启eclipse; 
3、重启eclipse后,Window->preference->ivy->settings 
Ivy settings path设为d:/workspace/ivysettings.xml(这个值取决于你的环境) 

至此,Eclipse的ivy插件配置好了,然后就可以为你的项目classpath添加ivy依赖了: 
选中项目- 右键 属性->Java Build Path->Libraries- Add Library...- IvyIDE Managed Dependencies- finish- OK 
然后神奇的事情就出现了——虽然你一个jar包也没下载,只是在ivy.xml里面声明了一下,但是你的项目已经可以编译通过了,就好像那些第三方类库已经在你本地了一样。

 

http://www.iteye.com/topic/510032

 

http://code.google.com/p/smartpagination/downloads/detail?name=smartpagination_src.zip can=2 q=

 

http://blog.chenlb.com/2009/02/apache-ant-ivy-quick-start.html