You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nayan Hajratwala <na...@chikli.com> on 2009/04/17 16:50:47 UTC

project structure recommendation: multiple wars with shared web content

Hello,

I have a project that consists of 1 War module and a bunch of  
supporting modules.

This one war module is deployed in different places for different  
clients. About 90% of the web content is common, but the remaining  
content (jsps, images, etc) are unique to the client.  I would prefer  
not to deploy content for one client in another clients' server.

Current
---------
   war1
      ---> client1 jar
      ---> cient2 jar
      ---> client3 jar
      ---> shared webcontent
      ---> client1 webcontent
      ---> client2 webcontent
      ---> client3 webcontent

Desired
----------
war1
    ---> client1 jar
    ---> shared webcontent
    ---> client1 webcontent

war2
    ---> client2 jar
    ---> shared webcontent
    ---> client2 webcontent

war3
    ---> client3 jar
    ---> shared webcontent
    ---> client3 webcontent

What is a good way to package this? I'm not sure how to include the  
the shared web content in each war file...

Thanks!
---
Nayan Hajratwala
http://agileshrugged.com
http://twitter.com/nhajratw
734.658.6032


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


Re: project structure recommendation: multiple wars with shared web content

Posted by Nayan Hajratwala <na...@chikli.com>.
Cool -- I've never seen that before :-) - Looks like it will do the  
trick.

On Apr 17, 2009, at 11:44 AM, Wayne Fay wrote:

>> I have a project that consists of 1 War module and a bunch of  
>> supporting
>> modules.
>
> War overlays
> http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


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


Re: project structure recommendation: multiple wars with shared web content

Posted by Wayne Fay <wa...@gmail.com>.
> I have a project that consists of 1 War module and a bunch of supporting
> modules.

War overlays
http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html

Wayne

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