0

I have a j2ee application. That application is packaged as ear file. Inside that ear file there are two wars. Can anyone guide me that how I create an ear file consisting those war's inside that ear with ant build.xml script.

  • The [ear task](http://ant.apache.org/manual/Tasks/ear.html) documentation is pretty straightforward. Have you written an Ant build file before? – VGR Feb 27 '20 at 15:11

1 Answers1

-1

You can use command line to create EAR using below command:

jar -cvf <<ear file name>> <<war files to be included>>

You can also refer to question how to create ear file, and include war and jar files inside that.

Also, if you want to do it using build.xml, you can refer How do I create an EAR file with an ant build including certain files?

I hope it helps.

harsh pamnani
  • 1,191
  • 1
  • 10
  • 14