title: persistence.xml not found in Eclipse Maven Project
body: <p>I cannot fix the <code>persistence.xml file not found</code> eclipse problem, this is a simple test project (Maven Nature) for a very basic EJB testing, the file is indeed in src/main/resources/META-INF/... this is the pom.xml contents. Tried adding the folder to the project's build path, updating maven project. No luck so far, any help would be greatly appreciated, thanks!</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;LibEE&lt;/groupId&gt;
    &lt;artifactId&gt;LibEE&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.7&lt;/source&gt;
            &lt;target&gt;1.7&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
  
        &lt;plugin&gt;
  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.2&lt;/version&gt;
  &lt;configuration&gt;
  &lt;archive&gt;
  &lt;manifest&gt;
  &lt;mainClass&gt;main.resources.Main&lt;/mainClass&gt;
  
  &lt;/manifest&gt;
  &lt;/archive&gt;
  &lt;/configuration&gt;
  &lt;/plugin&gt;
     &lt;/plugins&gt;
    &lt;/build&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
      &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
      &lt;artifactId&gt;javax.persistence&lt;/artifactId&gt;
      &lt;version&gt;2.1.0&lt;/version&gt;
      &lt;/dependency&gt;
  
       &lt;dependency&gt;
      &lt;groupId&gt;org.ow2.spec.ee&lt;/groupId&gt;
      &lt;artifactId&gt;ow2-ejb-3.0-spec&lt;/artifactId&gt;
      &lt;version&gt;1.0.13&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.glassfish.extras&lt;/groupId&gt;
  &lt;artifactId&gt;glassfish-embedded-all&lt;/artifactId&gt;
  &lt;version&gt;3.0.1&lt;/version&gt;
  &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>And this is the persistence.xml:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence xmlns="http://java.sun.com/xml/ns/persistence"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
  http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  version="2.0"&gt;
  
  &lt;persistence-unit name="LibEE" transaction-type="JTA"&gt;
      &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt;
      &lt;jta-data-source&gt;jdbc/LibEE&lt;/jta-data-source&gt; &lt;!-- Refers to data source in Enterprise server --&gt;
      &lt;class&gt;main.java.entities.Book&lt;/class&gt;
  &lt;properties&gt;
      &lt;property name="eclipselink.ddl-generation" value="drop-and-create-tables"/&gt;
      &lt;property name="eclipselink.logging.level" value="INFO"/&gt;
  &lt;/properties&gt;
  
  
  &lt;/persistence-unit&gt;
  
  &lt;/persistence&gt;
  </code></pre>