diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 184e97c319..8402ce1532 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -24,7 +24,7 @@
UTF-8
0.31.1
2.41.0
- 3.40.0
+ 3.42.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index f40536bd52..a39d16f742 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -24,7 +24,7 @@
UTF-8
0.31.1
2.41.0
- 3.40.0
+ 3.42.0