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

后端 未结 6 1404
小蘑菇
小蘑菇 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 08:59

    One of my EAR files has structure as follows:

    app.ear
      - APP-INF
        - lib
          // libraries (.jar) here
      - META-INF
        - MANIFEST.MF
        - weblogic-application.xml
      - module1.war
      - customlib.jar
    

    This archive is being deployed onto WebLogic 10.3.

    Remeber .ear is just a ZIP file, so you can always create it this way, although it seems messy.

提交回复
热议问题