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)
***************************************************************************************

Reply via email to