[ 
https://issues.apache.org/jira/browse/CAMEL-15443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17181859#comment-17181859
 ] 

Hack Kampbjørn commented on CAMEL-15443:
----------------------------------------

This is a reduced example. The actual two bom includes many other dependencies 
too. It's not that easy to just swap the import order.

In our Spring Boot application we do that. Import first Spring Boot 
dependencies and then camel.

 
But in our legacy application we do it the other way around. First the legacy 
dependencies which includes camel. And this also forces some downgrades before 
importing Spring Boot dependencies.
 
If you want this {{camel-spring-boot-dependencies}} to be useful the order 
should not result in different versions.

I prefer a proper camel-spring-boot-bom (CAMEL-15428) without the extra 
dependencies.

> 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)

Reply via email to