title: How do I configure my Maven-war-plugin's useCache feature so that consecutive builds are faster?
body: <p>I’m using Maven <strong>3.3.0</strong> on Mac Yosemite.  I wanted to make use of the maven-war-plugin’s <code>useCache</code> feature, but it isn’t doing anything in my multi-module project.  When I run </p>
  
  <pre><code>mvn clean install -DskipTests
  </code></pre>
  
  <p>my project takes about 1:25 to run with the below configuration </p>
  
  <pre><code>&lt;profile&gt;
      &lt;id&gt;prepare-deploy-war-to-jboss&lt;/id&gt;
      &lt;activation&gt;
          &lt;file&gt;
              &lt;exists&gt;${basedir}/src/main/webapp&lt;/exists&gt;
          &lt;/file&gt;
      &lt;/activation&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.6&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;useCache&gt;true&lt;/useCache&gt;
                      &lt;cacheFile&gt;/tmp/${project.artifactId}/war/work&lt;/cacheFile&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>Then I run the same command again and the project takes the same amount of time.  I can see “work” files getting created so the plugin is definitely running but consecutive builds do not seem to be doing anything.  </p>
  
  <p>My question here isn’t so much as why isn’t <code>useCache</code> speeding up my build, but how can I configure my plugin differently so that consecutive runs do speed up the build?  If there is another plugin I should be using that would speed up builds on back-to-back runs, then that would also suffice here.</p>