diff --git a/samples/client/petstore/java/resttemplate-withXml/pom.xml b/samples/client/petstore/java/resttemplate-withXml/pom.xml
index c51e2c12043..c3241928b0f 100644
--- a/samples/client/petstore/java/resttemplate-withXml/pom.xml
+++ b/samples/client/petstore/java/resttemplate-withXml/pom.xml
@@ -258,7 +258,7 @@
UTF-8
1.5.17
4.3.9.RELEASE
- 2.10.1
+ 2.21.2
2.6.4
1.0.0
4.12