오류
org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project jspCommunity: Cannot invoke Tomcat manager: Connection reset by peer
해결방법
- 나같은 경우, .m2/settings.xml 에서 password 가 잘못입력되어있었다.
<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 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>walwal__manager_text</id>
<username>톰캣웹관리자계정의 로그인아이디</username>
<password>톰캣앱관리자계정의 비밀번호</password>
</server>
</servers>
</settings>
password 확인방법
- putty 접속
- sudo vim /opt/tomcat/latest/conf.tomcat0users.xml
- 확인