how to create ear file, and include war and jar files inside that

后端 未结 6 1409
小蘑菇
小蘑菇 2021-02-05 08:17

I am trying to create an EAR file from the command prompt. I have used

jar -cvf myServletWAR.ear . 

But my question is, how can I get this EAR

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 09:15

    Could you try this :

    jar -xvf myServletWAR.ear
    

    You could also refer to :

    How to add a WAR file into an existent EAR file? and how to I have two .war files within one .ear file?

    You would have to add these EAR file references in the application.xml of the ear file.

提交回复
热议问题