I remember having this issue as well - `persistence.xml` is generated even though it is in the Web Resources.

This is because there is no persistence.xml on default location, but it is actually present under Web Resources, since it is included in webResources in maven-war-plugin configuration.

Could you please report an issue in https://issues.jboss.org/browse/JBDS ?