I have two persistence.xml files, for the sake of testing:
persistence.xml
src/main/resources/META-INF/persistence.xml
src/test/resources/
Better add both files - in general, making test/production or debug/profile/production distinction in build makes only trouble. Better try to use different perasistence unit name for production (say abc-production) and for tests (abc-tests).