使用 WSO2 Developer Studio(版本 3.7.0),我在“ESB 配置项目”中创建了一个带有序列的 WSO2 ESB 代理服务,该代理服务使用位于“注册表资源项目”中的 wsdl 文件。我还创建了一个“复合应用程序项目”来生成我的 .car 文件(包括代理服务、序列和资源),并成功地将这个文件部署到我的 WSO2 ESB 安装中。
现在我正在尝试使用 maven 命令生成(然后部署).car 文件。
我首先尝试了这个解决方案:https ://docs.wso2.com/display/DVS370/Deploying+a+CAR+File+with+the+Maven+Plug-In 。在我的 ESB 配置项目上执行命令“mvn clean install”时,我收到此错误:
[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]
实际上,安装目标被配置为在“target/capp”目录中执行:
<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>
...
然后我尝试创建一个“Maven 多模块项目”,如下所示:maven build for WSo2 artifacts,但我没有找到任何解决方案使其工作:
按照本文档中的步骤(https://docs.wso2.com/display/DVS310/Using+Maven+with+Developer+Studio?src=search),我创建了一个“Maven 多模块项目”,并选择了我的配置, 资源和复合项目作为孩子。然后我启动了“mvn clean install”命令,但仍然在 ESB Config Project 上收到错误(target/capp 文件夹中没有 POM)。
实际上,我只是没有找到有关这些错误的任何信息,并且不明白为什么 WSO2 记录的解决方案对我不起作用。
有人对此有什么建议吗?WSO2 Developer Studio 如何生成 .car 文件?
谢谢