title: persistence.xml not in jar after maven install
body: <p>I Created an ejb project in eclipse and converted it into a maven project.</p>
  
  <p>and i created few files to connect to database but after running a maven install in the jar file i could not find my persistence.xml file. </p>
  
  <p>But later after giving this piece of code in my pom.xml it worked fine</p>
  
  <pre><code> &lt;resources&gt;
    &lt;resource&gt;
      &lt;directory&gt;ejbModule&lt;/directory&gt;
      &lt;excludes&gt;
        &lt;exclude&gt;**/*.java&lt;/exclude&gt;
      &lt;/excludes&gt;
    &lt;/resource&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>I just want to know what this is doing.</p>