Skip to content

Commit ecbee4b

Browse files
committed
feat: Suppress JVM warnings from Lucene within CLI
Signed-off-by: Chad Wilson <[email protected]>
1 parent de46625 commit ecbee4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cli/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ Copyright (c) 2012 - Jeremy Long. All Rights Reserved.
9292
<configurationDirectory>plugins/*</configurationDirectory>
9393
<includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
9494
<unixScriptTemplate>${project.basedir}/src/main/conf/unixBinTemplate</unixScriptTemplate>
95+
<!--
96+
-—enable-native-access=ALL-UNNAMED
97+
Java 21+: Needed by Lucene indexes unless we do -Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false
98+
to go back to regular ByteBuffer (non-native) usage.
99+
-XX:+IgnoreUnrecognizedVMOptions
100+
Java <21: Allow use of enable-native-access on Java 11 JVMs without errors
101+
-->
102+
<extraJvmArguments>--enable-native-access=ALL-UNNAMED -XX:+IgnoreUnrecognizedVMOptions</extraJvmArguments>
95103
</configuration>
96104
<executions>
97105
<execution>

0 commit comments

Comments
 (0)