How to assemble a multi-project ant build system

流过昼夜 提交于 2019-12-20 21:04:12

问题


At my new gig, they use Ant and cannot be persuaded to move to Maven. I've looked everywhere for a decent example of how a multi-project ant build system should be assembled. The apache site falls short. I'm looking specifically for best practices to:

  • Automatically build local projects that are dependencies of a project
  • Share artifacts from project to their dependents
  • Export a project's dependencies and generated artifacts (jars) to be inherited by dependent projects
  • Share third-party dependencies between projects

I'm sure I can do all this without using Ivy - what did people do before Ivy? I really don't want to have to set up a corporate repository or rely on external repositories - the engineers here are really against that and have all their third-party jars checked into src control.

Can anyone point me at a good open source example of a multi-project ant build?


回答1:


I don't have too much hands on experience with building large numbers of dependent projects with Ant, but this tutorial looks like it will do what you need without any additional tools.



来源:https://stackoverflow.com/questions/2596746/how-to-assemble-a-multi-project-ant-build-system

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