pom.xml
<
build
>
<
plugins
>
<
plugin
>
<
groupId
>org.apahce.tomcat.maven</
groupId
>
<
artifactId
>tomcat7-maven-plugin</
artifactId
>
<
version
>2.2</
version
>
<
configuration
>
<
server
>tomcat</
server
>
<path>/web</path>
</
configuration
>
</
plugin
>
</
plugins
>
</
build
>
tomcat-user.xml
<
user
username="admin" password="password" roles="admin,manager,manager-script"/>
setting.xml
<
servers
>
<server>
<
id
>tomcat</
id
>
<
username
>admin</
username
>
<
password
>password</
password
>
<server>
<
servers
>
deploy:
tomcat7:redeploy -Dmaven.test.skip=true