1. First, you need to configure access permissions for remote tomcat (set access username password)
Http://www.cnblogs.com/liuchao102/p/5519345.html
2. Configure Pom.xml Add Tomcat plugin
<Build> <Finalname>Midou-search</Finalname> <Plugins> <plugin> <groupId>Org.apache.tomcat.maven</groupId> <Artifactid>Tomcat7-maven-plugin</Artifactid> <version>2.2</version> <Configuration> <URL>http://10.10.6.101:8888/manager/text</URL> <Server>Tomcat</Server> <username>Admin</username> <Password>Admin</Password> <Path>/search</Path> </Configuration> </plugin> </Plugins> </Build>
FileName: Project name
Url:tomcat Access Address (note that the manager is behind the text , not html, some articles are written in HTML, I used the error, changed to text to succeed)
Access user name password for server, username, Password:tomcat
Path: Project Access path (not necessarily the same as the project name, my project name and project Access name are not the same) automatically deployed to Tomcat automatically modifies the name of the war package configured for path
3. Error
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-CLI) on project MidouConnection reset by Peer:socket write error -[Help 1]
This needs to be noted that the first deployment when the click on deploy, when Tomcat has been deployed in the current project, you can no longer deploy, or it is reported above this momin wonderful error
Need to click Redeploy
MAVEN Configuration One-click deployment of remote Tomcat