Problem solved.

Solution:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.0</version>
    <configuration>
      <webResources>
        <resource>
          <!-- this is relative to the pom.xml directory -->
          <directory>../common/src/main/webapp</directory>
        </resource>
      </webResources>
    </configuration>
  </plugin>

Doug Tanner
 

> -----Original Message-----
> From: Doug Tanner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 03, 2007 1:00 PM
> To: Maven Users List
> Subject: RE: Include Common JSPs in multiple wars
> 
> Directory Structure:
> 
> Webapps
>   -common
>     -src
>       -main
>         -webapp
>           -[Bunch of JSPs]
>     -pom.xml
>   -module1
>     -src
>       -main
>         -java
>         -webapp
>           -[Bunch of JSPs]
>     -pom.xml
>   -module2
>     -src
>       -main
>         -java
>         -webapp
>           -[Bunch of JSPs]
>     -pom.xml
> 
> How do I include the JSPs from the common module in module1.war and
> module2.war?
> 
> Doug Tanner
> 
> 
> > -----Original Message-----
> > From: Tomasz Pik [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 03, 2007 12:24 PM
> > To: Maven Users List
> > Subject: Re: Include Common JSPs in multiple wars
> >
> > On 4/3/07, Doug Tanner <[EMAIL PROTECTED]> wrote:
> > > How do you include commons JSPs in multiple wars?  We have a
common
> > > module that produces a jar instead of a war, but I need to include
> all
> > > the JSPs in this module in all my other webapps.  I tried using
the
> > > <resource> tag, but that places the files in WEB-INF/classes.  Is
> there
> > > another tag that I am missing from the documentation?
> >
> > There's no way to 'pass' those jsp to your 'war' projects from
within
> > 'jar' project (at least I do not know such a way).
> > But you may change packaging of your 'shared' project from 'jar'
> > to 'war'. Then this 'shared' war will contain all required jsp files
> > and compiled classes, under WEB-INF/classes.
> > Then, for your 'war' projects maven will include all of this (both
> > classes and jsp files) in created war and that will be, what are
> > you looking for,
> >
> > HTH,
> > Tomek
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>
************************************************************************
**
> **************
> 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)
>
************************************************************************
**
> *************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to