简体   繁体   English

如何将WAR文件添加到现有的EAR文件中?

[英]How to add a WAR file into an existent EAR file?

Could someone explain to me how to add a WAR file into an EAR? 有人可以向我解释如何将WAR文件添加到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. 我有一个已经包含一个WAR文件的EAR文件,我有另一个我想添加到该EAR的WAR文件,因此它既可以包含两个WAR,也可以正常工作。

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. 我不知道该怎么做,但我认为可以手动更改EAR中包含的application.xml文件。

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. 假设EAR文件尚未包含WAR文件,则可以使用通用的zip实用程序在EAR文件中添加WAR文件。

Note that this won't update any of the EAR file descriptors. 请注意,这不会更新任何EAR文件描述符。 To update the descriptor, you'll need to add a new web module directive. 要更新描述符,您需要添加一个新的Web模块指令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM