Good day, Aside from those that are already mentioned, you could do the following: 1. Package your 'resource' project into a war and use war-overlay ( see [1] ), or 2. Use maven remote-resources:bundle to create a 'resource' project ( which is a jar ), then use remote-resources:process to extract the resources ( see [2] ).
Cheers, Franz [1] http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html [2] http://maven.apache.org/plugins/maven-remote-resources-plugin/usage.html Doug Tanner-2 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 [EMAIL PROTECTED], and > destroy all copies or derivations of the original message. Thank you. > (BFeComNote Rev. 08/01/2005) > *************************************************************************************** > > -- View this message in context: http://www.nabble.com/How-to-build-multiple-webapps-that-share-resources-tf3492220s177.html#a9835654 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]