Skip to content

Instantly share code, notes, and snippets.

@ncarroll
Created February 12, 2012 06:16
Show Gist options
  • Save ncarroll/1806681 to your computer and use it in GitHub Desktop.
Save ncarroll/1806681 to your computer and use it in GitHub Desktop.
Maven configuration for deployment to Tomcat server
<project>
<build>
<plugins>
<plugin>
<groupid>org.codehaus.mojo</groupid>
<artifactid>tomcat-maven-plugin</artifactid>
<configuration>
<path>/app</path>
<url>http://hostname.com/manager</url>
<server>deployment.server</server>
</configuration>
</plugin>
</plugins>
</build>
</project>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>deployment.server</id>
<username>tomcat</username>
<password>password</password>
</server>
</servers>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment