【问题标题】:Apache Camel with JBoss Fuse 6.2 failed to execute goal org.apache.camel:camel-maven-plugin带有 JBoss Fuse 6.2 的 Apache Camel 无法执行目标 org.apache.camel:camel-maven-plugin
【发布时间】:2016-06-05 14:45:53
【问题描述】:

当尝试执行基于 JBoss Fuse 6.2 的项目(本地骆驼上下文)时,它会抛出如下错误:

未能执行目标 org.apache.camel:camel-maven-plugin:2.15.1.redhat-621084:run

[错误] 无法在项目 ncbs-cust 上执行目标 org.apache.camel:camel-maven-plugin:2.15.1.redhat-621084:run (default-cli):执行目标 org 的 default-cli。 apache.camel:camel-maven-plugin:2.15.1.redhat-621084:run failed: Plugin org.apache.camel:camel-maven-plugin:2.15.1.redhat-621084 或其依赖项之一无法解析: 无法在 org.apache.camel:camel-maven-plugin:jar:2.15.1.redhat-621084 -> org.apache.maven.reporting:maven-reporting-impl:jar:2.0.5 -> 收集依赖项org.apache.maven.doxia:doxia-site-renderer:jar:1.0 -> org.apache.velocity:velocity:jar:1.5 -> commons-collections:commons-collections:jar:3.2.1.redhat-7:无法读取 commons-collections:commons-collections:jar:3.2.1.redhat-7 的工件描述符:在 release.fusesource 中找不到工件 org.apache.commons:commons-parent:pom:22-redhat-2。 org (http://repo.fusesource.com/nexus/content/repositories/releases) -> [帮助 1]

【问题讨论】:

  • 你是否在 pom 中添加了 apache commons?
  • 您能添加您的 POM.xml 吗?

标签: maven jboss apache-camel maven-3 jbossfuse


【解决方案1】:

为 Red Hat 添加另一个插件库解决了这个问题。

<pluginRepository>
  <id>redhat</id>
  <url>https://maven.repository.redhat.com/ga/</url>
  <releases>
    <enabled>true</enabled>
  </releases>
</pluginRepository>

【讨论】:

    【解决方案2】:

    我发现:

    <dependency>
       <groupId>org.apache.commons</groupId>
       <artifactId>commons-parent</artifactId>
       <version>22-redhat-2</version>
       <type>pom</type>
    </dependency>
    

    在我的 Artifactory 服务器缓存中来自 http://repository.jboss.org/nexus/content/groups/public/。然而,我只是看了看,它已经不存在了。

    是否更改camel-maven-plugin 的版本:

    <parent>
       <groupId>org.apache.camel</groupId>
       <artifactId>maven-plugins</artifactId> 
       <version>2.15.1.redhat-621107</version>
    </parent>
    <artifactId>camel-maven-plugin</artifactId>
    

    帮助?

    • 道格

    【讨论】:

      猜你喜欢
      • 2022-09-28
      • 2014-07-20
      • 2016-03-15
      • 2023-03-17
      • 1970-01-01
      • 2022-11-26
      • 2023-02-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多