I have a multi module maven project. More than one module have persistence.xml for testing (in src/test/resources/META-INF/persistence.xml)
If I complile/run test from maven everything work's fine but when I run idea internal scala test, I always get: "javax.persistence.PersistenceException: No name provided and several persistence units found"
If delete all persistence.xml except one (independen the module), the scalatest work (but the maven not of course :)).
For example if I have 3 module (m1, m2, war), and all has persistence.xml the ScalaTest not work. If I remove the persistence.xml from m1 and m2 module (and war module contain all <class> entry), all ScalaTest work fine (but it's wrong :) )
Expected: each module ScalaTest work their own persistence.xml