mirror of https://github.com/apache/lucene.git
LUCENE-7296, SOLR-9147: Fix Maven build
This commit is contained in:
parent
ecf2a732fc
commit
b385a536f3
|
@ -74,10 +74,11 @@
|
|||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
<bundledSignatures>
|
||||
<bundledSignature>jdk-unsafe</bundledSignature>
|
||||
<bundledSignature>jdk-deprecated</bundledSignature>
|
||||
<bundledSignature>jdk-non-portable</bundledSignature>
|
||||
<bundledSignature>jdk-reflection</bundledSignature>
|
||||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/base.txt</signaturesFile>
|
||||
|
@ -103,10 +104,11 @@
|
|||
<id>lucene-shared-test-check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
<bundledSignatures>
|
||||
<bundledSignature>jdk-unsafe</bundledSignature>
|
||||
<bundledSignature>jdk-deprecated</bundledSignature>
|
||||
<bundledSignature>jdk-non-portable</bundledSignature>
|
||||
<bundledSignature>jdk-reflection</bundledSignature>
|
||||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/tests.txt</signaturesFile>
|
||||
|
|
|
@ -161,14 +161,14 @@
|
|||
<plugin>
|
||||
<groupId>de.thetaphi</groupId>
|
||||
<artifactId>forbiddenapis</artifactId>
|
||||
<version>2.0</version>
|
||||
<version>2.1</version>
|
||||
<configuration>
|
||||
<!--
|
||||
This is the default setting, we don't support too new Java versions.
|
||||
The checker simply passes by default and only prints a warning.
|
||||
-->
|
||||
<failOnUnsupportedJava>false</failOnUnsupportedJava>
|
||||
<targetVersion>${java.legacy-compat.version}</targetVersion>
|
||||
<targetVersion>${java.compat.version}</targetVersion>
|
||||
<suppressAnnotations>
|
||||
<suppressAnnotation>**.SuppressForbidden</suppressAnnotation>
|
||||
</suppressAnnotations>
|
||||
|
|
|
@ -117,14 +117,15 @@
|
|||
<execution>
|
||||
<id>solr-shared-check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
<!-- for simplicty with servlet-api and commons-io checks, disable this: -->
|
||||
<failOnUnresolvableSignatures>false</failOnUnresolvableSignatures>
|
||||
<bundledSignatures>
|
||||
<bundledSignature>jdk-unsafe</bundledSignature>
|
||||
<bundledSignature>jdk-deprecated</bundledSignature>
|
||||
<bundledSignature>commons-io-unsafe-@commons-io:commons-io.version@</bundledSignature>
|
||||
<bundledSignature>jdk-non-portable</bundledSignature>
|
||||
<bundledSignature>jdk-reflection</bundledSignature>
|
||||
<!--TODO: fix this <bundledSignature>commons-io-unsafe-@commons-io:commons-io.version@</bundledSignature>-->
|
||||
<bundledSignature>commons-io-unsafe-2.4</bundledSignature>
|
||||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/base.txt</signaturesFile>
|
||||
|
@ -139,14 +140,15 @@
|
|||
<execution>
|
||||
<id>solr-shared-test-check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
<!-- for simplicty with servlet-api and commons-io checks, disable this: -->
|
||||
<failOnUnresolvableSignatures>false</failOnUnresolvableSignatures>
|
||||
<bundledSignatures>
|
||||
<bundledSignature>jdk-unsafe</bundledSignature>
|
||||
<bundledSignature>jdk-deprecated</bundledSignature>
|
||||
<bundledSignature>commons-io-unsafe-@commons-io:commons-io.version@</bundledSignature>
|
||||
<bundledSignature>jdk-non-portable</bundledSignature>
|
||||
<bundledSignature>jdk-reflection</bundledSignature>
|
||||
<!--TODO: fix this <bundledSignature>commons-io-unsafe-@commons-io:commons-io.version@</bundledSignature>-->
|
||||
<bundledSignature>commons-io-unsafe-2.4</bundledSignature>
|
||||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/base.txt</signaturesFile>
|
||||
|
|
Loading…
Reference in New Issue