File tree Expand file tree Collapse file tree 1 file changed +57
-5
lines changed Expand file tree Collapse file tree 1 file changed +57
-5
lines changed Original file line number Diff line number Diff line change 198
198
</signature >
199
199
</configuration >
200
200
</plugin >
201
-
202
201
<plugin >
203
202
<artifactId >maven-surefire-plugin</artifactId >
204
203
<configuration >
210
209
<artifactId >maven-compiler-plugin</artifactId >
211
210
<version >3.14.0</version >
212
211
<configuration >
213
- <source >${maven.compiler.target} </source >
214
- <target >${maven.compiler.target} </target >
215
- <testSource >${maven.compiler.testTarget} </testSource >
216
- <testTarget >${maven.compiler.testTarget} </testTarget >
217
212
<encoding >UTF-8</encoding >
218
213
</configuration >
214
+ <executions >
215
+ <execution >
216
+ <id >default-compile</id >
217
+ <configuration >
218
+ <release >${maven.compiler.target} </release >
219
+ <excludes >
220
+ <exclude >module-info.java</exclude >
221
+ </excludes >
222
+ </configuration >
223
+ </execution >
224
+ <execution >
225
+ <id >default-testCompile</id >
226
+ <configuration >
227
+ <release >${maven.compiler.testTarget} </release >
228
+ <excludes >
229
+ <exclude >module-info.java</exclude >
230
+ </excludes >
231
+ </configuration >
232
+ </execution >
233
+ <execution >
234
+ <id >compile-module-info</id >
235
+ <phase >prepare-package</phase >
236
+ <goals >
237
+ <goal >compile</goal >
238
+ </goals >
239
+ <configuration >
240
+ <release >9</release >
241
+ <excludes >
242
+ <exclude >co/**/*.java</exclude >
243
+ </excludes >
244
+ </configuration >
245
+ </execution >
246
+ </executions >
247
+ </plugin >
248
+ <!-- remove module-info.class - otherwise compilation of tests fails -->
249
+ <plugin >
250
+ <artifactId >maven-clean-plugin</artifactId >
251
+ <executions >
252
+ <execution >
253
+ <id >auto-clean</id >
254
+ <phase >process-test-resources</phase >
255
+ <goals >
256
+ <goal >clean</goal >
257
+ </goals >
258
+ <configuration >
259
+ <excludeDefaultDirectories >true</excludeDefaultDirectories >
260
+ <filesets >
261
+ <fileset >
262
+ <directory >${project.build.outputDirectory} </directory >
263
+ <includes >
264
+ <include >module-info.class</include >
265
+ </includes >
266
+ </fileset >
267
+ </filesets >
268
+ </configuration >
269
+ </execution >
270
+ </executions >
219
271
</plugin >
220
272
<plugin >
221
273
<groupId >com.coderplus.maven.plugins</groupId >
You can’t perform that action at this time.
0 commit comments