[英]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.