title: how to include static files in jar
body: <p>i have an ant build that just generates a jar full of html pages. i would like to do the same with maven. im currently copying the files over to a new folder but the files are not being added to the final jar. when i run the command <br> <code>jar tf mavenjar.jar</code> <br>
  i dont see the files listed in my terminal. it looks like so: 
  <a href="https://i.stack.imgur.com/IwdDu.png" rel="nofollow noreferrer">click here</a>
  <br>
  when i run the same command on the ant produced jar, i see the following: 
  <a href="https://i.stack.imgur.com/L7zmK.png" rel="nofollow noreferrer">click here</a>
  here's my pom</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;try1&lt;/groupId&gt;
      &lt;artifactId&gt;try1&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
          &lt;finalName&gt;mavenjar&lt;/finalName&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;${basedir}/moveTheseFiles&lt;/directory&gt;
                  &lt;targetPath&gt;${basedir}/newFileLocation&lt;/targetPath&gt;
                  &lt;filtering&gt;false&lt;/filtering&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><br>
  any idea on what i may be missing to include the moved files to jar? </p>