简体   繁体   English

带有Eclipse和多个项目的Apache Ivy

[英]Apache ivy with Eclipse and multiple projects

How I can use ivy to resolve dependencys between different Eclipse projects? 如何使用ivy解决不同Eclipse项目之间的依赖关系?

I have one project which has librarys and base classes that I want to use in another project. 我有一个项目,其中包含要在另一个项目中使用的库和基类。 Like a spring base project and a project which uses spring. 就像弹簧基础项目和使用弹簧的项目一样。

In Eclipse there are "deploymentassemblies" but if I use that, I only got the class files in the other project, but not the librarys I added, with a ivy.xml, to the base project. 在Eclipse中有“ deploymentassemblies”,但是如果使用它,我只会在另一个项目中获得类文件,而没有获得使用ivy.xml添加到基础项目中的库。

You can use the IvyDE Eclipse plugin to resolve dependencies in Eclipse Project. 您可以使用IvyDE Eclipse插件来解决Eclipse Project中的依赖关系。 Once IvyDE is installed, you will have the option to "Add Ivy Library..." when you right click on a project's ivy.xml . 一旦安装了IvyDE,则在项目的ivy.xml上单击鼠标右键时,将可以选择“添加Ivy库...”。 Once configured, IvyDE will resolve the project's dependecies and add them to the project's classpath. 配置完成后,IvyDE将解决项目的依赖项并将其添加到项目的类路径中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM