You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stefan Burkard <ne...@burknet.ch> on 2006/12/29 10:43:44 UTC

Re: [solved] META-INF directory for webapps not in classpath



Stefan Burkard wrote:
> 
> hi maven-users
> 
> I've got the following problem: if I'm creating a webapp and put the
> META-INF directory into "src/main/webapp" the files in it (for example
> persistence.xml) are NOT on the classpath and therefore my tests are
> failing, I can't package my project.
> 
> if I'm putting the META-INF directory under "src/main/resources", the
> files are on the classpath, the tests succeed, the WAR file is built. 
> BUT: if I explode the WAR, my META-INF directory and it's files are under
> "/WEB-INF/classes/". strange place for META-INF, isn't it? 
> 
> is it possible to have the files for the META-INF directory on the
> classpath and copy them on packaging into the correct location (for
> example "/META-INF/persistence.xml")? 
> 
> thanks and greetings
> stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/META-INF-directory-for-webapps-not-in-classpath-tf2892575s177.html#a8085462
Sent from the Maven - Users mailing list archive at Nabble.com.


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