我正在尝试将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。
为什么会失败?
手动部署汽车的正确方法是什么?
答案 0 :(得分:3)
要“手动”部署汽车文件,您只需执行“mvn clean install”并从目标目录复制.car文件并复制到&lt; CARBON_HOME&gt; / repository / deployment / server / carbonapps进行热部署ES app服务器的碳应用程序。