带有JBoss Fuse 6.2的Apache Camel无法执行目标org.apache.camel:camel-maven-plugin

时间:2016-06-05 14:45:53

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

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

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

[错误]无法执行目标org.apache.camel:camel-maven-plugin:2.15.1.redhat-621084:在项目ncbs-cust上运行(default-cli):执行default-cli of goal org。 apache.camel:camel-maven-plugin:2.15.1.redhat-621084:运行失败:插件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:找不到工件org.apache。 commons:commons-parent:pom:22-redhat-2 in release.fusesource.org(http://repo.fusesource.com/nexus/content/repositories/releases) - > [帮助1]

2 个答案:

答案 0 :(得分:2)

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

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

答案 1 :(得分:0)

我发现:

HttpWebRequest r = (HttpWebRequest)WebRequest.Create("http://google.com");
r.Headers = "GET / HTTP/1.1\r\nHost: www.google.com\r\n\r\n"

GET / HTTP/1.1
Host: www.google.com

来自<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

帮助?

  • 道格