maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
Subject Re: NO properties were copied when building WAR !!!
Date Fri, 21 Nov 2003 05:48:16 GMT
You do know that '*.properties' in your pom only copies .properties files 
in the ${basedir}/src/conf directory?

Is that what you want?
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/



"Eric Chow" <echow@macaucabletv.com> wrote on 21/11/2003 02:16:07 PM:

> In fact, I used that format in the very beginning. But also failed.
> 
> Eric
> 
> 
> 
> ----- Original Message ----- 
> From: <dion@multitask.com.au>
> To: "Maven Users List" <users@maven.apache.org>
> Sent: Friday, November 21, 2003 11:19 AM
> Subject: Re: NO properties were copied when building WAR !!!
> 
> 
> > "Eric Chow" <echow@macaucabletv.com> wrote on 21/11/2003 01:56:39 PM:
> > 
> > > Hello,
> > > 
> > > Maven doesn't copy any properties to the WEB-INF/classes when 
creating 
> > WAR.
> > > 
> > > But it works fine in WinXP.
> > > 
> > > 
> > > Platform:
> > > Win98 SE
> > > JDK1.4.2
> > > Maven-1.0rc1
> > > 
> > > <build>
> > > 
<nagEmailAddress>turbine-maven-dev@jakarta.apache.org</nagEmailAddress>
> > >     <sourceDirectory>src/java</sourceDirectory>
> > >     <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
> > > 
> > >     <unitTest>
> > >       <includes>
> > >         <include>**/*Test.java</include>
> > >       </includes>
> > >       <excludes>
> > >         <exclude>**/NaughtyTest.java</exclude>
> > >       </excludes>
> > >     </unitTest>
> > > 
> > >     <resources>
> > >       <resource>
> > >         <directory>${basedir}/src/conf</directory>
> > >         <includes>
> > >           <include name="*.properties"/>
> > >           <include name="hibernate.cfg.xml"/>
> > >         </includes>
> > >       </resource>
> > >     </resources>
> > >   </build>
> > 
> > See http://maven.apache.org/reference/project-descriptor.html#includes
> > 
> > It's not clear, but the format for the <include> element is:
> > 
> >            <include>*.properties</include>
> >            <include>hibernate.cfg.xml</include>
> > Try that and let us know how it goes.
> > --
> > dIon Gillard, Multitask Consulting
> > Blog:      http://blogs.codehaus.org/people/dion/
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > 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