title: How to install tomcat maven plugin?
body: <p>I'm trying to run the basic CXF maven archetype.</p>
  
  <p>I've just tried to install tomcat7-maven-plugin-2.2.jar manually using :</p>
  
  <pre><code>mvn -X install:install-file -Dfile=/tmp/path/tomcat7-maven-plugin-2.2.jar -DgroupId=org.apache.tomcat.maven -DartifactId=tomcat7-maven-plugin -Dversion=2.2 -Dpackaging=jar
  </code></pre>
  
  <p>which leads to :</p>
  
  <pre><code>[INFO] Installing /tmp/path/tomcat7-maven-plugin-2.2.jar to /home/userxxx/.m2/repository/org/apache/tomcat/maven/tomcat7-maven-plugin/2.2/tomcat7-maven-plugin-2.2.jar
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESSFUL
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: &lt; 1 second
  [INFO] Finished at: Fri Jan 23 17:50:42 CET 2015
  [INFO] Final Memory: 4M/179M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>BUT when I try to call it on my project via :</p>
  
  <pre><code>mvn clean install tomcat:run-war
  </code></pre>
  
  <p>It says :</p>
  
  <pre><code>[INFO] Searching repository for plugin with prefix: 'tomcat'.
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] The plugin '**org.codehaus.mojo**:tomcat-maven-plugin' does not exist or no valid version could be found
  </code></pre>
  
  <p>Would u have an idea why maven is looking for "org.codehaus.mojo" groupId instead of "org.apache.tomcat.maven" ?</p>
  
  <p>I know it was hosted at "org.codehaus.mojo" before, so is it a bug ?</p>
  
  <p>Should I install the plugin in this groupId ?</p>