求大牛帮我解决下这个问题,困扰我很久了,感激不尽。

愤怒的魔兽 发布于 2017/02/12 12:01
阅读 517
收藏 0

报错信息:[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.138 s
[INFO] Finished at: 2017-02-12T11:54:28+08:00
[INFO] Final Memory: 20M/219M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project webGateTakeout: Cannot invoke Tomcat manager: Connection reset by peer: socket write error -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

pom.xml的build:<build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <version>3.0</version>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                </configuration>
            </plugin>
              <plugin>
              <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                <mode>war</mode>
                <url>http://localhost:8080/manager</url>
                <server>TomcatServer</server>
                <path>/wtpwebapps</path>
                  </configuration>
                </plugin>
        </plugins>
    </build>

tomcat的tomcat-user.xml:

<role rolename="manager"/>
 <role rolename="manager-gui"/>
 <role rolename="admin"/>
 <user username="admin" password="admin" roles="admin,manager,manager-gui"/>

maven的settings.xml:  <server>
                 <id>TomcatServer</id>
                <username>admin</username>
                    <password>admin</password>
      </server>

求解啊

加载中
返回顶部
顶部