【发布时间】:2011-03-28 02:46:34
【问题描述】:
我们有一个项目,其中包括我们所有的可重用类、第三方库 JAR 等等。这个项目基本上就是我们正在处理的每个项目的所有依赖项所在的地方。我们可能只使用 ant,不幸的是我们可能不会使用 Ivy。比如:
./Common-Project (includes all dependencies
-build.xml (will build this project, the dependencies, and package them all into 1 jar)
./Actual-Project (just one of many projects)
-build.xml (will call the build.xml in common and ensure it gets the latest jar and then copy that jar into its own deployment EAR)
这样做的问题是,当我们构建所有实际项目(比如全部 10 个,或 40 个,或任何增长的项目)时,我们最终每次都构建公共项目。
所以,这就是我想知道的......我如何打包这个依赖项并确保它实际上是最新的,但又不经常重建它?我愿意接受任何建议(只要我们正在做的只是蚂蚁)。
【问题讨论】: