title: Within Eclipse, how to run Tomcat Maven plugin that modifies the context path
body: <p>Inside Eclipse with m2 Maven plugin installed. I can run my webapp in Tomcat via Eclipse WTP using "Run on Server" command.</p>
  
  <p>Now I want to modify the context-path via Maven, so I use the following plugin:</p>
  
  <pre><code>&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;path&gt;${contextpath-name}&lt;/path&gt;
          &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But then how do you exactly run this plugin inside Eclipse. Using Eclipse WTP always gives me the following URL - <code>http://localhost:8080/myapp</code></p>
  
  <p>I know I could run the plugin on a standalone Maven, but I want to know how to do it within Eclipse</p>