title: How do I tell maven where is Tomcat?
body: <p>I am trying to launch tomcat using following maven command</p>
  
  <pre><code>mvn tomcat7:run
  </code></pre>
  
  <p>But how do I tell maven that tomcat is located at <code>D:\Tomcat\</code></p>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code> &lt;build&gt;
      &lt;finalName&gt;test&lt;/finalName&gt;
          &lt;!-- MAVEN COMPILER PLUGIN --&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.6&lt;/source&gt;
            &lt;target&gt;1.6&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
  
      &lt;!-- MAVEN TOMCAT PLUGIN --&gt;
      &lt;plugin&gt;
          &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
          &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.1&lt;/version&gt;
          &lt;configuration&gt;
              &lt;url&gt;http://localhost:8080/manager/text&lt;/url&gt;
              &lt;server&gt;tomcat-server&lt;/server&gt;
              &lt;path&gt;/${project.build.finalName}&lt;/path&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  </code></pre>