title: Force Spring Toolsuite to use maven-minify-plugin on hot redeploy
body: <p>guys!</p>
  
  <p>I'm stuck with the problem that looks similar to <a href="https://stackoverflow.com/questions/2311138/eclipse-sts-maven-and-maven-minify-plugin-can-they-work-together">this</a>. I have changed generic lifecycle mapping to launch <code>minify</code> goal on resource change but still no luck. </p>
  
  <p>Minifier launches but resulting files are placed into <code>[project folder]/target/[project_name]/resources/js</code> folder, and I need them to be in sts-tc server <code>wtpwebapps</code> folder. I know it's possible to change webappTargetDir parameter in the plugin configuration, but I couldn't get it to work.</p>
  
  <p>Here's my generic lifecycle mapping settings:
  <code>process-resources resources:testResources war:inplace minify:minify</code></p>
  
  <p>Here's the plugin configuration:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;com.samaxes.maven&lt;/groupId&gt;
      &lt;artifactId&gt;maven-minify-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.3.5&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;default-minify&lt;/id&gt;
              &lt;phase&gt;process-resources&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;jsSourceDir&gt;resources/js&lt;/jsSourceDir&gt;
                  &lt;jsTargetDir&gt;resources/js&lt;/jsTargetDir&gt;
                  &lt;jsSourceFiles&gt;
                      &lt;jsSourceFile&gt;main.js&lt;/jsSourceFile&gt;
                      &lt;jsSourceFile&gt;scripts.js&lt;/jsSourceFile&gt;
                  &lt;/jsSourceFiles&gt;
                  &lt;jsFinalFile&gt;final.js&lt;/jsFinalFile&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                  &lt;goal&gt;minify&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I'm new to Maven, so any help would be appreciated.</p>
  
  <p>Thanks in advance, Mikhail.</p>