Maven:将多个模块 jar 组合成一个 war 文件?
我有一个项目,它有3个组件,和babybird
persistence
business
service
在 我有追随者babybird
pom.xml
<modules>
<module>persistence</module>
<module>business</module>
<module>service</module>
</modules>
当我跑步时,我看到mvn clean install
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] babybird ......................................... SUCCESS [2.801s]
[INFO] persistence ....................................... SUCCESS [3.321s]
[INFO] business .......................................... SUCCESS [0.832s]
[INFO] service ........................................... SUCCESS [0.694s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.168s
[INFO] Finished at: Tue Jan 22 12:09:48 PST 2013
[INFO] Final Memory: 18M/50M
[INFO] ------------------------------------------------------------------------
这些模块中的每一个都会生成一个 jar 文件。
问:如何将它们合并为一个?
我是Maven的新手,不知道要寻找什么来完成这个任务,请提供指导babybird.war