diff --git a/samples/client/petstore/java/jersey2/pom.xml b/samples/client/petstore/java/jersey2/pom.xml
index bf3b975ffcb..22ee72fc006 100644
--- a/samples/client/petstore/java/jersey2/pom.xml
+++ b/samples/client/petstore/java/jersey2/pom.xml
@@ -264,7 +264,7 @@
UTF-8
1.5.18
2.29.1
- 2.6.4
+ 2.12.7.1
1.0.0
4.12