Hi All,

I am wondering how to fix the following 2 problems.

With the seam project that I am building, the persistence.xml in the
src/main/resources/META-INF directory is over writting the perstence.xml in
the test/resources/META-INF directory. 
Problem here is that the main PU uses an Oracle dialect, whilst during
testing I need to use the test PU that leverages the HSQL dialect. 

Using maven 2.0.9 with the Surefire test plugin, testng and seam 2.1.1.GA

It seems (sorry, not sure how maven goes about its business) that the test
resources are loaded first, then the main resources are loaded, then entity
classes are loaded, then the tests are run.  

I have tried creating a separate persistence unit (named differently) in the
test so that this isn't over written however when the entity classes are
loaded this uses the persistence from main/resources rather than the new
test one. 

Does anyone know of how to re-arrange the order in which things are loaded
by the surefire test? 
I think it would work if i could load main resources and classes first, then
overwrite any of these with things from the test resources.

Cheers,
Troy
-- 
View this message in context: 
http://www.nabble.com/Seam-persistence-unit-over-written-in-testing-phase-tp22530226p22530226.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to