简体   繁体   English

骆驼弹簧启动启动器:org.apache.camel 或 org.apache.camel.springboot groupId?

[英]camel-spring-boot-starter: org.apache.camel or org.apache.camel.springboot groupId?

According to Camel Context starter one can use these:根据Camel Context starter ,可以使用这些:

<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-spring-boot</artifactId>
    <version>${camel.version}</version> <!-- use the same version as your Camel core version -->
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring-boot-starter</artifactId>
    <version>${camel.version}</version> <!-- use the same version as your Camel core version -->
</dependency>

Seems to be no mistake, the artefacts exist in maven too:似乎没有错,maven 中也存在人工制品:
Camel SB Core Starters:: Spring Boot Starter Camel SB Core Starters:: Spring Boot Starter
Spring Boot Starter:: Camel:: Spring Boot Spring Boot Starter:: Camel:: Spring Boot

Should one use both (in same project) or only one?一个人应该同时使用(在同一个项目中)还是只使用一个?
Otherwise when to use one and when another and why?否则何时使用一个,何时使用另一个,为什么?

If you check out Maven Central for both starter definition you will see that the <groupId>org.apache.camel</groupId> is used prior to Camel 3 while <groupId>org.apache.camel.springboot</groupId> is used since Camel 3 and onwards . If you check out Maven Central for both starter definition you will see that the <groupId>org.apache.camel</groupId> is used prior to Camel 3 while <groupId>org.apache.camel.springboot</groupId> is used自Camel 3 起

As such, depending on your Camel version you use, you either should use <groupId>org.apache.camel</groupId> in case you are stuck with Camel 2.x or <groupId>org.apache.camel.springboot</groupId> for Camel 3.x+因此,根据您使用的 Camel 版本,您应该使用<groupId>org.apache.camel</groupId>以防遇到 Camel 2.x 或<groupId>org.apache.camel.springboot</groupId>骆驼 3.x+ 的<groupId>org.apache.camel.springboot</groupId>

Which version of a camel you want to use, depends on them.你想使用哪个版本的骆驼,取决于他们。

Camel 3.0 and onwards use org.apache.camel.springboot Camel 3.0 及更高版本使用org.apache.camel.springboot

Prior to Camel 3.o use org.apache.camel在 Camel 3.o 之前使用org.apache.camel

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

相关问题 缺少工件org.apache.camel:camel-xmljson-JBOSS - Missing artifact org.apache.camel:camel-xmljson - JBOSS org.apache.camel:camel-maven-plugin丢失(Windows 10) - org.apache.camel:camel-maven-plugin is missing (Windows 10) Spring-Camel.How从sftp读取文件(org.apache.camel.ResolveEndpointFailedException:无法解析端点:) - Spring-Camel.How to read files from sftp (org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:) Apache Camel/Spring 中的节流阀 - Throttle in Apache Camel/Spring Spring Boot 2 通过 Apache Camel 连接到 rabbitmq - Spring boot 2 connection to rabbitmq via Apache Camel Apache Camel路由中的Spring Boot属性用法 - Spring Boot properties usage in Apache Camel route Spring Boot Apache Camel Quartz JDBC 调度器 - Spring boot Apache Camel Quartz JDBC scheduler spring boot + apache camel + mongodb集成问题 - spring boot + apache camel + mongodb integration issue Apache Camel抛出java.lang.NoSuchMethodError:org.apache.camel.util.ObjectHelper.notNull - Apache Camel throws java.lang.NoSuchMethodError: org.apache.camel.util.ObjectHelper.notNull 无法通过eclipse找到XML模式名称空间[http://camel.apache.org/schema/spring]的Spring NamespaceHandler - Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring] through eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM