title: How do I configure the Maven WAR plugin to execute the "inplace" goal by default?
body: <p>I’m using Maven 3.2.3 and the Maven War 2.6 plugin.  I would like the “inlace” goal of the Maven WAR plugin to execute by default (without my having to explicitly specify “war:inlace” on the command line).  So I created a profile to include the below</p>
  
  <pre><code>&lt;profile&gt;
      &lt;id&gt;dev&lt;/id&gt;
      &lt;activation&gt;
              &lt;property&gt;
                      &lt;name&gt;!flag&lt;/name&gt;
              &lt;/property&gt;
      &lt;/activation&gt;
      &lt;build&gt;
              &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
                          &lt;version&gt;2.4.1&lt;/version&gt;
                          &lt;configuration&gt;
                              &lt;filesets&gt;
                                  &lt;fileset&gt;
                                      &lt;directory&gt;${project.basedir}/src/main/webapp/WEB-INF/classes&lt;/directory&gt;
                                  &lt;/fileset&gt;
                                  &lt;fileset&gt;
                                      &lt;directory&gt;${project.basedir}/src/main/webapp/WEB-INF/lib&lt;/directory&gt;
                                  &lt;/fileset&gt;
                              &lt;/filesets&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&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;workDirectory&gt;/tmp/${project.artifactId}/war/work&lt;/workDirectory&gt;
                          &lt;/configuration&gt;
                          &lt;goals&gt;
                                  &lt;goal&gt;inplace&lt;/goal&gt;
                          &lt;/goals&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>Using “mvn help:active-profiles”, I have verified this profile is being used when I run “mvn clean install” on my WAR project.  However, the WAR is not assembled in place.  For instance, I get the output</p>
  
  <pre><code>[INFO] Packaging webapp
  [INFO] Assembling webapp [myproject] in [/Users/davea/Dropbox/workspace/myproject/target/myproject]
  [INFO] Processing war project
  [INFO] Copying webapp resources [/Users/davea/Dropbox/workspace/myproject/src/main/webapp]
  [INFO] Webapp assembled in [17460 msecs]
  </code></pre>
  
  <p>Also I notice there are no “classes” or “lib” resources in my src/main/resources/WEB-INF folder.  What do I need to configure differently to get my WAR to be built in-place?</p>