Skip to content

Fix deprecated RequestTrace usage in DefaultMavenVersionResolver#1736

Closed
Safkatul-Islam wants to merge 1 commit intospring-io:mainfrom
Safkatul-Islam:fix-deprecations-1515
Closed

Fix deprecated RequestTrace usage in DefaultMavenVersionResolver#1736
Safkatul-Islam wants to merge 1 commit intospring-io:mainfrom
Safkatul-Islam:fix-deprecations-1515

Conversation

@Safkatul-Islam
Copy link
Copy Markdown

This change replaces direct RequestTrace constructor usage with the supported static factory method, addressing the deprecation noted in #1515.

Fixes #1515

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 17, 2025
@mhalbritter
Copy link
Copy Markdown
Contributor

Thanks for the PR. Please sign-off your commit as documented here.

@mhalbritter mhalbritter added the status: waiting-for-feedback We need additional information before we can continue label Dec 17, 2025
Signed-off-by: Md Safkatul Islam <mrsafkatul.stu24@gmail.com>
@Safkatul-Islam
Copy link
Copy Markdown
Author

Thanks for the reminder!
I’ve signed off the commit and pushed the update. Please let me know if anything else is needed.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Dec 18, 2025
@mhalbritter
Copy link
Copy Markdown
Contributor

Hello!

You changed this line:

RequestTrace requestTrace = new RequestTrace(null);

But there's no deprecation on the constructor?

Those are the deprecation warnings:

[WARNING] .../src/main/java/io/spring/initializr/versionresolver/DefaultMavenVersionResolver.java:[98,17] org.eclipse.aether.spi.locator.ServiceLocator in org.eclipse.aether.spi.locator has been deprecated
[WARNING] .../src/main/java/io/spring/initializr/versionresolver/DefaultMavenVersionResolver.java:[188,24] org.eclipse.aether.spi.locator.ServiceLocator in org.eclipse.aether.spi.locator has been deprecated
[WARNING] .../src/main/java/io/spring/initializr/versionresolver/DefaultMavenVersionResolver.java:[189,17] org.eclipse.aether.impl.DefaultServiceLocator in org.eclipse.aether.impl has been deprecated
[WARNING] .../src/main/java/io/spring/initializr/versionresolver/DefaultMavenVersionResolver.java:[189,75] newServiceLocator() in org.apache.maven.repository.internal.MavenRepositorySystemUtils has been deprecated

@mhalbritter mhalbritter added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Dec 18, 2025
@mhalbritter mhalbritter self-assigned this Dec 18, 2025
@mhalbritter mhalbritter added status: invalid and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix deprecations

3 participants