diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 38d9a0b57fc..28446fb3240 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -23,7 +23,7 @@
1.8
UTF-8
0.31.1
- 2.41.0
+ 2.42.0
3.42.0
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 4409a52b320..e60c50308b6 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -23,7 +23,7 @@
1.8
UTF-8
0.31.1
- 2.41.0
+ 2.42.0
3.42.0