I have my files under src\main\application\META-INF. It is working fine for me.
Vinita -----Original Message----- From: Newsgroup [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 2:45 PM To: [email protected] Subject: META-INF directory for webapps not in classpath 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
