diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 8747bf73299..13234f44998 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -22,7 +22,7 @@
1.8
UTF-8
0.31.1
- 2.3.7
+ 2.4.0
3.5.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 84367878445..2e660da4a45 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -22,7 +22,7 @@
1.8
UTF-8
0.31.1
- 2.3.7
+ 2.4.0
3.5.0