@@ -346,6 +346,68 @@ Bundle-Category: jackrabbit
346
346
</execution >
347
347
</executions >
348
348
</plugin >
349
+ <plugin >
350
+ <groupId >de.thetaphi</groupId >
351
+ <artifactId >forbiddenapis</artifactId >
352
+ <version >3.5.1</version >
353
+ <configuration >
354
+ <!--
355
+ if the used Java version is too new,
356
+ don't fail, just do nothing:
357
+ -->
358
+ <failOnUnsupportedJava >false</failOnUnsupportedJava >
359
+ <bundledSignatures >
360
+ <!--
361
+ This will automatically choose the right
362
+ signatures based on 'maven.compiler.target':
363
+ -->
364
+ <bundledSignature >jdk-unsafe</bundledSignature >
365
+ <bundledSignature >jdk-deprecated</bundledSignature >
366
+ <!-- disallow undocumented classes like sun.misc.Unsafe: -->
367
+ <bundledSignature >jdk-non-portable</bundledSignature >
368
+ <!-- don't allow unsafe reflective access: -->
369
+ <bundledSignature >jdk-reflection</bundledSignature >
370
+ </bundledSignatures >
371
+ </configuration >
372
+ <executions >
373
+ <execution >
374
+ <goals >
375
+ <goal >check</goal >
376
+ </goals >
377
+ </execution >
378
+ </executions >
379
+ </plugin >
380
+ <plugin >
381
+ <groupId >de.thetaphi</groupId >
382
+ <artifactId >forbiddenapis</artifactId >
383
+ <version >3.5.1</version >
384
+ <configuration >
385
+ <!--
386
+ if the used Java version is too new,
387
+ don't fail, just do nothing:
388
+ -->
389
+ <failOnUnsupportedJava >false</failOnUnsupportedJava >
390
+ <bundledSignatures >
391
+ <!--
392
+ This will automatically choose the right
393
+ signatures based on 'maven.compiler.target':
394
+ -->
395
+ <bundledSignature >jdk-unsafe</bundledSignature >
396
+ <bundledSignature >jdk-deprecated</bundledSignature >
397
+ <!-- disallow undocumented classes like sun.misc.Unsafe: -->
398
+ <bundledSignature >jdk-non-portable</bundledSignature >
399
+ <!-- don't allow unsafe reflective access: -->
400
+ <bundledSignature >jdk-reflection</bundledSignature >
401
+ </bundledSignatures >
402
+ </configuration >
403
+ <executions >
404
+ <execution >
405
+ <goals >
406
+ <goal >check</goal >
407
+ </goals >
408
+ </execution >
409
+ </executions >
410
+ </plugin >
349
411
</plugins >
350
412
351
413
</build >
0 commit comments