Skip to content

Commit 176df01

Browse files
committedFeb 13, 2025·
Set -proc:full when compiling
OpenJDK 23 disables this awesome feature by default, but SciJava-based projects need it to index plugin metadata.
1 parent 90d7de8 commit 176df01

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
 

‎pom.xml

+10-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,13 @@
170170
<!-- Compiler configuration. -->
171171
<scijava.jvm.version>8</scijava.jvm.version>
172172
<scijava.jvm.test.version>${scijava.jvm.version}</scijava.jvm.test.version>
173-
<!-- NB: 1.8.0_101 is needed for SciJava Maven repository HTTPS support. -->
174-
<scijava.jvm.build.version>[1.8.0-101,)</scijava.jvm.build.version>
173+
<!--
174+
Note:
175+
* 1.8.0_101 is needed for SciJava Maven repository HTTPS support.
176+
* 1.8.0_411 is needed for javac's -proc:full flag to exist;
177+
see https://inside.java/2024/06/18/quality-heads-up/
178+
-->
179+
<scijava.jvm.build.version>[1.8.0-411,)</scijava.jvm.build.version>
175180
<maven.compiler.source>${scijava.jvm.version}</maven.compiler.source>
176181
<maven.compiler.target>${scijava.jvm.version}</maven.compiler.target>
177182
<maven.compiler.testSource>${scijava.jvm.test.version}</maven.compiler.testSource>
@@ -182,6 +187,9 @@
182187
-->
183188
<maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation>
184189

190+
<!-- Enable annotation processing even with Java 23+. -->
191+
<maven.compiler.proc>full</maven.compiler.proc>
192+
185193
<!-- Extra maven-surefire-plugin args. -->
186194
<scijava.surefire.args />
187195

0 commit comments

Comments
 (0)
Please sign in to comment.