diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-oauth2-oidc-client/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-oauth2-oidc-client/pom.xml
index e59f26b07fc..7ae182e2831 100644
--- a/spring-boot-project/spring-boot-starters/spring-boot-starter-oauth2-oidc-client/pom.xml
+++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-oauth2-oidc-client/pom.xml
@@ -29,6 +29,12 @@
org.springframework.security
spring-security-oauth2-client
+
+
+ javax.mail
+ javax.mail-api
+
+
org.springframework.security