I have some common JSPs which I need to include in my war, however, they
seem to overwrite app specific JSPs of the same name.  How can I turn
overwrite off so that it will not do this?

 

Example:

 

War

 ->src

  ->main

   ->webapp

 

Common

 ->src

  ->main

   ->webapp

 

War pom.xml:

 

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-war-plugin</artifactId>

                <version>2.0.2</version>

                <configuration>

                    <warName>member</warName>

 
<outputDirectory>${basedir}/../../jar</outputDirectory>

                    <primaryArtifact>false</primaryArtifact>

                    <webResources>

                        <resource>

                            <!-- this is relative to the pom.xml
directory -->

 
<directory>${basedir}/../common/src/main/webapp</directory>

                        </resource>

                        <resource>

                            <!-- Copy in App specific jsps. -->

 
<directory>${basedir}/src/main/webapp</directory>

                        </resource>

                    </webResources>

                </configuration>

            </plugin>

 

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. 05/02/2007)

Reply via email to