如何将WAR文件添加到现有的EAR文件中? [英] How to add a WAR file into an existent EAR file?
问题描述
我有一个已经包含一个WAR文件的EAR文件,我有另一个WAR文件,我想添加到这个EAR,所以它可以包含WAR和正常工作。
我不知道该怎么做,但我认为可以手动更改包含在EAR中的application.xml文件。
谢谢!
假设EAR文件不包含WAR文件,您可以使用常用的zip实用程序来添加WAR文件在EAR文件中。
请注意,这不会更新任何EAR文件描述符。要更新描述符,您需要添加一个新的Web模块指令。
Could someone explain to me how to add a WAR file into an EAR? I have one EAR file that already contains one WAR file, i have another WAR file that i would like to add to this EAR so it can contain both WARs and works properly.
I don't know how to this but i think is possible to do it manually changing the application.xml file which is included into the EAR.
Thanks!
Assuming that the EAR file doesn't already contain the WAR file, you can use common zip utilities to add the WAR file within the EAR file.
Note that this won't update any of the EAR file descriptors. To update the descriptor, you'll need to add a new web module directive.
这篇关于如何将WAR文件添加到现有的EAR文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!