2011-08-08 4 views
2

Maven 3.0.3을 사용하고 있습니다. 임베디드 Tomcat 서버를 구동하기 위해 Maven Cargo 플러그인을 사용할 수있는 방법이 있습니까? 지금 당장은 직접 설치해야 할 것 같습니다. 나는 시도하고 "포함"할 수있는 컨테이너 유형을 변경할 때 나는임베디드 Tomcat 서버를 사용하려면 Maven Cargo를 어떻게 설정해야합니까?

[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.1.2:run (default-cli) on project jx: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.1.2:run failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat6x], type = [embedded]], configuration type [standalone]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [Help 1] 

것은 내가 사용하는 구성이었다 ...

      <plugins> 
            <plugin> 
              <groupId>org.codehaus.cargo</groupId> 
              <artifactId>cargo-maven2-plugin</artifactId> 
              <configuration> 
                <container> 
                  <containerId>tomcat6x</containerId> 
                  <type>embedded</type> 
                </container> 

                <configuration> 
                  <properties> 
                    <cargo.servlet.port>8080</cargo.servlet.port> 
                    <cargo.logging>high</cargo.logging> 
                  </properties> 

어떤 도움에 감사드립니다 ...이 오류가 발생합니다. 메이븐 임베디드 Tomcat 플러그인을 사용하지 않는 이유는 다중 배포 아티팩트를 지원하지 않기 때문입니다. 감사합니다. - Dave

답변

0

t7mp 플러그인이 대안이 될 수 있습니까? Overview of the configuration options은 여러 웹 응용 프로그램을 배포하는 방법과 공유 라이브러리를 구성하는 방법을 보여줍니다. 내가 아는 한 현재 버전은 maven 중앙에서 사용할 수 없으므로 github에서 다운로드하여 직접 빌드하고 배포해야합니다.

target/tomcat 폴더를 실행하면 지정된 tomcat 6 또는 7 버전의 libs로 채워지고 동일한 jvm에서 새 클래스 로더를 사용하여 부트 스트랩됩니다.

관련 문제