Skip to content

Boms are not usable #4107

Description

@MelleD

Version

6.1.0

What happened?

When adding apache-jena-libs or 'jena-bom' to a Maven paren tom project , the Spring version is overriden ,y apache shiro import.
This makes the current BOM/parent setup effectively unusable in any project that needs to control its own Spring version.

Steps to Reproduce:

Create a maven project and import

<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/xsd/maven-4.0.0.xsd">

   <modelVersion>4.0.0</modelVersion>

   <parent>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-parent</artifactId>
      <version>4.1.0</version>
   </parent>
   <dependencyManagement>
      <dependencies>
       <dependency>
               <groupId>org.apache.jena</groupId>
               <artifactId>jena-bom</artifactId>
               <version>${jena.version}</version>
               <type>pom</type>
            <scope>import</scope>
         </dependency>

Run mvn dependency:tree or mvn help:effective-pom.

and see that spring web ist 5.x.x instead of 7.x.x

Relevant output and stacktrace

Are you interested in making a pull request?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions