2017-09-14 2 views
0

원격 서버에서 전쟁을 실행하기 위해 cargo maven 플러그인을 사용하려고하는데 다음과 같이 표시됩니다. [ERROR] 목표를 실행하지 못했습니다. org.codehaus.cargo : cargo-maven2-plugin : 1.6.4 : (시작 - 컨테이너) 프로젝트 portnet에 시작 : 로컬 컨테이너 시작할 수 있습니다 -> [도움말 1]원격 서버의 Cargo Maven

나는 울부 짖는 구성을 가지고 :

  <plugin> 
      <groupId>org.codehaus.cargo</groupId> 
      <artifactId>cargo-maven2-plugin</artifactId> 
      <version>1.6.4</version> 
      <configuration> 
      <wait>false</wait> 
       <container> 
        <containerId>tomcat8x</containerId> 
        <type>remote</type>     
       </container> 

       <configuration> 
        <type>runtime</type> 
        <files> 
         <copy> 
          <file>C:\apache-tomcat-8.5.20\conf\tomcat-users.xml</file> 
          <tofile>conf/tomcat-users.xml</tofile> 
          <configfile>true</configfile> 
          <overwrite>true</overwrite> 
         </copy> 
        </files> 
        <properties> 
         <cargo.hostname>remoteserver</cargo.hostname> 
         <cargo.servlet.port>8180</cargo.servlet.port> 
         <cargo.remote.username>user</cargo.remote.username> 
         <cargo.remote.password>passw</cargo.remote.password>       <cargo.tomcat.manager.url>http://localhost:8180/manager</cargo.tomcat.manager.url> 
       </properties> 
       </configuration> 

      <deployer> 
       <type>remote</type>     
      </deployer> 

      <deployables> 
       <deployable> 
        <type>war</type> 
        <properties> 
          <context>/portnet</context> 
        </properties>  
      </deployable> 
      </deployables> 

     </configuration> 

      <executions> 
       <!-- start server before integration tests --> 
       <execution> 
       <id>start-container</id> 
       <phase>pre-integration-test</phase> 
       <goals> 
        <goal>start</goal> 
       </goals> 
       </execution> 
       <!-- stop server after integration tests --> 
       <execution> 
       <id>stop-container</id> 
       <phase>post-integration-test</phase> 
       <goals> 
        <goal>stop</goal> 
       </goals> 
       </execution> 
      </executions> 
      </plugin> 
    </plugins> 

답변

0

작업 할 경우 원격 서버라면 사용할 수있는이 두 가지화물 목표가 있습니다 :

  • deploy -이 목표는 정의 된 배포 물을 원격 서버에 배포하는 데 사용됩니다.
  • undeploy -이 목표는 원격 서버에서 정의 된 배포 가능 파일을 배포 취소 할 때 사용됩니다.

startstop 단지 로컬 용기에 사용될 수있다 - 그 기간 직접 운반 Maven 플러그인에 의해 제어되는 용기. 당신이 <goal>undeploy</goal><goal>deploy</goal><goal>stop</goal>으로 구성 <goal>start</goal>를 교체 할 경우

는이 오류를 제거 얻어야한다.