title: How do I configure an additional context path for tomcat-maven-plugin?
body: <p>I'm using Maven 3.0.3 with the Tomcat plugin. Using Maven and Tomcat, I would like to deploy an embedded instance of the site. My question is how do I configure an additional context path in my embedded Tomcat server?  Below is my Tomcat configuration, but either my <code>&lt;contextFile&gt;</code> specification is invalid or the contents of that file (below) are invalid:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;Context path=&quot;/all-new-jx-web&quot; docBase=&quot;/Users/davea/Documents/workspace/NissanUSA2/Technology/nna/mycousa/jx/target/web&quot;&gt;
  &lt;/Context&gt;
  </code></pre>
  <p>because when I invoke</p>
  <pre class="lang-none prettyprint-override"><code>mvn clean -Dmaven.test.skip=true verify -Ptomcat tomcat:run
  </code></pre>
  <p>none of the URLs mapped to <code>/all-new-jx-web</code> (my additional context path) are getting mapped (assets aren't being served by Tomcat). Any ideas why?  Below is my tomcat profile from my <code>pom.xml</code> file:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;profile&gt;
    &lt;id&gt;tomcat&lt;/id&gt;
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;tomcat-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.1&lt;/version&gt;
          &lt;configuration&gt;
            &lt;contextFile&gt;config/tomcat/context.xml&lt;/contextFile&gt;
            &lt;mode&gt;context&lt;/mode&gt;
            &lt;addContextWarDependencies&gt;true&lt;/addContextWarDependencies&gt;
            &lt;charset&gt;UTF-8&lt;/charset&gt;
            &lt;path&gt;/all-new-jx&lt;/path&gt;
            &lt;update&gt;true&lt;/update&gt;
            &lt;warDirectory&gt;target/${project.artifactId}-${project.version}.${project.packaging}&lt;/warDirectory&gt;
            &lt;systemProperties&gt;
              &lt;JAVA_OPTS&gt;-Xms256m -Xmx512m -XX:MaxPermSize=256m -XX:NewRatio=6
                  -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
                  -verbose:gc&quot;
              &lt;/JAVA_OPTS&gt;
            &lt;/systemProperties&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>