Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15443

camel-spring-boot-dependencies includes all Spring Framework but spring-jcl

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.4.2
    • Fix Version/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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

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

      It results in different versions of Spring Framework:

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hackmann Hack Kampbjørn
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: