【发布时间】: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 配置项目和复合应用程序项目。
为什么会失败?
手动部署汽车的正确方法是什么?
【问题讨论】: