title: Include other folders besides WEB-INF/classes in Maven Jar file?
body: <p>My pom.xml looks like this (note I'm building a JAR as well as a WAR):</p>
  
  <pre><code>            ...
              &lt;packaging&gt;war&lt;/packaging&gt;
              ...
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.1.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;containerConfigXML&gt;src/main/webapp/META-INF/context.xml&lt;/containerConfigXML&gt;
                      &lt;archiveClasses&gt;true&lt;/archiveClasses&gt;
                      &lt;attachClasses&gt;true&lt;/attachClasses&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p>However, the generated JAR only includes the classes in WEB-INF/classes. How can I get the JAR to include the classes in src/main/java/com/... etc as well - without having to add all the classes to the WEB-INF directory?</p>
  
  <p>Thanks!</p>