The persistence.xml file must be in a specification-recognized location

A Java Persistence API (JPA) persistence unit is defined by a persistence.xml file. The persistence.xml file must be located in the META-INF directory of the root of the persistence unit as defined by the JPA specification.

This rule has an automated fix to move the persistence.xml file. Copy the custom configuration to your application build file to enable it.

Refer to the JPA 2.1 specification for more details on the JPA feature.