Skip to content

Instantly share code, notes, and snippets.

@eddumelendez
Created February 4, 2015 22:24
Show Gist options
  • Save eddumelendez/a0759e4ed10a9c3fa890 to your computer and use it in GitHub Desktop.
Save eddumelendez/a0759e4ed10a9c3fa890 to your computer and use it in GitHub Desktop.
Deploy in Tomcat using maven
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<server>tomcat</server>
<path>/hello-webapp</path>
<update>true</update>
</configuration>
</plugin>
</plugins>
</build>
<?xml version="1.0" encoding="UTF-8"?>
<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>tomcat</id>
<username>deploy</username>
<password>123456</password>
</server>
</servers>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager-script"/>
<user username="deploy" password="123456" roles="manager-script"/>
</tomcat-users>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment