CINXE.COM

Welcome to the Apache Tomcat Maven Plugin

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- Generated by Apache Maven Doxia at Feb 1, 2012 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Welcome to the Apache Tomcat Maven Plugin</title> <link rel="stylesheet" href="./css/apache-maven-fluido.min.css" /> <link rel="stylesheet" href="./css/site.css" /> <link rel="stylesheet" href="./css/print.css" media="print" /> <style>body{padding-top: 20px;}</style> <script type="text/javascript" src="./js/apache-maven-fluido.min.js"></script> <meta name="author" content="Oliver Lamy" /> <meta name="Date-Creation-yyyymmdd" content="20110110" /> <meta name="Date-Revision-yyyymmdd" content="20120201" /> <meta http-equiv="Content-Language" content="en" /> </head> <body> <div class="container-fluid"> <div id="banner"> <div class="pull-left"> <a href="../" id="bannerLeft"> <img src="../images/tomcat.gif" alt="Tomcat"/> </a> </div> <div class="pull-right"> <a href="http://www.apache.org" id="bannerRight"> <img src="http://www.apache.org/images/asf-logo.gif" /> </a> </div> <div class="clear"><hr/></div> </div> <div id="breadcrumbs"> <ul class="breadcrumb"> <li class=""> <a href="http://www.apache.org/" class="externalLink" title="Apache">Apache</a> <li class="divider ">/</li> </li> <li class=""> <a href="../" title="Apache Tomcat">Apache Tomcat</a> <li class="divider ">/</li> </li> <li class=""> <a href="index.html" title="Apache Tomcat Maven plugin">Apache Tomcat Maven plugin</a> <li class="divider ">/</li> </li> <li class="">Welcome to the Apache Tomcat Maven Plugin</li> <li id="publishDate" class="pull-right">Last Published: 01 February 2012</li> <li class="divider pull-right">|</li> <li id="projectVersion" class="pull-right">Version: 2.0-beta-1</li> </ul> </div> <div id="leftColumn" class="sidebar"> <div class="well"> <h5>Apache Tomcat Mojo</h5> <ul> <li class="none"> <strong>About</strong> </li> <li class="none"> <a href="context-goals.html" title="Context Goals">Context Goals</a> </li> <li class="none"> <a href="container-goals.html" title="Container Goals">Container Goals</a> </li> <li class="none"> <a href="executable-war-jar.html" title="Executable War">Executable War</a> </li> <li class="none"> <a href="run-mojo-features.html" title="Run Mojo">Run Mojo</a> </li> <li class="none"> <a href="archetype.html" title="Maven Archetype">Maven Archetype</a> </li> <li class="none"> <a href="snapshot-test.html" title="Developement Test">Developement Test</a> </li> <li class="none"> <a href="jira-report.html" title="Changelog">Changelog</a> </li> <li class="none"> <a href="http://www.apache.org/licenses/" class="externalLink" title="License">License</a> </li> </ul> <h5>Modules</h5> <ul> <li class="none"> <a href="common-tomcat-maven-plugin/index.html" title="Apache Tomcat Maven Plugin :: Common API">Apache Tomcat Maven Plugin :: Common API</a> </li> <li class="none"> <a href="tomcat-maven-plugin-it/index.html" title="Apache Tomcat Maven Plugin :: Integration Tests">Apache Tomcat Maven Plugin :: Integration Tests</a> </li> <li class="none"> <a href="tomcat6-maven-plugin/index.html" title="Apache Tomcat Maven Plugin :: Tomcat 6.x">Apache Tomcat Maven Plugin :: Tomcat 6.x</a> </li> <li class="none"> <a href="tomcat7-maven-plugin/index.html" title="Apache Tomcat Maven Plugin :: Tomcat 7.x">Apache Tomcat Maven Plugin :: Tomcat 7.x</a> </li> <li class="none"> <a href="tomcat7-war-runner/index.html" title="Apache Tomcat Maven Plugin :: Tomcat 7.x War Runner">Apache Tomcat Maven Plugin :: Tomcat 7.x War Runner</a> </li> <li class="none"> <a href="tomcat-maven-archetype/index.html" title="Apache Tomcat Maven Plugin :: Archetype">Apache Tomcat Maven Plugin :: Archetype</a> </li> </ul> <h5>Project Documentation</h5> <ul> <li class="expanded"> <a href="project-info.html" title="Project Information">Project Information</a> <ul> <li class="none"> <strong>About</strong> </li> <li class="none"> <a href="project-summary.html" title="Project Summary">Project Summary</a> </li> <li class="none"> <a href="modules.html" title="Project Modules">Project Modules</a> </li> <li class="none"> <a href="license.html" title="Project License">Project License</a> </li> <li class="none"> <a href="team-list.html" title="Project Team">Project Team</a> </li> <li class="none"> <a href="source-repository.html" title="Source Repository">Source Repository</a> </li> <li class="none"> <a href="issue-tracking.html" title="Issue Tracking">Issue Tracking</a> </li> <li class="none"> <a href="mail-lists.html" title="Mailing Lists">Mailing Lists</a> </li> <li class="none"> <a href="dependency-management.html" title="Dependency Management">Dependency Management</a> </li> <li class="none"> <a href="dependencies.html" title="Dependencies">Dependencies</a> </li> <li class="none"> <a href="dependency-convergence.html" title="Dependency Convergence">Dependency Convergence</a> </li> <li class="none"> <a href="integration.html" title="Continuous Integration">Continuous Integration</a> </li> <li class="none"> <a href="plugin-management.html" title="Plugin Management">Plugin Management</a> </li> <li class="none"> <a href="plugins.html" title="Project Plugins">Project Plugins</a> </li> <li class="none"> <a href="distribution-management.html" title="Distribution Management">Distribution Management</a> </li> </ul> </li> <li class="collapsed"> <a href="project-reports.html" title="Project Reports">Project Reports</a> </li> </ul> <h5>ASF</h5> <ul> <li class="none"> <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How Apache Works">How Apache Works</a> </li> <li class="none"> <a href="http://www.apache.org/foundation/" class="externalLink" title="Foundation">Foundation</a> </li> <li class="none"> <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsoring Apache">Sponsoring Apache</a> </li> <li class="none"> <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks">Thanks</a> </li> </ul> <div id="poweredBy"> <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"> <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /> </a> </div> </div> </div> <div id="bodyColumn" class="content"> <div id="contentBox"> <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/apt-format.html --><div class="section"><h2>Apache Tomcat Maven Plugin<a name="Apache_Tomcat_Maven_Plugin"></a></h2><p>This is the new home for the Tomcat Maven Plugin (previously hosted at Codehaus).</p><p>The version 2.0-beta-1 have the following new features:</p><ul><li>Apache Tomcat7 support</li><li><a href="./executable-war-jar.html">Build an Executable War/Jar</a></li></ul><p>More details in <a href="./jira-report.html">Generated changelog from issue tracker</a>.</p><p>The Tomcat Maven Plugin provides goals to manipulate WAR projects within the <a class="externalLink" href="http://tomcat.apache.org/">Apache Tomcat</a> servlet container.</p><p>Or to run your war project in an embeded Apache Tomcat. The run goal give you the opportunity to develop quickly your application without any huge install to do manually. More details and features: <a href="./run-mojo-features.html">see documentation</a>.</p><div class="section"><h3>groupId and Mojo name change<a name="groupId_and_Mojo_name_change"></a></h3><p>Since version 2.0-beta-1 tomcat mojos has been renamed to tomcat6 and tomcat7 with the same goals.</p><p>You must configure your pom to use this new groupId:</p><div class="source"><pre class="prettyprint"> &lt;pluginManagement&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt; &lt;artifactId&gt;tomcat6-maven-plugin&lt;/artifactId&gt; &lt;version&gt;2.0-beta-1&lt;/version&gt; &lt;/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.0-beta-1&lt;/version&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/pluginManagement&gt;</pre></div><p>Or add the groupId in your settings.xml</p><div class="source"><pre class="prettyprint"> &lt;pluginGroups&gt; .... &lt;pluginGroup&gt;org.apache.tomcat.maven&lt;/pluginGroup&gt; .... &lt;/pluginGroups&gt;</pre></div></div><div class="section"><h3>Goals Overview<a name="Goals_Overview"></a></h3><ul><li><a href="./context-goals.html">Goals to manipulate deployed projects within Tomcat</a></li><li><a href="./container-goals.html">Goals to obtain information from Tomcat</a></li><li><a href="./executable-war-jar.html">Build an Executable War/Jar</a></li></ul></div><div class="section"><h3>Know limitations<a name="Know_limitations"></a></h3><p>Some goals are not yet available in tomcat7 mojo. Those <a href="./container-goals.html">container goals</a> are available with the tomcat6 mojo, you only need to update the manager url in your pom.</p><p>Use <tt>http://localhost:8080/manager/html</tt> rather than the default tomcat6 url.</p></div></div> </div> </div> </div> <footer class="footer"> <div class="container-fluid"> <div class="row span16">Copyright &copy; 2005-2012 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved. </div> <?xml version="1.0" encoding="UTF-8"?> <div class="row span16">Apache Tomcat, Tomcat, Apache Maven, Maven, Apache, the Apache feather, and the Apache Tomcat project logo are trademarks of the Apache Software Foundation.</div> </div> </footer> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10