2014-08-27 2 views
1

WSO2 Developer Studio (버전 3.7.0)를 사용하여 "ESB Config Project"에 시퀀스가있는 WSO2 ESB 프록시 서비스를 만들었습니다.이 프록시 서비스는 다음 위치에있는 wsdl 파일을 사용합니다. "레지스트리 자원 프로젝트". 필자는 .car 파일 (프록시 서비스, 시퀀스 및 리소스 포함)을 생성하기 위해 "Composite Application Project"를 만들었고이 파일을 WSO2 ESB 설치에 성공적으로 배포했습니다.WSO2ESB - Maven을 사용하여 CAR 파일 작성

이제 maven 명령을 사용하여 .car 파일을 생성 (배포)하려고합니다.

나는 먼저이 해결책을 시도했다 : https://docs.wso2.com/display/DVS370/Deploying+a+CAR+File+with+the+Maven+Plug-In. 명령을 내 ESB 구성 프로젝트에 "MVN 깨끗한 설치"를 실행할 때 , 나는이 오류를 얻을 :

<directory>target/capp</directory> 
<plugins> 
    <plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>exec-maven-plugin</artifactId> 
    <version>1.2</version> 
    <extensions>true</extensions> 
    <executions> 
     <execution> 
     <id>install</id> 
     <phase>install</phase> 
     <goals> 
      <goal>exec</goal> 
     </goals> 
     <configuration> 
      <executable>mvn</executable> 
      <workingDirectory>${project.build.directory}</workingDirectory> 
      <arguments> 
      <argument>clean</argument> 
      <argument>install</argument> 
      <argument>-Dmaven.test.skip=${maven.test.skip}</argument> 
      </arguments> 
     </configuration> 
     </execution> 
... 
: 실제로

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory ([ESB Config Project Path]\target\capp). 
Please verify you invoked Maven from the correct directory. -> [Help 1] 

를 설치 목표는 "대상/CAPP"디렉토리에 실행되도록 구성되어 있습니다 여기에 제안

그런 다음 내가는 "메이븐 멀티 모듈 프로젝트"를 만들려고 : maven build for WSo2 artifacts을,하지만 난 그것을 작동하게하는 모든 솔루션 발견되지 않았다

을이 문서 (https://docs.wso2.com/display/DVS310/Using+Maven+with+Developer+Studio?src=search)의 단계에 따라를, 내가 만든 "Maven Mul ti Module Project "를 선택하고 구성, 자원 및 복합 프로젝트를 하위 항목으로 선택했습니다. 그런 다음 "mvn clean install"명령을 실행했지만 ESB Config Project (대상/capp 폴더의 POM 없음)에서 오류가 계속 발생했습니다.

실제로 이러한 오류에 대한 정보를 찾지 못했고 왜 WSO2로 문서화 된 솔루션이 저에게 맞지 않는지 이해할 수 없습니다.

아무에게도 제안 사항이 있습니까? WSO2 Developer Studio는 .car 파일을 어떻게 생성합니까?

감사

답변

0

나는 마침내 .car 파일을 생성하고 받는다는 멀티 모듈 프로젝트를 만드는 succeded.

WSO2 Developer Studio 3.7.0을 사용하여 모든 메이븐 프로젝트를 만들려고했지만 예제에서는 버전 3.2.0을 사용한다고합니다. WSO2의 메이븐 플러그인 버전이 변경됨에 따라 이제는 플러그인 v2.0.4로 메이븐 설치를 실행하여 나에게 잘 돌아갑니다.

그리고 maven 다중 모듈 프로젝트는 마침내 모듈이있는 maven 프로젝트이기 때문에 괜찮습니다.

1

이 문제에 대한 또 다른 대답을 발견했습니다. exec-maven-plugin 버전은 버그가있는 것 같습니다. WSO2 Developer Studio 3.7.0은 프로젝트를 생성 할 때 버그가있는 버전 (1.2)을 추가합니다. exec-maven-plugin says cannot run specified program, even though it is on the PATH

: 보완 정보로이보기

<groupId>org.codehaus.mojo</groupId> 
<artifactId>exec-maven-plugin</artifactId> 
<version>1.4.0</version> 

:

<groupId>org.codehaus.mojo</groupId> 
<artifactId>exec-maven-plugin</artifactId> 
<version>1.2</version> 

에 : 당신은 단지에서 이슈를 변경해야