diff --git a/bom/application/pom.xml b/bom/application/pom.xml
index 0eff7b8de1c97..3e181b30e7fd6 100644
--- a/bom/application/pom.xml
+++ b/bom/application/pom.xml
@@ -121,7 +121,7 @@
9.2.1
2.3.2
2.3.232
+ and the dependency jts-core needs to be updated in extensions/jdbc/jdbc-h2/runtime/pom.xml -->
42.7.4
3.4.1
8.3.0
diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java
index 41120735be5c1..f4ddf4e5bbfaf 100644
--- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java
+++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java
@@ -340,6 +340,11 @@ default String getEffectiveImage() {
* If errors should be reported at runtime. This is a more relaxed setting, however it is not recommended as it
* means
* your application may fail at runtime if an unsupported feature is used by accident.
+ *
+ * Note that the use of this flag may result in build time failures due to {@code ClassNotFoundException}s.
+ * Reason most likely being that the Quarkus extension already optimized it away or do not actually need it.
+ * In such cases you should explicitly add the corresponding dependency providing the missing classes as a
+ * dependency to your project.
*/
@WithDefault("false")
boolean reportErrorsAtRuntime();
diff --git a/extensions/jdbc/jdbc-h2/runtime/pom.xml b/extensions/jdbc/jdbc-h2/runtime/pom.xml
index fc251ad7afd60..ceb9082bd38f1 100644
--- a/extensions/jdbc/jdbc-h2/runtime/pom.xml
+++ b/extensions/jdbc/jdbc-h2/runtime/pom.xml
@@ -21,15 +21,6 @@
com.h2database
h2
-
-
- org.apache.lucene
- lucene-core
- 9.7.0
-
org.locationtech.jts
jts-core