Skip to content

CAMEL-23261 Remove usage of ProjectDependenciesResolver (deprecated)#1731

Merged
Croway merged 1 commit intoapache:mainfrom
cunningt:deprecationwarnings
Mar 27, 2026
Merged

CAMEL-23261 Remove usage of ProjectDependenciesResolver (deprecated)#1731
Croway merged 1 commit intoapache:mainfrom
cunningt:deprecationwarnings

Conversation

@cunningt
Copy link
Copy Markdown
Contributor

CAMEL-23261 The use of ProjectDependenciesResolver is causing deprecation warnings in camel-spring-boot-generator-maven-plugin because it was deprecated in maven 3.9.8 : https://maven.apache.org/ref/3.9.8/apidocs/deprecated-list.html

Remove it by adding a ProjectBuildRequest. Test to make sure that we are getting the similar results as the use of ProjectDependenciesResolver. I've kept the logic as similar as possible to minimize any changes in results. Do dependency resolution so that we return transitive dependencies like we were when we were using ProjectDependenciesResolver.

BEFORE :

[INFO] /Users/tcunning/src/community/camel-spring-boot/tooling/camel-spring-boot-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/SpringBootStarterMojo.java: /Users/tcunning/src/community/camel-spring-boot/tooling/camel-spring-boot-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/SpringBootStarterMojo.java uses or overrides a deprecated API.
[INFO] /Users/tcunning/src/community/camel-spring-boot/tooling/camel-spring-boot-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/SpringBootStarterMojo.java: Recompile with -Xlint:deprecation for details.

AFTER
(no deprecation warning)

Co-authored-by: Claude Sonnet 4.5 noreply@anthropic.com

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
@Croway Croway merged commit ebbaad5 into apache:main Mar 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants