You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/08/21 12:29:00 UTC
[jira] [Commented] (CAMEL-15443) camel-spring-boot-dependencies
includes all Spring Framework but spring-jcl
[ https://issues.apache.org/jira/browse/CAMEL-15443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17181855#comment-17181855 ]
Claus Ibsen commented on CAMEL-15443:
-------------------------------------
See the spring boot examples where you import SB before Camel
https://github.com/apache/camel-spring-boot-examples/blob/master/camel-example-spring-boot-activemq/pom.xml
> camel-spring-boot-dependencies includes all Spring Framework but spring-jcl
> ---------------------------------------------------------------------------
>
> Key: CAMEL-15443
> URL: https://issues.apache.org/jira/browse/CAMEL-15443
> Project: Camel
> Issue Type: Bug
> Components: camel-spring-boot-starters
> Affects Versions: 3.4.2
> Reporter: Hack Kampbjørn
> Priority: Major
>
> The {{camel-spring-boot-dependencies}} lists all the different camel spring boot starters and a bunch of other dependencies. Include Spring Framework. But it does not include {{spring-jcl}}.
> When using it together with the actual {{spring-framework-bom}} like
> {code:java}
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://maven.apache.org/POM/4.0.0"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <properties>
> <camel.version>3.4.2</camel.version>
> <spring-framework.version>5.2.8.RELEASE</spring-framework.version>
> </properties>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>org.apache.camel.springboot</groupId>
> <artifactId>camel-spring-boot-dependencies</artifactId>
> <version>${camel.version}</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-framework-bom</artifactId>
> <version>${spring-framework.version}</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
> </dependencies>
> </dependencyManagement>
> </project>{code}
> It results in different versions of Spring Framework:
> {noformat}
> [WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireSameVersions failed with message:
> Found entries with different versions
> Entries with version 5.2.7.RELEASE
> - org.springframework:spring-core:jar (dependency)
> Entries with version 5.2.8.RELEASE
> - org.springframework:spring-jcl:jar (dependency)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)