Skip to content

Commit be85e02

Browse files
committed
Enable the annotation processor with -proc:full on Java 17+ only
1 parent e267a76 commit be85e02

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

pom.xml

+10-5
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@
143143
<configuration>
144144
<source>8</source>
145145
<target>8</target>
146-
<compilerArgs>
147-
<arg>-proc:full</arg>
148-
</compilerArgs>
149146
</configuration>
150147
</plugin>
151148
<plugin>
@@ -254,7 +251,7 @@
254251

255252
<profiles>
256253
<profile>
257-
<id>jpms11</id>
254+
<id>java11</id>
258255
<activation>
259256
<jdk>11</jdk>
260257
</activation>
@@ -271,12 +268,20 @@
271268
</build>
272269
</profile>
273270
<profile>
274-
<id>jpms</id>
271+
<id>java17+</id>
275272
<activation>
276273
<jdk>[17,)</jdk>
277274
</activation>
278275
<build>
279276
<plugins>
277+
<plugin>
278+
<artifactId>maven-compiler-plugin</artifactId>
279+
<configuration>
280+
<compilerArgs>
281+
<arg>-proc:full</arg>
282+
</compilerArgs>
283+
</configuration>
284+
</plugin>
280285
<plugin>
281286
<groupId>org.apache.maven.plugins</groupId>
282287
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)