For #5, if you only need those files, you could tell the dependency plugin to 
only unpack those files where you want them, instead of exploding the whole 
thing and moving the files.

-----Original Message-----
From: partha_ctc [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2008 12:58 AM
To: users@maven.apache.org
Subject: maven2 expert : explode war which is in an ear and then bundle war 
then bundle ear


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>

-- 
View this message in context: 
http://www.nabble.com/maven2-expert-%3A-explode-war-which-is-in-an-ear-and-then-bundle-war-then-bundle-ear-tp20104001p20104001.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to