"wolfc" wrote:
I think it must be moved out to a separate JPA deployer, which does persistence deployment for ear, war and jar.
Current PersistenceMetaDataUnitDeployer (or whatever its name is) already knows how to do this for all different artifact types.
To handle war's WEB-INF/classes/META-INF, it's the WARStructure that also defines that directory as possible metadata location.