I upgraded from springboot 2.7.6 to springboot 3.0.0;I have a maven based multi module project
In my main module I have:
<dependencyManagement>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>3.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencyManagement>
In one of my module I need to use jaxb. So I added in my module the following:
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</dependency>
As far as I understood by reading here https://docs.spring.io/spring-boot/docs/3.0.0/reference/htmlsingle/#appendix.dependency-versions in my child module I should have the version 4.0.1 of jaxb-runtime but, by seeing the dependency tree I see the versione 2.3.5. Any idea?
Always related to this, it seems that some libraries are not inherited by sub-module. In my maven dependencyManagement tag I had to add:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-client</artifactId>
<version>6.0.0</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>3.10.8</version>
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>3.0.2</version>
</dependency>
With the previous version of springboot (2.7.6) all worked pretty good and I had to add none of the previous dependencies. All of them were inherited by spring boot bom
Do you have any tip or suggestion?
Thank you
Angelo
UPDATE MAVEN VERSION
This is my environment:
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /home/angelo/apache-maven
Java version: 17.0.1, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-17.0.1
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-56-generic", arch: "amd64", family: "unix"