MAVEN Configuration One-click deployment of remote Tomcat

Source: Internet
Author: User
Tags connection reset

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.