-
Notifications
You must be signed in to change notification settings - Fork 82
Updated pom.xml by Safer #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
See details in issue #204 |
WalkthroughThe Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
pom.xml
(2 hunks)
🔇 Additional comments (1)
pom.xml (1)
8-8
: No child POMs reference the old parent versionA recursive scan of every pom.xml’s
<parent>
block didn’t find any remaining<version>2.1.0</version>
entries. There are no downstream POMs out of sync after the downgrade to 2.0.3. You’re clear to proceed.
@@ -18,7 +18,7 @@ | |||
<javax-servlet.version>4.0.1</javax-servlet.version> | |||
<logstash-logback.version>5.3</logstash-logback.version> | |||
<spring.version>6.2.8</spring.version> | |||
<spring.boot.version>3.5.3</spring.boot.version> | |||
<spring.boot.version>3.3.2</spring.boot.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify that Spring Boot 3.3.2 actually exists and matches Spring Framework 6.2.8
<spring.boot.version>3.3.2</spring.boot.version>
is currently unreleased (the latest GA as of July 2025 is 3.2.x).
If 3.3.2 is not available on Maven Central, the build will fail.
Even if it exists, ensure its managed Spring Framework version aligns with the manually-pinned <spring.version>6.2.8
; overriding Boot’s BOM can cause classpath drift and security regressions.
🏁 Script executed:
#!/bin/bash
# Quick availability check – returns HTTP 200 only if the artifact exists
set -e
url="https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter/3.3.2/"
status=$(curl -o /dev/null -s -w "%{http_code}" "$url")
echo "HTTP status for Spring Boot 3.3.2: $status (expect 200)"
Length of output: 348
🏁 Script executed:
#!/bin/bash
set -e
BOM_URL="https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-dependencies/3.3.2/spring-boot-dependencies-3.3.2.pom"
echo "Fetching Spring Boot BOM from $BOM_URL"
pom=$(curl -s "$BOM_URL")
spring_framework_version=$(echo "$pom" |
sed -n 's:.*<spring-framework.version>\(.*\)</spring-framework.version>.*:\1:p'
)
echo "Spring Framework version managed by Spring Boot 3.3.2: $spring_framework_version"
Length of output: 207718
Align Spring Framework version with Spring Boot BOM
- Spring Boot 3.3.2 is available on Maven Central.
- Its spring-boot-dependencies BOM pins
<spring-framework.version>
to 6.1.11. - Your manual override
<spring.version>6.2.8</spring.version>
will override the BOM, causing classpath drift and risking incompatibilities or security regressions.
Suggested fixes:
- Remove the manual
<spring.version>
override and rely on the BOM’s 6.1.11, or - Upgrade to a Spring Boot release that manages Spring Framework 6.2.x (e.g. 3.4.x when available) if you require 6.2.8.
🤖 Prompt for AI Agents
In pom.xml at line 21, the Spring Framework version is manually overridden to
6.2.8, which conflicts with the Spring Boot 3.3.2 BOM that manages version
6.1.11. To fix this, remove the manual <spring.version> override from the
pom.xml and rely on the Spring Boot BOM to manage the Spring Framework version,
ensuring compatibility and avoiding classpath issues.
This PR was automatically created by Safer, an open-source tool that updates vulnerable dependencies with compatible and more secure versions.
Analyzed commit: 24dac28
File updated: pom.xml
Vulnerabilities reduced: 105 -> 26
Let us know if you have questions.
Thanks,
Safer Bot
Summary by CodeRabbit