RE: Combining multiple wars

2006-09-08 Thread johne


Andreas,


As I am new to Maven 2 I am still trying to work off of examples and I am
having a hard time locating an example for what I am trying to do.


I have 5 modules that need to get built as follows:
 A  ->   A.jar
 B  ->   B.jar
 C  ->  A.jar + B.jar + C module 
>  C.war
 D 
-->
 
C.war + D module  >  D.war
 E 
-->
 
C.war + E module  >  E.war


I hope this is understandable.   Basically I need to have the resources and
WEB-INF properties to be made available and usable in the D & E wars without
overwriting D or E's own files where C's files conflict.The reason for
this is C is a service platform with its own admin screens, etc.C & D
are different internationalized versions with specific different services
both built off of C's base infrastructure.

I have the build working except that the property (resource files) and XML
(WEB-INF) files are not exploded into the final wars causing the final wars
to not see that they exist when tomcat runs.

Is there any example on how I can do this?   I can't even imagine backing
off to Ant at this stage having gone so far.

Thanks for any help as I will be using this in multiple projects.



-- 
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6216901
Sent from the Maven - Users forum at Nabble.com.


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



RE: Combining multiple wars

2006-09-08 Thread Andreas Guther
We are using cargo to merge war files:

http://cargo.codehaus.org/Merging+WAR+files


Andreas


-Original Message-
From: johne [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 07, 2006 2:34 PM
To: users@maven.apache.org
Subject: Combining multiple wars



Hello,

I am mostly through the process of switching from Ant to Maven2.   I
have
seperated one big project into 5 sub-projects using a hierarchy of poms.

I have the following hierarchy:   service-platform.war ->
baseservices.war
-> servicesusa.war

Originally these were all gobbed together in one war.  Now I am trying
to
have multiple countries supported and needed a better way of packaging
due
to differences in services.

My problem is that they have shared resources that need to be exploded
under
the ending serviceusa.war's WEB-INF.  This is not happening, however and
the
resources can not be found.   I have tried working with the dependency
plogin and the war plugin, but i have not figured out how I can have
service-platform.war's WEB-INF exlode into baseservice.war's and then
having
both of those explode into the serviceusa.war.

Preferably it would be good to be able to filter on each of these.

Is there a way?  Does somebody have an example they can post?  I have
not
been able to find anything that helped in examples or other projects I
have
downloaded.

Thanks!!!

John
-- 
View this message in context:
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6198850
Sent from the Maven - Users forum at Nabble.com.


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


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



Re: Combining multiple wars

2006-09-08 Thread johne


Thanks again Matt.  I will give it a shot.  I am hoping to be able to keep
in touch with updates somehow.  Maybe the other nabble thread will keep
active.  It would be great if a codehaus plugin project could happen for it
so others would have access.  I had seen other people with the same problem
in forums.


-- 
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6210485
Sent from the Maven - Users forum at Nabble.com.


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



Re: Combining multiple wars

2006-09-07 Thread Matt Raible

You can download the latest drop I received form Mike Horwitz (the
author of this plugin) at:

http://static.appfuse.org/downloads/maven-warpath-plugin-20060905.zip

Matt

On 9/7/06, johne <[EMAIL PROTECTED]> wrote:


P.S.:  Where might I get the latest version?
--
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6200990
Sent from the Maven - Users forum at Nabble.com.


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




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



Re: Combining multiple wars

2006-09-07 Thread johne

P.S.:  Where might I get the latest version?
-- 
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6200990
Sent from the Maven - Users forum at Nabble.com.


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



Re: Combining multiple wars

2006-09-07 Thread johne

Matt,

Thank you so much for the lead.  I have been struggling over this for days
trying different things feeling a bit stupid as there is no real
documentation on it.

I will check out the plugin you mentioned.  I am using Netbeans 5.5 beta so
hope it integrates with that.  I had found it was much easier to integrate
with M2 and Netbeans in a multi-module project.

I am hoping that when I follow your link, I manage to find a bit of
documentation and a few examples.

Again I appreciate your ideas.

John Eichelsdorfer
http://www.jobbank.com

-- 
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6200884
Sent from the Maven - Users forum at Nabble.com.


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



Re: Combining multiple wars

2006-09-07 Thread Matt Raible

The current war functionality does not allow you to get the
dependencies and use them in a child project.  The good news is we're
working on a solution in the AppFuse project.  So far we have a
"warpath" plugin that allows you to do what you're looking for.

http://www.nabble.com/Maven-2-issues-for-Appfuse-2-tf2189359s2369.html#a6138807

The last thing we're trying to solve is how to get the eclipse and
idea plugins to recognize the dependencies and include them in the
generated project files.

Matt

On 9/7/06, johne <[EMAIL PROTECTED]> wrote:



Hello,

I am mostly through the process of switching from Ant to Maven2.   I have
seperated one big project into 5 sub-projects using a hierarchy of poms.

I have the following hierarchy:   service-platform.war -> baseservices.war
-> servicesusa.war

Originally these were all gobbed together in one war.  Now I am trying to
have multiple countries supported and needed a better way of packaging due
to differences in services.

My problem is that they have shared resources that need to be exploded under
the ending serviceusa.war's WEB-INF.  This is not happening, however and the
resources can not be found.   I have tried working with the dependency
plogin and the war plugin, but i have not figured out how I can have
service-platform.war's WEB-INF exlode into baseservice.war's and then having
both of those explode into the serviceusa.war.

Preferably it would be good to be able to filter on each of these.

Is there a way?  Does somebody have an example they can post?  I have not
been able to find anything that helped in examples or other projects I have
downloaded.

Thanks!!!

John
--
View this message in context: 
http://www.nabble.com/Combining-multiple-wars-tf2235662.html#a6198850
Sent from the Maven - Users forum at Nabble.com.


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




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