#WITHYOU
Lum7671's Weblog
#WITHYOU
Tomcat7, Deploy with Maven3

Maven3를 이용해서 Tomcat7에 배포하는 방법 설명

설정파일 위주로 간략하게 설명을 한다.

참고: http://www.mkyong.com/maven/how-to-deploy-maven-based-war-file-to-tomcat/

Mac의 Homebrew 로 Tomcat7 설치

% brew install homebrew/versions/tomcat7

설치된 위치는 “/usr/local/Cellar/tomcat7/7.0.69” 입니다.

CATALINA_BASE=/usr/local/Cellar/tomcat7/7.0.69/libexec
CATALINA_HOME=/usr/local/Cellar/tomcat7/7.0.69

$CATALINA_HOME/conf/tomcat-users.xml

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