title: How to regenerate target folder on Maven 'package'?
body: <p>My project compiled folder is <code>/project/target/appname-0.24-SNAPSHOT/</code>, which will 
  will result in <code>appname-0.24-SNAPSHOT.war</code> on <code>mvn package</code>.</p>
  
  <p>How can I clean/regenerate this specific target folder before packaging?</p>
  
  <p>I cannot execute <code>mvn clean</code> as this would clear the whole <code>target</code> folder, which I'd like to prevent because it contains lots of auto-generated webservice classes, which then in turn also would have to be regenerated and take a lot of time.</p>
  
  <p>I'd only like to regenerate my project resources in <code>${project.build.directory}</code>. Is that possible?</p>
  
  <p>maven config:</p>
  
  <pre><code>                            &lt;filesets&gt;
                                  &lt;fileset&gt;
                                      &lt;directory&gt;target&lt;/directory&gt;
                                      &lt;excludes&gt;
                                          &lt;exclude&gt;generated/*&lt;/exclude&gt;
                                          &lt;exclude&gt;classes/*&lt;/exclude&gt;
                                      &lt;/excludes&gt;
                                      &lt;followSymlinks&gt;false&lt;/followSymlinks&gt;
                                  &lt;/fileset&gt;
                              &lt;/filesets&gt;
  </code></pre>