Arquillian examples mainly show how to construct WarArchive, JavaArchive, etc. I can't find any good example how to override one of jar files which exists in already compile war file.
The reason is that one of the jars contains persistence.xml which I wan't to override to defined for instance hbm2ddl.auto etc.
What is the proper way to do that?
The problem might be that your using
ShrinkWrap.createFromZipFile
. From my experience with Arquillian it better to create a custom WAR/JAR for each test. The method which creates the deployment usually looks like this:The
test-persistence.xml
goes into your test resources directory.