title: Copy test resources from one submodule to the others
body: <p>I have a multi-module maven project like this:</p>
  
  <pre><code>-project
  +-sub-project1
  +-sub-project2
  </code></pre>
  
  <p>For my JUnit tests, I create another <code>persistence.xml</code> file inside the <code>sub-project1/src/test/resources/META-INF</code>. This project is a dependency for the sub-project2, in this way, I was hopping that the tests of sub-project2 use the same test persistence.xml from sub-project1, but it not happen.</p>
  
  <p>So, I was wondering why I can made maven automatically copy this file to the other submodules during the test phase... maybe it's better if I put this file in the <code>project/resources</code> folder, e.g., and then copy them...</p>
  
  <p>I was hopping that someone already managed this to work somehow, and can help me or show how to do this.</p>
  
  <p>Thanks in advance.</p>