Hi Thomas,
http://cargo.codehaus.org
It works with Tomcat 5.x.
I experimented the attached script without a deep insight on this plugin
features. Let us know your comments about Cargo.
Regards,
Thomas Chang ha scritto:
> Hi all,
>
> I use maven2. I wonder if there is a mvn-command which can
> deploy/reploy/delete the war to/from Tomcat?
>
> Regards
>
> Thomas
>
>
> ---------------------------------
> Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr
> bietet das neue Yahoo! Mail.
>
----
Giancarlo Frison
http://www.jroller.com/giancarlo
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>web/WEB-INF/web.xml</webXml>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<executions>
<execution>
<id>verify-deploy</id>
<phase>install</phase>
<goals>
<goal>deployer-deploy</goal>
</goals>
</execution>
<execution>
<id>clean-undeploy</id>
<phase>pre-clean</phase>
<goals>
<goal>deployer-undeploy</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Container Configuration -->
<container>
<containerId>tomcat5x</containerId>
<type>remote</type>
</container>
<!-- Configuration to use with the container -->
<configuration>
<type>runtime</type>
<properties>
<cargo.tomcat.manager.url>
http://localhost:8080/manager
</cargo.tomcat.manager.url>
<cargo.remote.username>
tomcat
</cargo.remote.username>
<cargo.remote.password>
tomcat
</cargo.remote.password>
</properties>
</configuration>
<!-- Deployer and Deployables configuration -->
<deployer>
<type>remote</type>
<deployables>
<deployable>
<groupId>'group-id'</groupId>
<artifactId>'id'</artifactId>
<type>war</type>
<pingURL>
http://localhost:8080/<webappName>/frontend/login.htm
</pingURL>
</deployable>
</deployables>
</deployer>
</configuration>
</plugin>
</plugins>
</build>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]