使用maven将CAR部署到ESB



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

为什么会失败?

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

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

最新更新