title: Maven does not recognize persistence.xml
body: <p>Recently recognized that in my project <code>mvn install</code> command does not recognize persistence.xml file. </p>
  
  <p>I wrote hodor tag into persistence.xml. IDE gives an error. Meanwhile i try to compile project with <code>mvn install</code> command, there is no error and gives build success.</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" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"&gt;
     &lt;persistence-unit name="myPU" transaction-type="JTA"&gt;
        &lt;provider&gt;org.hibernate.jpa.HibernatePersistenceProvider&lt;/provider&gt;
        &lt;jta-data-source&gt;java:/OracleDS&lt;/jta-data-source&gt;
        &lt;hodor&gt;hodorhodorhodor&lt;/hodor&gt;
        &lt;class&gt;com.mycompany.MyClass&lt;/class&gt;
     &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>Is there exist any setting or plugin to compile like persistence.xml file successfully ? </p>