MavenTomcatPlugin

HomePage | RecentChanges | Preferences

The [Tobago] page has an example of using the Maven Tomcat Plugin.

~/svn/maven/
$ svn co https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/maven-tomcat-plugin    mojo/mojo-sandbox/maven-tomcat-plugin
$ cd mojo/mojo-sandbox/maven-tomcat-plugin
$ mvn install

<servers>
      <server> 
         <username>user</username>
         <password>pass</password>
         <id>tomcat</id>
      </server>
   </servers>

            <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>tomcat-maven-plugin</artifactId>
               <version>1.0-SNAPSHOT</version>
               <configuration>
                  <server>tomcat</server>
                  <update>true</update>
                  <!--url>change if not http://localhost:8080/manager</url-->
               </configuration>
            </plugin>

And then cd to a directory containing a war packaged project

$ mvn tomcat:deploy

$ mvn tomcat:undeploy

References


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited December 30, 2005 1:37 pm by WendySmoak (diff)
Search: