title: Move a text file into target folder when compiling a Maven project
body: <p>I have a slight different version of <a href="https://stackoverflow.com/questions/16356849/netbeans-move-a-text-file-into-dist-folder-when-compiling">the question</a> that I made recently.
  I have a <strong>Maven</strong> project under <strong>Netbeans 7.3</strong>, which doesn't have any <code>build.xml</code> file to configure building options, while there is the <code>pom.xml</code> that I use to import other libraries. Now, I have a text file (let's say <code>textfile.txt</code>) stored in the project folder in <em>Netbeans 7.3</em>, e.g.</p>
  
  <pre><code>project folder
    textfile.txt
    src
      package
      package.subpackage
        MyClass.java
  </code></pre>
  
  <p>When I compile I get a <code>target</code> folder where the <em>jar</em> file is put in, e.g.</p>
  
  <pre><code>project folder
    textfile.txt
    target
      classes
      generated-sources
      ....etc
      test-classes
      MyProject.jar
    src
      package
      package.subpackage
        MyClass.java
  </code></pre>
  
  <p>How can I make the file textfile.txt being copied under target folder when I compile the Maven project?</p>