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

The managed dependency version through Camel Spring Boot BOM for com.google.guava:guava is from 2015

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.0
    • Fix Version/s: 3.8.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Consider the following sample application POM:

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      
          <modelVersion>4.0.0</modelVersion>
      
          <groupId>com.foo</groupId>
          <artifactId>bar</artifactId>
          <version>0.1.0-SNAPSHOT</version>
      
          <dependencyManagement>
              <dependencies>
                  <!-- Camel BOM -->
                  <dependency>
                      <groupId>org.apache.camel.springboot</groupId>
                      <artifactId>camel-spring-boot-bom</artifactId>
                      <version>3.7.0</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
              </dependencies>
          </dependencyManagement>
      
          <dependencies>
              <dependency>
                  <groupId>com.google.guava</groupId>
                  <artifactId>guava</artifactId>
              </dependency>
          </dependencies>
      
      </project>
      

      Then you would inherit the managed dependency version 19.0 released in 2015:

      Bar.java
      $> mvn dependency:tree
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ----------------------------< com.foo:bar >-----------------------------
      [INFO] Building bar 0.1.0-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO] 
      [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ bar ---
      [INFO] com.foo:bar:jar:0.1.0-SNAPSHOT
      [INFO] \- com.google.guava:guava:jar:19.0:compile
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  1.190 s
      [INFO] Finished at: 2021-01-15T08:19:47+01:00
      [INFO] ------------------------------------------------------------------------
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bvahdat Babak Vahdat
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: