Well, this seems to me little bit odd. Anyways, I believe you should have multi-module maven structure project. Where, one of the modules/parent has EAR packaging and depends on other modules (one of them then would have war packaging).
For example, 1. You have a Parent POM which defines modules may be like: <modules> <module>Module-EAR</module> <module>Module-War</module> </modules> 2. POM of Module EAR would have packaging as EAR and defines dependency of Module-War. 3. POM of Module War would have packaging as WAR. Regards, Yuvaraj Yuvaraj Vanarase, Lead Technology - Software Phone: +91.20.40262000 Ext 2305|Mobile: +91.9850818870 | http://www.synechron.com SYNECHRON - - Top 10 Best IT Employers for 4 consecutive years (link). - Celebrating 10 Years! -----Original Message----- From: anamika gupta [mailto:anam...@hcl.com] Sent: Tuesday, August 23, 2011 10:23 AM To: users@maven.apache.org Subject: EAR Creation Hi, I have to create the ear file of an application which consists a war file of the same application. Can you please tell me what entries to write in pom.xml so that it creates the war file of the module and then package the same war file into the ear file. Any help would be greatly appreciated -- View this message in context: http://maven.40175.n5.nabble.com/EAR-Creation-tp4725469p4725469.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org