mirror of https://github.com/apache/lucene.git
LUCENE-4570: Maven ForbiddenAPIs configuration cleanups:
- Clean up overly long execution IDs - Make at least one test-check execution per module include internalRuntimeForbidden=true - Make at least one test-check execution per module include signatureFile executors.txt - Include bundledSignature commons-io-unsafe in solr test-framework forbiddenapis check - Note in the Solr shared test-check configuration to include bundledSignature commons-io-unsafe only in modules with commons-io on their classpath git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1447138 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d44ef9b67f
commit
6449c08e37
|
@ -82,11 +82,11 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
|
|
@ -126,11 +126,11 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>lucene-shared-test-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
|
@ -69,15 +69,15 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>lucene-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>lucene-shared-test-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
|
@ -97,11 +97,11 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
|
|
@ -84,11 +84,11 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
|
|
@ -72,11 +72,11 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
@ -84,14 +84,17 @@
|
|||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>lucene-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<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>
|
||||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/tests.txt</signaturesFile>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/executors.txt</signaturesFile>
|
||||
</signaturesFiles>
|
||||
</configuration>
|
||||
<goals>
|
||||
|
|
|
@ -87,11 +87,11 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
|
|
@ -87,22 +87,25 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>lucene-check-forbidden-executors-and-jdk-unsafe-deprecated-and-system-out</id>
|
||||
<id>lucene-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>lucene-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>lucene-shared-test-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>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>
|
||||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/tests.txt</signaturesFile>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/executors.txt</signaturesFile>
|
||||
</signaturesFiles>
|
||||
</configuration>
|
||||
<goals>
|
||||
|
|
|
@ -221,15 +221,15 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-test-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-executors-and-servlet-api-and-jdk-unsafe-and-deprecated-and-commons-io-unsafe</id>
|
||||
<id>check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
|
|
@ -118,15 +118,15 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-test-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>test-check-forbidden-servlet-api-and-jdk-unsafe-and-deprecated-and-commons-io-unsafe</id>
|
||||
<id>test-check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
@ -137,6 +137,7 @@
|
|||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/servlet-api.txt</signaturesFile>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/executors.txt</signaturesFile>
|
||||
</signaturesFiles>
|
||||
</configuration>
|
||||
<goals>
|
||||
|
@ -144,7 +145,7 @@
|
|||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>test-check-forbidden-test-apis</id>
|
||||
<id>test-check-forbidden-test-apis</id> <!-- Separate execution to specify excludes -->
|
||||
<configuration>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/tests.txt</signaturesFile>
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
@ -133,14 +133,19 @@
|
|||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-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>
|
||||
<!-- Include commons-io-unsafe only in those modules with commons-io on their classpath -->
|
||||
<!-- <bundledSignature>commons-io-unsafe-${commons-io.version}</bundledSignature> -->
|
||||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/tests.txt</signaturesFile>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/executors.txt</signaturesFile>
|
||||
</signaturesFiles>
|
||||
</configuration>
|
||||
<goals>
|
||||
|
|
|
@ -137,15 +137,15 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-test-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-executors-and-jdk-unsafe-and-deprecated-and-commons-io-unsafe</id>
|
||||
<id>check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
|
|
@ -107,11 +107,11 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-test-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
|
@ -130,7 +130,7 @@
|
|||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated-and-commons-io-unsafe</id>
|
||||
<id>test-check-forbidden-apis</id>
|
||||
<configuration>
|
||||
<!-- disallow undocumented classes like sun.misc.Unsafe: -->
|
||||
<internalRuntimeForbidden>true</internalRuntimeForbidden>
|
||||
|
@ -141,6 +141,7 @@
|
|||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/tests.txt</signaturesFile>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/executors.txt</signaturesFile>
|
||||
</signaturesFiles>
|
||||
</configuration>
|
||||
<goals>
|
||||
|
|
|
@ -109,25 +109,27 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-test-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>check-forbidden-test-apis-and-servlet-api-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>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>commons-io-unsafe-${commons-io.version}</bundledSignature>
|
||||
</bundledSignatures>
|
||||
<signaturesFiles>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/servlet-api.txt</signaturesFile>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/tests.txt</signaturesFile>
|
||||
<signaturesFile>${top-level}/lucene/tools/forbiddenApis/executors.txt</signaturesFile>
|
||||
</signaturesFiles>
|
||||
</configuration>
|
||||
<goals>
|
||||
|
|
|
@ -119,11 +119,11 @@
|
|||
<artifactId>forbiddenapis</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>solr-check-forbidden-executors-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
<execution>
|
||||
<id>solr-test-check-forbidden-test-apis-and-jdk-unsafe-and-deprecated</id>
|
||||
<id>solr-shared-test-check-forbidden-apis</id>
|
||||
<phase>none</phase> <!-- Block inherited execution -->
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
Loading…
Reference in New Issue