You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by partha_ctc <pa...@rediffmail.com> on 2008/10/22 06:57:42 UTC

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


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

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
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:partha_samantaray@rediffmail.com] 
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


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

Posted by Paul <pa...@nosphere.org>.
Le Wednesday 22 October 2008 08:34:59 partha_ctc, vous avez écrit :
> Hi ,
>       Can you tell how to explode a war which is inside a ear and then
> bundle the war?
> what dependancy and what approach will be used.

You could take a look at theses two maven plugins :

http://mojo.codehaus.org/truezip-maven-plugin/
http://code.google.com/p/jaroverlay-maven-plugin/


Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


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

Posted by partha_ctc <pa...@rediffmail.com>.
Hi ,
      Can you tell how to explode a war which is inside a ear and then
bundle the war?
what dependancy and what approach will be used.

Wayne Fay wrote:
> 
> On Tue, Oct 21, 2008 at 9:57 PM, partha_ctc
> <pa...@rediffmail.com> wrote:
>>
>> Guys , could you help me to solve above problem.
> 
> I don't generally tell people on this list to "just use Ant" but in
> this particular case, it seems like the most pragmatic solution unless
> you are willing to radically change the approach you seem to have in
> mind (and fully adopt Maven as your build tool for all the projects
> you've mentioned).
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
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-tp20104001p20104806.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


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

Posted by Wayne Fay <wa...@gmail.com>.
On Tue, Oct 21, 2008 at 9:57 PM, partha_ctc
<pa...@rediffmail.com> wrote:
>
> Guys , could you help me to solve above problem.

I don't generally tell people on this list to "just use Ant" but in
this particular case, it seems like the most pragmatic solution unless
you are willing to radically change the approach you seem to have in
mind (and fully adopt Maven as your build tool for all the projects
you've mentioned).

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org