2017/03/22 10:47

MAVEN을 이용한 원격배포(TOMCAT8 버전) Architect



tomcat 8 버전에서의 cargo 플러그인을 이용함 MAVEN 원격배포 !!! 

아래 내용을 plugins 태그안에 넣고 붉은 색 부분만 내 환경에 맞춰 수정하면 됨.. 
실행시에는 cargo:redeploy

---------------------------------------------------------------
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.6.2</version>
<configuration>
<container>
<containerId>tomcat8x</containerId>
                   <type>remote</type>
</container>
<configuration>
                   <type>runtime</type>
<properties>
                          <cargo.hostname>localhost</cargo.hostname>
                          <cargo.remote.username>admin</cargo.remote.username>
                          <cargo.remote.password>password</cargo.remote.password>
<cargo.servlet.port>28080</cargo.servlet.port>
</properties>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
<properties>
<context>/test</context>
</properties>
</deployable>
</deployables>
</configuration>
</plugin>

덧글

댓글 입력 영역