maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <brett.por...@gmail.com>
Subject Re: war plugin: including Tomat context.xml in META-INF?
Date Mon, 24 Jan 2005 11:03:14 GMT
Yes, this is the case for the WAR plugin.

You should put them in the META-INF subdirectory of the webapp sources
(specified by maven.war.src, which defaults to src/webapp).

- Brett


On Sun, 23 Jan 2005 22:28:56 -0800, sgoldstein@apache.org
<sgoldstein@apache.org> wrote:
> I'm having a problem with the provided solution.  When I run the war
> plugin, the resources are automatically copied to the build/classes
> directory and are included in the WAR in the WEB-INF/classes directory.
> 
> What do I need to do in order for the resources to be copied to the
> META-INF directory?
> 
> Thank you for the help.
> 
> Scott
> 
> > -----Original Message-----
> > From: Michael Schuerig [mailto:michael@schuerig.de]
> > Sent: Friday, January 21, 2005 5:17 AM
> > To: users@maven.apache.org
> > Subject: Re: war plugin: including Tomat context.xml in META-INF?
> >
> > On Friday 21 January 2005 14:04, Maczka Michal wrote:
> >
> > > > Tomcat allows to define JNDI resources in the file
> > > > META-INF/context.xml
> > > > include in the web app's war. I don't see how to put a file
> > > > there using
> > > > the war plugin. Is it possible?
> > >
> > > put this file into (the recommended location)
> > >
> > > src
> > >  main
> > >    resources
> > >       META-INF
> > >
> > > and use <resources> section in your POM to declare this location.
> >
> > Ah, thanks, I was under the impression that META-INF got some special
> > treatment. Some kind of ant hangover...
> >
> > Michael
> >
> > --
> > Michael Schuerig                 Not only does lightning not strike
> > mailto:michael@schuerig.de       twice, it usually doesn't strike
> once.
> > http://www.schuerig.de/michael/  --Salman Rushdie, Fury
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


Mime
View raw message