From 3fb69edead6721146997a13a3e0b2c8ca918abef Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Mon, 23 May 2016 00:47:20 +0200 Subject: [PATCH] LUCENE-7296, SOLR-9147: Fix Maven build --- dev-tools/maven/lucene/pom.xml.template | 6 ++++-- dev-tools/maven/pom.xml.template | 4 ++-- dev-tools/maven/solr/pom.xml.template | 14 ++++++++------ 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/dev-tools/maven/lucene/pom.xml.template b/dev-tools/maven/lucene/pom.xml.template index 536290b51b4..8db3fd1c98c 100644 --- a/dev-tools/maven/lucene/pom.xml.template +++ b/dev-tools/maven/lucene/pom.xml.template @@ -74,10 +74,11 @@ lucene-shared-check-forbidden-apis - true jdk-unsafe jdk-deprecated + jdk-non-portable + jdk-reflection ${top-level}/lucene/tools/forbiddenApis/base.txt @@ -103,10 +104,11 @@ lucene-shared-test-check-forbidden-apis - true jdk-unsafe jdk-deprecated + jdk-non-portable + jdk-reflection ${top-level}/lucene/tools/forbiddenApis/tests.txt diff --git a/dev-tools/maven/pom.xml.template b/dev-tools/maven/pom.xml.template index 535958242c5..ccf22ca66ae 100644 --- a/dev-tools/maven/pom.xml.template +++ b/dev-tools/maven/pom.xml.template @@ -161,14 +161,14 @@ de.thetaphi forbiddenapis - 2.0 + 2.1 false - ${java.legacy-compat.version} + ${java.compat.version} **.SuppressForbidden diff --git a/dev-tools/maven/solr/pom.xml.template b/dev-tools/maven/solr/pom.xml.template index eb32f6211ba..92b493d9359 100644 --- a/dev-tools/maven/solr/pom.xml.template +++ b/dev-tools/maven/solr/pom.xml.template @@ -117,14 +117,15 @@ solr-shared-check-forbidden-apis - - true false jdk-unsafe jdk-deprecated - commons-io-unsafe-@commons-io:commons-io.version@ + jdk-non-portable + jdk-reflection + + commons-io-unsafe-2.4 ${top-level}/lucene/tools/forbiddenApis/base.txt @@ -139,14 +140,15 @@ solr-shared-test-check-forbidden-apis - - true false jdk-unsafe jdk-deprecated - commons-io-unsafe-@commons-io:commons-io.version@ + jdk-non-portable + jdk-reflection + + commons-io-unsafe-2.4 ${top-level}/lucene/tools/forbiddenApis/base.txt