title: JPA configuration - persistence.xml is automatically created under src/main/java instead of src/main/resource
body: <p>I am using Maven 3.3.9 and created a Maven Web Project in <strong>Spring tool suite and using Eclipse.</strong></p>
  
  <p>Recently I went through a Tutorial for configuring JPA with maven project.</p>
  
  <p><a href="http://www.javabeat.net/eclipselink-jpa-installation-configuration/" rel="nofollow noreferrer">Tutorial showing JPA configuration</a></p>
  
  <p>I successfully configured Database connection using EclipseLink2.5</p>
  
  <p><a href="https://i.stack.imgur.com/26N1W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/26N1W.png" alt="META-INF created under src\main\java"></a></p>
  
  <p><strong>PROBLEM I AM FACING IS</strong>
  After I click ok followed by configuring JPA 2.1 using project Facet properties. Persistence.xml is created automatically under <strong>META-INF</strong> of <strong>src/main/java</strong> <strong>instead of</strong> <strong>src/main/resource</strong> location.</p>
  
  <p>Is this correct ??</p>
  
  <p>I had already researched a lot on this, in every blog it is mentioned that META-INF should be placed under src/main/java and not under  src/main/resource.</p>
  
  <p><strong>Then why is it every time I create a Maven project and configure JPA from Project Facet, Its ends up automatically creation under src/main/java.</strong></p>
  
  <p>please refer my screenshot.</p>
  
  <p>So should I remove this folder META-INF/Persistence.xml from src/main/java and paste it manually under  src/main/resource.</p>