maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Williams <a...@handyande.co.uk>
Subject Re: How to build multiple webapps that share resources
Date Wed, 04 Apr 2007 10:01:55 GMT
make another module alongside webapp1 and webapp2 called, for  
example, webapp-resources
and then depend on this jar module from both webapps.
If you require to filter the resources then you need a more  
complicated solution, however :(

Andy

On 30 Mar 2007, at 14:29, Doug Tanner wrote:

> I am currently in the process of refactoring our code in order to  
> switch
> from building with ant to maven.  How can I share resources, such as
> property files, between multiple webapps?
>
>
>
> Current directory structure:
>
>
>
> Webapps
>
>     -src
>
>         -java
>
>             -webapp1
>
>             -webapp2
>
>             -x.properties
>
>             -y.properties
>
>
>
> This is how I am envisioning the maven structure:
>
>
>
> Webapps
>
>     -parent.pom.xml
>
>     -webapp1
>
>         -src
>
>             -main
>
>                 -java
>
>                 -resources
>
>                     -x.properties
>
>                     -y.properties
>
>                 -webapp
>
>                     -jsps
>
>         -pom.xml
>
>     -webapp2
>
>         -src
>
>             -main
>
>                 -java
>
>                 -resources
>
>                     -x.properties
>
>                     -y.properties
>
>                 -webapp
>
>                     -jsps
>
>         -pom.xml
>
>
>
> Should I be able to have these properties files in a central location
> such that any number of webapps can include them?  Each webapp will  
> be a
> distinct war file after assembly.
>
>
>
> Thanks,
>
>
>
> Doug Tanner
>
> Configuration Management Engineer
>
> Benefitfocus.com, Inc.
>
>
>
>
>
> ********************************************************************** 
> ******************
> BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is  
> intended only for the individual or entity to which it is addressed  
> and may contain information that is confidential and protected by  
> law. Unauthorized review, use, disclosure, or dissemination of this  
> communication or its contents in any way is prohibited and may be  
> unlawful. If you are not the intended recipient or a person  
> responsible for delivering this message to an intended recipient,  
> please notify the original sender immediately by e-mail or  
> telephone, return the original message to the original sender or to  
> bfpostmaster@benefitfocus.com, and destroy all copies or  
> derivations of the original message. Thank you.  (BFeComNote Rev.  
> 08/01/2005)
> ********************************************************************** 
> *****************


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


Mime
View raw message