maven2 expert : explode war which is in a ear and then bundle war then bundle ear
partha sarathi samantaray
Greenhorn
Joined: Oct 16, 2008
Posts: 7
posted
0
Hi Maven Experts , i have to do following tasks . 1. Create application specific jar, say application1-1.0.jar and application2-1.0.jar. ��� [ Done ]
2. Explode e-billing.ear ��� [How to do]
3. Explode e-billing ���SNAPSHOT.war [How to do]
4. Copy web application specific jars (application1-1.0.jar and application2-1.0.jar) in WEB-INF/lib of the exploded e-billing ���SNAPSHOT.war ��� [ Done ]
5. Copy the application specific static contents to application1 folder in exploded war. Similarly, for web application2. [how to do] 6. Then repackage war [how to do ] 7. Repackage ear. [how to do]
Guys , could you help me to solve above problem.
my pom.xml is as below: which is incomplete: <modelVersion>4.0.0</modelVersion> <groupId>com.bt.eBill</groupId> <artifactId>ebilling-weblogic</artifactId> <version>1.0</version> <packaging>ear</packaging> <name>eBilling application</name> <url>www.oracle.com</url> <dependencies>
<!-- <jarModule> <groupId>axis</groupId> <artifactId>axis</artifactId> <bundleDir>lib</bundleDir> </jarModule> --> <!-- List Of Jar which is included inside the xma Dir -->
Have you taken a look at the assembly plugin that Maven provides? Using the assembly plugin in combination with the war and ear plugins will get you where you need.
*Hint* The various plugins allow you to pull in files from various locations in order to build your final EAR file.