Created
February 4, 2015 22:24
-
-
Save eddumelendez/a0759e4ed10a9c3fa890 to your computer and use it in GitHub Desktop.
Deploy in Tomcat using maven
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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