首页 文章

使用maven将CAR部署到ESB

提问于
浏览
0

我正在尝试将CAR文件部署到ESB实例 . 我按照这里的说明进行操作:https://docs.wso2.com/display/DVS370/Deploying+a+CAR+File+with+the+Maven+Plug-In

但是当我运行命令时:

mvn clean deploy -Dmaven.car.deploy.skip=false

我收到许多其他人得到的错误 .

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-deploy-plugin:2.4

check that the following section of the pom.xml is present and correct:

<distributionManagement>
  <!-- use the following if you're not using a snapshot version. -->
<repository>
<id>repo</id>
<name>Repository Name</name>
<url>scp://host/path/to/repo</url>
</repository>
<!-- use the following if you ARE using a snapshot version. -->
<snapshotRepository>
<id>repo</id>
<name>Repository Name</name>
<url>scp://host/path/to/repo</url>
</snapshotRepository>
</distributionManagement>

Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated

我不想将它部署到存储库,除非我理解这个错误 . 我创建了一个Maven多模块项目来打包Java Mediator,ESB Config项目和Composite Application Project .

为什么这会失败?

手动部署汽车的正确方法是什么?

1 回答

  • 3

    要“手动”部署汽车文件,您只需执行“mvn clean install”并从目标目录复制.car文件并复制到<CARBON_HOME> / repository / deployment / server / carbonapps,然后将碳应用程序热部署到ESB服务器 .

相关问题