diff --git a/samples/java-application-with-resources/pom.xml b/samples/java-application-with-resources/pom.xml
index e178f1265..b118ab7ed 100644
--- a/samples/java-application-with-resources/pom.xml
+++ b/samples/java-application-with-resources/pom.xml
@@ -62,7 +62,7 @@
org.apache.commons
commons-lang3
- 3.12.0
+ 3.18.0
org.junit.jupiter