diff --git a/models/spring-ai-huggingface/pom.xml b/models/spring-ai-huggingface/pom.xml
index 9412e970d5d..fae8ecbd802 100644
--- a/models/spring-ai-huggingface/pom.xml
+++ b/models/spring-ai-huggingface/pom.xml
@@ -47,11 +47,11 @@
${project.parent.version}
-
+
io.swagger.core.v3
- swagger-annotations
- 2.2.15
+ swagger-annotations-jakarta
+ ${swagger-annotations.version}
diff --git a/spring-ai-client-chat/pom.xml b/spring-ai-client-chat/pom.xml
index 1ac74af4b37..5253a775a01 100644
--- a/spring-ai-client-chat/pom.xml
+++ b/spring-ai-client-chat/pom.xml
@@ -51,7 +51,7 @@
io.swagger.core.v3
- swagger-annotations
+ swagger-annotations-jakarta
${swagger-annotations.version}
diff --git a/spring-ai-model/pom.xml b/spring-ai-model/pom.xml
index b90f76db1e9..70874f2d865 100644
--- a/spring-ai-model/pom.xml
+++ b/spring-ai-model/pom.xml
@@ -112,7 +112,7 @@
io.swagger.core.v3
- swagger-annotations
+ swagger-annotations-jakarta
${swagger-annotations.version}