From 8f9bab53385f66bfabe50132170c078e1faf0267 Mon Sep 17 00:00:00 2001 From: Konrad Windszus Date: Wed, 5 Apr 2023 18:05:35 +0200 Subject: [PATCH] Enable forbiddenapis in Maven build The detects issues like JCRVLT-702 --- parent/pom.xml | 62 ++++++++++++++++++++++++++++++++++++++++++++++ vault-core/pom.xml | 13 ++++++++++ 2 files changed, 75 insertions(+) diff --git a/parent/pom.xml b/parent/pom.xml index c234714ab..8f59a9424 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -346,6 +346,68 @@ Bundle-Category: jackrabbit + + de.thetaphi + forbiddenapis + 3.5.1 + + + false + + + jdk-unsafe + jdk-deprecated + + jdk-non-portable + + jdk-reflection + + + + + + check + + + + + + de.thetaphi + forbiddenapis + 3.5.1 + + + false + + + jdk-unsafe + jdk-deprecated + + jdk-non-portable + + jdk-reflection + + + + + + check + + + + diff --git a/vault-core/pom.xml b/vault-core/pom.xml index bd0de6e1e..7e897ad34 100644 --- a/vault-core/pom.xml +++ b/vault-core/pom.xml @@ -124,6 +124,19 @@ biz.aQute.bnd bnd-resolver-maven-plugin + + de.thetaphi + forbiddenapis + + + + com/ctc/wstx/**/*.class + org/apache/jackrabbit/jcr2spi/**/*.class + org/codehaus/stax/**/*.class + org/h2/**/*.class + + +