【发布时间】:2011-01-10 01:16:21
【问题描述】:
我正在尝试使用 maven 构建 apache-solr webapp(不是整个项目)。还想重用build.xml ant文件。
目录结构为:
+build
+client
+contrib
.....
+src
+webapp/src --webapp code
+dist --generated artifacts by the ant script
--must be copied to the webapp WEB-INF/lib
--some of them are also needed for webapp code compilation
我已经成功调用了编译和填充 dist 目录的 ant 目标。
我需要的是:
1) 包含一些位于 dist 目录中的 jars 以编译 webapp 代码。
2) 打包战争神器maven构建中的一些jar。
任何帮助将不胜感激
【问题讨论】:
-
maven 正在构建 webapp 吗?谁为 webapp 提供 pom.xml? PS:你为什么不直接用蚂蚁?
-
Maven 构建 webapp。由于项目要求,我必须使用 maven。
-
为 webapp 提供 pom.xml 是我的职责 ;-)