【问题标题】:Deploying CAR to ESB using maven使用 maven 将 CAR 部署到 ESB
【发布时间】:2015-12-09 20:46:21
【问题描述】:

我正在尝试将 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 调解器、ESB 配置项目和复合应用程序项目。

为什么会失败?

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

【问题讨论】:

    标签: maven wso2 wso2esb


    【解决方案1】:

    要“手动”部署汽车文件,您可以简单地执行“mvn clean install”并从目标目录复制 .car 文件并复制到热部署的 /repository/deployment/server/carbonapps carbon 应用到 ESB 服务器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-08
      • 1970-01-01
      • 1970-01-01
      • 2013-03-27
      相关资源
      最近更新 更多