달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2008. 3. 15. 01:25

mvn jetty, cargo 프레임워크2008. 3. 15. 01:25

tomcat에 인스톨하기

mvn jetty:run-war: jetty로 웹 어플리케이션 실행

mvn cargo:start -Dcargo.wait=true: 톰캣에 어플리케이션을 디플로이한다. http://localhost:8081/applicationName-version

maven 2 tomcat plugin 설정(mvn tomcat:run, mvn tomcat:run-war)

<plugin>

<groupId>org.codehaus.mojo</groupId>

<artifactId>tomcat-maven-plugin</artifactId>

<configuration>

<path>/</path>

</configuration>

</plugin>

이미 설치된 톰캣을 사용하고 할 경우 아래의 설정을

<container>

<containerId>${cargo.container}</containerId>

<!--home>${cargo.container.home}</home-->

<zipUrlInstaller>

<url>${cargo.container.url}</url>

<installDir>${installDir}</installDir>

</zipUrlInstaller>

</container>

다음과 같이 변경한다.

<container>

<containerId>${cargo.container}</containerId>

<home>${cargo.container.home}</home>

</container>
:
Posted by codetemplate