Hi, I have an example application which appears to show that Maven 2.0.8 is ignoring the "META-INF/persistence.xml" file in the test resources when running tests. I would love to hear from anyone that knows how to fix this issue without the use of filters, as this file should only be used in unit tests and not included in any packaged artifacts.
The example application will fail to build, complaining about no default persistence unit in the deployment, which is due to the test classpath not including the: src/test/resources/META-INF/persistence.xml To make it work copy or move this file to: src/main/resources/META-INF/persistence.xml I'm confused why it isn't working as the META-INF directory in the test resources does contain another file that IS picked up during the test by JBoss Embedded (components.xml). This is using Maven 2.0.8 which explicitly states in its release notes: "MNG-3118 - Test-classes should come before classes in the classpath. This may slightly alter behavior of tests. The test-classes is now included first in the classpath to allow test resources to override normal runtime ones." The example can be downloaded from here: http://www.users.on.net/~cory_prowse/seamMavenExample-20080104.zip Thanks, -- Cory --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
