简体   繁体   English

camel-activemq 组件和camel-http4 组件版本不兼容

[英]Incompatible versions of camel-activemq component and camel-http4 component

I have a Spring-boot Camel application that receives HTTP requests and has to put them on an ActiveMQ.我有一个 Spring-boot Camel 应用程序,它接收 HTTP 请求并且必须将它们放在 ActiveMQ 上。

I am using Maven to handle my dependencies, but I have a problem with the Camel-ActiveMQ component.我正在使用 Maven 来处理我的依赖项,但是 Camel-ActiveMQ 组件有问题。

When using camel I am trying to keep the versions of different components the same.使用骆驼时,我试图保持不同组件的版本相同。 So far version 2.24.2 was working fine until I wanted to add a route with an ActiveMQ endpoint.到目前为止,版本 2.24.2 运行良好,直到我想添加一个带有 ActiveMQ 端点的路由。 There is no Camel-ActiveMQ 2.24.2 version in the Maven repositories that I am looking in.我正在查看的 Maven 存储库中没有 Camel-ActiveMQ 2.24.2 版本。

I can not find a version of the Camel-ActiveMQ artifact that matches my other camel-components.我找不到与我的其他骆驼组件相匹配的骆驼 ActiveMQ 工件版本。

Some links to the components that I am using: - Camel-ActiveMQ -Camel-HTTP4 - Camel-Spring-Boot-Starter我正在使用的组件的一些链接: - Camel-ActiveMQ -Camel-HTTP4 - Camel-Spring-Boot-Starter

I have tried using mixed versions of Camel Components (eg 2.24.2 for all components but 3.0.0-RC1 for ActiveMQ).我尝试过使用混合版本的 Camel 组件(例如,2.24.2 用于所有组件,但 3.0.0-RC1 用于 ActiveMQ)。 This causes class loading exceptions on runtime due to multiple versions of classes being available.由于多个版本的类可用,这会导致 class 在运行时加载异常。

I have found a versions that exist for the rest of my components and Camel-ActiveMQ (3.0.0-M1) but this again gives classloading exceptions when running the applications我找到了我的组件的 rest 和 Camel-ActiveMQ (3.0.0-M1) 存在的版本,但这在运行应用程序时再次给出类加载异常

Where can I find compatible versions?我在哪里可以找到兼容的版本?

Reading further I found the following in the Camel-ActiveMQ documentation:进一步阅读,我在Camel-ActiveMQ 文档中发现了以下内容:

SPRING BOOT AUTO-CONFIGURATION
When using Spring Boot make sure to use the following Maven dependency to have support for auto configuration:

<dependency>
  <groupId>org.apache.camel</groupId>
  <artifactId>camel-activemq-starter</artifactId>
  <version>x.x.x</version>
  <!-- use the same version as your Camel core version -->
</dependency>

There is no 2.24.2 version available, but running with 3.0.0-M1 seems to work.没有可用的 2.24.2 版本,但运行 3.0.0-M1 似乎可以工作。 Seems that the Camel-Spring-Boot functionality is kinda new, and will force me to use a 3.x version of camel.似乎 Camel-Spring-Boot 功能有点新,将迫使我使用 3.x 版本的骆驼。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM