Test resources not found in classpath -------------------------------------
Key: SUREFIRE-294 URL: http://jira.codehaus.org/browse/SUREFIRE-294 Project: Maven Surefire Issue Type: Bug Components: classloading Affects Versions: 2.0 (2.2 plugin), 1.5.3 (2.1.3 plugin), 2.4 Environment: Linux, JDK 1.5 Reporter: Jim Crossley Priority: Blocker Attachments: surefire-classpath-test.zip Attached is a simple project demonstrating that the Surefire plugin cannot find the correct META-INF/persistence.xml when trying to create a JPA EntityManagerFactory in the setup method of AppTest.java. There are two persistence units defined: the "real" one in src/main/resources/META-INF/persistence.xml and the "fake" one in src/test/resources/META-INF/persistence.xml. The test case should work if Surefire can find the "fake" one, which it currently can't. Incidentally, it can't even find the "real" one. It's as if the resources directories are simply not added to the classpath during test invocation. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira