← All tasks
javaredisson/redisson #7228Not a task: not reproduced

redisson-spring-boot-starter 4.6.1: consider removing redundant BOM imports already managed by spring-boot-dependencies

envgap__redisson__redisson-7228

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
01fd975267d7c77823a1480cfa6d1f47254e8524
Manifest
redisson-spring/redisson-spring-boot-starter/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

redisson/redisson #7228 · read the original issue
## Description

When consuming `redisson-spring-boot-starter:4.6.1` alongside `spring-boot-starter-parent` (Spring Boot 4.1.0), Maven emits a large number of warnings during dependency collection, for example:

```
Ignored POM import for: org.junit.jupiter:junit-jupiter:jar:6.0.1@compile as already imported org.junit.jupiter:junit-jupiter:jar:6.0.3@compile.
Ignored POM import for: com.fasterxml.jackson.core:jackson-core:jar:2.21.3@compile as already imported com.fasterxml.jackson.core:jackson-core:jar:2.21.4@compile.
```

## Root Cause

The `redisson-spring-boot-starter` POM's `<dependencyManagement>` section imports:
- `spring-boot-dependencies:4.1.0` — which already manages `junit-bom:6.0.3` and Jackson `2.21.4`
- `junit-bom:6.0.1` — explicitly, which is an older version than what `spring-boot-dependencies` already brings in

Since `spring-boot-dependencies` is imported first (either via the starter's own POM or the user's parent), Maven ignores the later conflicting BOM imports and emits warnings for each managed artifact.

## Suggestion

You may want to consider removing the explicit `junit-bom` import from `redisson-spring-boot-starter`'s `dependencyManagement`, since both JUnit and Jackson are already managed by `spring-boot-dependencies` which is imported in the same POM. This would eliminate the warnings for users who inherit from `spring-boot-starter-parent`.

## Environment

- `redisson-spring-boot-starter`: 4.6.1
- Spring Boot: 4.1.0
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]