• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

maven2 expert : explode war which is in a ear and then bundle war then bundle ear

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>

<!-- <dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
<scope>provided</scope>
</dependency> -->
<dependency>
<groupId>com.bt</groupId>
<artifactId>application1</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<!-- <dependency>
<groupId>com.bt</groupId>
<artifactId>application2</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency> -->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<!-- <version>2.3.1</version> -->
<configuration>
<displayName>eBilling App</displayName>
<description>(C)Copyright 1999-2007 Oracle(R), </description>
<!-- <version>2.0</version> -->
<earSourceDirectory>${project.build.directory}/dependency</earSourceDirectory> <!-- <applicationXml>${project.build.directory}/dependency/META-INF/application.xml
</applicationXml> -->
<!-- <generateApplicationXml>false</generateApplicationXml> -->
<modules>

<!-- <jarModule>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<bundleDir>lib</bundleDir>
</jarModule> -->
<!-- List Of Jar which is included inside the xma Dir -->

<jarModule>
<groupId>com.bt</groupId>
<artifactId>application1</artifactId>
<bundleDir>WEB-INF/lib</bundleDir>
</jarModule>
<!-- <jarModule>
<groupId>com.bt</groupId>
<artifactId>application2</artifactId>
<bundleDir>WEB-INF/lib</bundleDir>
</jarModule> -->
</modules>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dependency-maven-plugin</artifactId>
<executions>
<execution>
<id>unpack-eBilling-App</id>
<phase>process-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.bt.eBill</groupId>
<artifactId>ebilling-weblogic</artifactId>
<version>1.0</version>
<type>ear</type>
</artifactItem>
</artifactItems>
<outputDirectory>classes</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

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.

Let us know where you get stuck!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic