How does one consolidate version management in Ivy, like parent-pom <dependencyManagement> in Maven?

醉酒当歌 提交于 2019-12-04 05:29:06

问题


We have many projects that need to use common version numbers.
What is best practice for doing this with Ant/Ivy? Do you just inherit a wad of properties from Ant that have the version numbers in them, or is there a more formal mechanism a la Maven?


回答1:


As you've pointed out I think this is the problem which the new extends functionality has been designed to solve.

To be completely honest I'm not a fan of parent-child modules in Maven.... However, just like you sometimes I want to nail lots of my modules to a common version of Spring.

The solution I used was to have a set of properties defined in my shared ivysettings file. This keeps my ivy specific properties separate from my ANT build properties.



来源:https://stackoverflow.com/questions/7019618/how-does-one-consolidate-version-management-in-ivy-like-parent-pom-dependencym

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!