You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by er...@apache.org on 2020/08/21 19:20:16 UTC

[lucene-solr] branch master updated: LUCENE-9433: Remove Ant support from trunk

This is an automated email from the ASF dual-hosted git repository.

erick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 37cd17d  LUCENE-9433: Remove Ant support from trunk
37cd17d is described below

commit 37cd17dcf5730b1aa2055b69c844582beb40faa8
Author: Erick Erickson <Er...@gmail.com>
AuthorDate: Fri Aug 21 15:19:52 2020 -0400

    LUCENE-9433: Remove Ant support from trunk
---
 .github/PULL_REQUEST_TEMPLATE.md                   |    2 +-
 README.md                                          |   72 +-
 build.xml                                          |  697 ------
 dev-tools/idea/.idea/ant.xml                       |   57 -
 dev-tools/idea/.idea/libraries/Ivy.xml             |    9 -
 lucene/BUILD.md                                    |   81 +-
 lucene/CHANGES.txt                                 |    2 +
 lucene/analysis/analysis-module-build.xml          |   44 -
 lucene/analysis/build.xml                          |  172 --
 lucene/analysis/common/build.xml                   |  125 -
 lucene/analysis/common/ivy.xml                     |   21 -
 lucene/analysis/icu/build.xml                      |  118 -
 lucene/analysis/icu/ivy.xml                        |   28 -
 lucene/analysis/kuromoji/build.xml                 |   98 -
 lucene/analysis/kuromoji/ivy.xml                   |   37 -
 lucene/analysis/morfologik/build.xml               |   40 -
 lucene/analysis/morfologik/ivy.xml                 |   31 -
 lucene/analysis/nori/build.xml                     |   84 -
 lucene/analysis/nori/ivy.xml                       |   33 -
 lucene/analysis/opennlp/build.xml                  |  118 -
 lucene/analysis/opennlp/ivy.xml                    |   28 -
 lucene/analysis/phonetic/build.xml                 |   35 -
 lucene/analysis/phonetic/ivy.xml                   |   28 -
 lucene/analysis/smartcn/build.xml                  |   34 -
 lucene/analysis/smartcn/ivy.xml                    |   21 -
 lucene/analysis/stempel/build.xml                  |   34 -
 lucene/analysis/stempel/ivy.xml                    |   21 -
 lucene/backward-codecs/build.xml                   |   26 -
 lucene/backward-codecs/ivy.xml                     |   21 -
 lucene/benchmark/build.xml                         |  289 ---
 lucene/benchmark/ivy.xml                           |   32 -
 lucene/build.xml                                   |  586 -----
 lucene/classification/build.xml                    |   55 -
 lucene/classification/ivy.xml                      |   21 -
 lucene/codecs/build.xml                            |   28 -
 lucene/codecs/ivy.xml                              |   21 -
 lucene/common-build.xml                            | 2605 --------------------
 lucene/core/build.xml                              |  235 --
 lucene/core/ivy.xml                                |   21 -
 lucene/default-nested-ivy-settings.xml             |   56 -
 lucene/demo/build.xml                              |   61 -
 lucene/demo/ivy.xml                                |   21 -
 lucene/expressions/build.xml                       |  120 -
 lucene/expressions/ivy.xml                         |   30 -
 lucene/facet/build.xml                             |   47 -
 lucene/facet/ivy.xml                               |   27 -
 lucene/grouping/build.xml                          |   49 -
 lucene/grouping/ivy.xml                            |   21 -
 lucene/highlighter/build.xml                       |   55 -
 lucene/highlighter/ivy.xml                         |   21 -
 lucene/ivy-ignore-conflicts.properties             |   14 -
 lucene/ivy-versions.properties                     |  334 ---
 lucene/join/build.xml                              |   27 -
 lucene/join/ivy.xml                                |   21 -
 lucene/licenses/ant-1.8.2.jar.sha1                 |    1 -
 lucene/licenses/ant-LICENSE-ASL.txt                |  272 --
 lucene/licenses/ant-NOTICE.txt                     |   26 -
 lucene/licenses/ivy-2.4.0.jar.sha1                 |    1 -
 lucene/licenses/ivy-LICENSE-ASL.txt                |  258 --
 lucene/licenses/ivy-NOTICE.txt                     |   16 -
 lucene/luke/build.xml                              |   82 -
 lucene/luke/ivy.xml                                |   34 -
 lucene/memory/build.xml                            |   34 -
 lucene/memory/ivy.xml                              |   21 -
 lucene/misc/build.xml                              |   52 -
 lucene/misc/ivy.xml                                |   21 -
 lucene/module-build.xml                            |  721 ------
 lucene/monitor/build.xml                           |   53 -
 lucene/monitor/ivy.xml                             |   21 -
 lucene/queries/build.xml                           |   32 -
 lucene/queries/ivy.xml                             |   21 -
 lucene/queryparser/build.xml                       |  178 --
 lucene/queryparser/ivy.xml                         |   21 -
 lucene/queryparser/xmldtddocbuild.xml              |   53 -
 lucene/replicator/build.xml                        |   53 -
 lucene/replicator/ivy.xml                          |   47 -
 lucene/sandbox/build.xml                           |   26 -
 lucene/sandbox/ivy.xml                             |   21 -
 lucene/spatial-extras/build.xml                    |   62 -
 lucene/spatial-extras/ivy.xml                      |   40 -
 lucene/spatial3d/build.xml                         |   30 -
 lucene/spatial3d/ivy.xml                           |   21 -
 lucene/suggest/build.xml                           |   47 -
 lucene/suggest/ivy.xml                             |   21 -
 lucene/test-framework/build.xml                    |   82 -
 lucene/test-framework/ivy.xml                      |   33 -
 lucene/tools/build.xml                             |   64 -
 lucene/tools/custom-tasks.xml                      |  149 --
 lucene/tools/ivy.xml                               |   29 -
 lucene/tools/src/java/lucene-solr.antlib.xml       |   27 -
 .../lucene/validation/ivyde/IvyNodeElement.java    |  178 --
 .../validation/ivyde/IvyNodeElementAdapter.java    |  135 -
 lucene/top-level-ivy-settings.xml                  |   24 -
 solr/CHANGES.txt                                   |    2 +
 solr/README.md                                     |   28 +-
 solr/build.xml                                     |  813 ------
 solr/common-build.xml                              |  551 -----
 solr/contrib/analysis-extras/build.xml             |   92 -
 solr/contrib/analysis-extras/ivy.xml               |   41 -
 solr/contrib/analytics/build.xml                   |   28 -
 solr/contrib/analytics/ivy.xml                     |   29 -
 solr/contrib/clustering/build.xml                  |   28 -
 solr/contrib/clustering/ivy.xml                    |   41 -
 solr/contrib/contrib-build.xml                     |   57 -
 solr/contrib/dataimporthandler-extras/build.xml    |   96 -
 solr/contrib/dataimporthandler-extras/ivy.xml      |   40 -
 solr/contrib/dataimporthandler/build.xml           |   32 -
 solr/contrib/dataimporthandler/ivy.xml             |   34 -
 solr/contrib/extraction/build.xml                  |   28 -
 solr/contrib/extraction/ivy.xml                    |   80 -
 solr/contrib/jaegertracer-configurator/build.xml   |   34 -
 solr/contrib/jaegertracer-configurator/ivy.xml     |   32 -
 solr/contrib/langid/build.xml                      |  102 -
 solr/contrib/langid/ivy.xml                        |   32 -
 solr/contrib/ltr/build.xml                         |   35 -
 solr/contrib/ltr/ivy.xml                           |   33 -
 solr/contrib/prometheus-exporter/build.xml         |   64 -
 solr/contrib/prometheus-exporter/ivy.xml           |   41 -
 solr/contrib/velocity/build.xml                    |   28 -
 solr/contrib/velocity/ivy.xml                      |   36 -
 solr/core/build.xml                                |  131 -
 solr/core/ivy.xml                                  |  148 --
 solr/example/example-DIH/build.xml                 |   42 -
 solr/example/example-DIH/ivy.xml                   |   29 -
 solr/licenses/ant-1.8.2.jar.sha1                   |    1 -
 solr/licenses/ant-LICENSE-ASL.txt                  |  272 --
 solr/licenses/ant-NOTICE.txt                       |   26 -
 solr/licenses/asciidoctor-ant-1.6.2.jar.sha1       |    1 -
 solr/licenses/asciidoctor-ant-LICENSE-ASL.txt      |  202 --
 solr/licenses/asciidoctor-ant-NOTICE.txt           |    5 -
 solr/licenses/junit4-ant-2.7.6.jar.sha1            |    1 -
 solr/licenses/junit4-ant-LICENSE-ASL.txt           |  202 --
 solr/licenses/junit4-ant-NOTICE.txt                |   12 -
 solr/server/build.xml                              |   54 -
 solr/server/ivy.xml                                |   74 -
 solr/solr-ref-guide/README.adoc                    |   20 +-
 solr/solr-ref-guide/build.gradle                   |    2 -
 solr/solr-ref-guide/build.xml                      |  305 ---
 solr/solr-ref-guide/ivy.xml                        |   35 -
 .../src/meta-docs/asciidoc-syntax.adoc             |    2 +-
 solr/solr-ref-guide/src/meta-docs/jekyll.adoc      |    6 +-
 solr/solr-ref-guide/src/meta-docs/publish.adoc     |    4 +-
 .../tools/CustomizedAsciidoctorAntTask.java        |   34 -
 solr/solr-ref-guide/tools/asciidoctor-antlib.xml   |   22 -
 solr/solrj/build.xml                               |   88 -
 solr/solrj/ivy.xml                                 |   77 -
 solr/test-framework/build.xml                      |  121 -
 solr/test-framework/ivy.xml                        |   42 -
 solr/webapp/build.xml                              |   69 -
 149 files changed, 83 insertions(+), 14322 deletions(-)

diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 9f2f786..b08a1d8 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -38,6 +38,6 @@ Please review the following and check all that apply:
 - [ ] I have created a Jira issue and added the issue ID to my pull request title.
 - [ ] I have given Solr maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended)
 - [ ] I have developed this patch against the `master` branch.
-- [ ] I have run `ant precommit` and the appropriate test suite.
+- [ ] I have run `./gradlew check`.
 - [ ] I have added tests for my changes.
 - [ ] I have added documentation for the [Ref Guide](https://github.com/apache/lucene-solr/tree/master/solr/solr-ref-guide) (for Solr changes only).
diff --git a/README.md b/README.md
index 4812141..e045c7c 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@
 Apache Lucene is a high-performance, full featured text search engine library
 written in Java.
 
-Apache Solr is an enterprise search platform written using Apache Lucene.
+Apache Solr is an enterprise search platform written in Java and using Apache Lucene.
 Major features include full-text search, index replication and sharding, and
 result faceting and highlighting.
 
@@ -40,48 +40,30 @@ comprehensive documentation, visit:
 
 (You do not need to do this if you downloaded a pre-built package)
 
-### Building with Ant
-
-Lucene and Solr are built using [Apache Ant](http://ant.apache.org/).  To build
-Lucene and Solr, run:
-
-`ant compile`
-
-If you see an error about Ivy missing while invoking Ant (e.g., `.ant/lib does
-not exist`), run `ant ivy-bootstrap` and retry.
-
-Sometimes you may face issues with Ivy (e.g., an incompletely downloaded artifact).
-Cleaning up the Ivy cache and retrying is a workaround for most of such issues: 
-
-`rm -rf ~/.ivy2/cache`
-
-The Solr server can then be packaged and prepared for startup by running the
-following command from the `solr/` directory:
-
-`ant server`
 
 ### Building with Gradle
 
-There is ongoing work (see [LUCENE-9077](https://issues.apache.org/jira/browse/LUCENE-9077))
-to switch the legacy ant-based build system to [gradle](https://gradle.org/).
-Please give it a try!
-
-At the moment of writing, the gradle build requires precisely Java 11 
-(it may or may not work with newer Java versions).
+As of 9.0, Lucene/Solr uses [Gradle](https://gradle.org/) as the build
+system. Ant build support has been removed.
 
 To build Lucene and Solr, run (`./` can be omitted on Windows):
 
 `./gradlew assemble`
 
-The command above also packages a full distribution of Solr server; the 
+
+The command above packages a full distribution of Solr server; the 
 package can be located at:
 
 `solr/packaging/build/solr-*`
 
 Note that the gradle build does not create or copy binaries throughout the
-source repository (like ant build does) so you need to switch to the
-packaging output folder above; the rest of the instructions below remain
-identical.  
+source repository so you need to switch to the packaging output folder above;
+the rest of the instructions below remain identical. The packaging directory 
+is rewritten on each build. 
+
+For development, especially when you have created test indexes etc, use
+the `./gradlew dev` task which will copy binaries to `./solr/packaging/build/dev`
+but _only_ overwrite the binaries which will preserve your test setup.
 
 ## Running Solr
 
@@ -104,16 +86,6 @@ Common options are described in some detail in solr/README.txt.  For an
 exhaustive treatment of options, run `bin/solr start -h` from the `solr/`
 directory.
 
-## Development/IDEs
-
-Ant can be used to generate project files compatible with most common IDEs.
-Run the ant command corresponding to your IDE of choice before attempting to
-import Lucene/Solr.
-
-- *Eclipse* - `ant eclipse` (See [this](https://cwiki.apache.org/confluence/display/solr/HowToConfigureEclipse) for details)
-- *IntelliJ* - `ant idea` (See [this](https://cwiki.apache.org/confluence/display/lucene/HowtoConfigureIntelliJ) for details)
-- *Netbeans* - `ant netbeans` (See [this](https://cwiki.apache.org/confluence/display/lucene/HowtoConfigureNetbeans) for details)
-
 ### Gradle build and IDE support
 
 - *IntelliJ* - IntelliJ idea can import the project out of the box. 
@@ -121,23 +93,17 @@ import Lucene/Solr.
 - *Eclipse*  - Not tested.
 - *Netbeans* - Not tested.
 
-## Running Tests
-
-The standard test suite can be run with the command:
-
-`ant test`
-
-Like Solr itself, the test-running can be customized or tailored in a number or
-ways.  For an exhaustive discussion of the options available, run:
-
-`ant test-help`
 
 ### Gradle build and tests
 
-Run the following command to display an extensive help for running
-tests with gradle:
+`./gradlew assemble` will build a runnable Solr as noted above.
+
+`./gradlew check` will assemble Lucene/Solr and run all validation
+  tasks unit tests.
 
-`./gradlew helpTests`
+`./gradlew help` will print a list of help commands for high-level tasks. One
+  of these is `helpAnt` that shows the gradle tasks corresponding to ant
+  targets you may be familiar with.
 
 ## Contributing
 
diff --git a/build.xml b/build.xml
deleted file mode 100755
index a1e8ccb..0000000
--- a/build.xml
+++ /dev/null
@@ -1,697 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="lucene-solr" default="-projecthelp" basedir=".">
-  <import file="lucene/common-build.xml"/>
-
-  <property name="jgit-version" value="5.3.0.201903130848-r"/>
-  
-  <property name="tests.heap-dump-dir" location="heapdumps"/>
-  
-  <property name="maven-build-dir" value="maven-build"/>
-  <property name="maven-version" value="3.5.0"/>
-  <property name="maven.dependencies.filters.file" location="lucene/build/maven.dependencies.filters.properties"/>
-
-  <property name="smokeTestRelease.dir" location="lucene/build/smokeTestRelease/dist"/>
-  <property name="smokeTestRelease.tmp" location="lucene/build/smokeTestRelease/tmp"/>
-  <property name="smokeTestRelease.testArgs" value=""/>
-
-  <target name="-projecthelp">
-    <java fork="false" classname="org.apache.tools.ant.Main" taskname="-">
-      <arg value="-projecthelp"/>
-      <arg value="-f"/>
-      <arg value="${ant.file}"/>
-    </java>
-  </target>
-
-  <target name="test-help" description="Test runner help">
-    <subant buildpath="lucene" target="test-help" inheritall="false" failonerror="true"/>
-  </target>
-
-  <target name="precommit" description="Run basic checks before committing"
-          depends="check-working-copy,validate,documentation-lint"/>
-
-  <target name="test" description="Test both Lucene and Solr" depends="resolve-groovy">
-    <mkdir dir="lucene/build" />
-    <tempfile property="tests.totals.tmpfile"
-          destdir="lucene/build"
-          prefix=".test-totals-"
-          suffix=".tmp"
-          deleteonexit="true"
-          createfile="true" />
-
-    <subant target="test" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset>
-        <propertyset refid="uptodate.and.compiled.properties"/>
-        <propertyref name="tests.totals.tmpfile" />
-      </propertyset>      
-    </subant>
-
-    <property name="tests.totals.toplevel" value="true" />
-    <antcall target="-check-totals" />
-  </target>
-
-  <target name="jacoco" depends="resolve-groovy" description="Generates JaCoCo code coverage reports">
-    <subant target="jacoco" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="pitest" depends="resolve-groovy" description="Run PITest on both Lucene and Solr">
-    <subant target="pitest" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="beast">
-    <fail message="The Beast only works inside of individual modules"/>
-  </target>
-
-  <target name="documentation" depends="resolve-markdown" description="Generate Lucene and Solr Documentation">
-    <subant target="documentation" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="documentation-lint" depends="resolve-markdown,-ecj-javadoc-lint-unsupported,-ecj-resolve" description="Validates the generated documentation (HTML errors, broken links,...)">
-    <subant target="documentation-lint" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="check-forbidden-apis" depends="-install-forbidden-apis" description="Check forbidden API calls in compiled class files.">
-    <subant target="check-forbidden-apis" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="validate" description="Validate dependencies, licenses, etc." depends="validate-source-patterns,resolve-groovy,rat-sources-typedef,-install-forbidden-apis">
-    <subant target="validate" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-    <subant buildpath="lucene" target="check-lib-versions" inheritall="false" failonerror="true">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-  
-  <target name="validate-source-patterns" description="Validate source code (invalid code patterns,...)" unless="disable.source-patterns" depends="resolve-groovy,rat-sources-typedef">
-    <groovy taskname="source-patterns" classpathref="rat.classpath" src="${common.dir}/tools/src/groovy/check-source-patterns.groovy"/>
-  </target>
-  
-  <target name="rat-sources" description="Runs rat across all sources and tests" depends="common.rat-sources">
-    <subant target="rat-sources" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="resolve" description="Resolves all dependencies">
-    <subant target="resolve" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <!-- lucene/test-framework and solr/test-framework are excluded from compilation -->
-  <target name="compile" description="Compile Lucene and Solr">
-    <subant target="compile" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="compile-core" description="Compile Lucene Core">
-    <subant target="compile-core" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="compile-test" description="Compile Lucene and Solr tests and test-frameworks">
-    <subant target="compile-test" inheritAll="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="jar" description="Build Lucene and Solr Jar files">
-    <subant target="jar" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml"/>
-      <fileset dir="solr" includes="build.xml"/>
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="jar-src" description="Build Lucene and Solr Source Jar files">
-    <subant target="jar-src" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml"/>
-      <fileset dir="solr" includes="build.xml"/>
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="get-maven-poms" depends="resolve" 
-          description="Copy Maven POMs from dev-tools/maven/ to maven-build/">
-    <ant dir="lucene" target="-get-maven-poms" inheritall="false"/>
-  </target>
-
-  <target name="clean-maven-build"
-          description="Clean up Maven POMs in working copy">
-    <delete failonerror="true" dir="${maven-build-dir}/"/>
-  </target>
-
-  <target name="generate-maven-artifacts" depends="resolve,resolve-groovy,resolve-markdown,install-maven-tasks"
-          description="Generate Maven Artifacts for Lucene and Solr">
-    <property name="maven.dist.dir"  location="dist/maven" />
-    <mkdir dir="${maven.dist.dir}" />
-    <ant dir="lucene" inheritall="false">
-      <target name="-unpack-lucene-tgz"/>
-      <target name="-filter-pom-templates"/>
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <ant dir="solr" target="-unpack-solr-tgz" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <subant target="-dist-maven" inheritall="false" failonerror="true">
-      <property name="maven.dist.dir"  location="${maven.dist.dir}" />
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="-install-maven-artifacts" depends="resolve,resolve-groovy,resolve-markdown,install-maven-tasks">
-    <ant dir="lucene" inheritall="false">
-      <target name="-unpack-lucene-tgz"/>
-      <target name="-filter-pom-templates"/>
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <ant dir="solr" target="-unpack-solr-tgz" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <subant target="-install-to-maven-local-repo" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="validate-maven-dependencies" depends="-install-maven-artifacts"
-          description="Validates maven dependencies, licenses, etc.">
-    <subant target="-validate-maven-dependencies" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml"/>
-      <fileset dir="solr" includes="build.xml"/>
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-  
-  <target name="run-maven-build" depends="get-maven-poms,install-maven-tasks,resolve-groovy" description="Runs the Maven build using automatically generated POMs">
-    <groovy src="${common.dir}/tools/src/groovy/run-maven-build.groovy"/>
-  </target>
-  
-  <target name="remove-maven-artifacts" description="Removes all Lucene/Solr Maven artifacts from the local repository">
-    <echo message="Removing all Lucene/Solr Maven artifacts from '${user.home}/.m2/repository'..."/>
-    <delete includeemptydirs="true">
-      <fileset dir="${user.home}/.m2/repository" erroronmissingdir="false">
-        <include name="org/apache/lucene/**"/>
-        <include name="org/apache/solr/**"/>
-      </fileset>
-    </delete>
-  </target>
-
-  <target name="netbeans" depends="resolve" description="Setup Netbeans configuration">
-    <pathconvert property="netbeans.fileset.sourcefolders" pathsep="|" dirsep="/">
-      <dirset dir="${basedir}/lucene" includes="**/src/java, **/src/examples, **/src/test, **/src/resources" 
-              excludes="tools/**, build/**" />
-      <dirset dir="${basedir}/solr" includes="**/src/java, **/src/examples, **/src/test, **/src/resources" 
-              excludes="build/**" />
-      <map from="${basedir}/" to=""/>
-    </pathconvert>
-    <!-- TODO: find a better way to exclude duplicate JAR files & fix the servlet-api mess! -->
-    <pathconvert property="netbeans.path.libs" pathsep=":" dirsep="/">
-      <fileset dir="${basedir}/lucene" includes="**/lib/*.jar" 
-               excludes="**/*servlet-api*.jar, tools/**, build/**"/>
-      <fileset dir="${basedir}/solr" includes="**/test-lib/*.jar,**/lib/*.jar" 
-               excludes="core/test-lib/*servlet-api*.jar, contrib/analysis-extras/**, test-framework/lib/junit*, test-framework/lib/ant*, test-framework/lib/randomizedtesting*, build/**, dist/**, package/**, server/solr-webapp/**" />
-      <map from="${basedir}/" to=""/>
-    </pathconvert>
-    <mkdir dir="nbproject"/>
-    <copy todir="nbproject" overwrite="true">
-      <fileset dir="dev-tools/netbeans/nbproject"/>
-    </copy>
-    <xslt in="${ant.file}" out="nbproject/project.xml" style="dev-tools/netbeans/nb-project.xsl" force="true">
-      <outputproperty name="indent" value="yes"/>
-      <param name="netbeans.fileset.sourcefolders" expression="${netbeans.fileset.sourcefolders}"/>
-      <param name="netbeans.path.libs" expression="${netbeans.path.libs}"/>
-      <param name="netbeans.source-level" expression="1.7"/>
-    </xslt>
-  </target>
-
-  <target name="clean-netbeans" description="Removes all Netbeans configuration files">
-    <delete dir="nbproject" failonerror="true"/>
-    <delete dir="nb-build" failonerror="true"/>
-  </target>
-
-  <target name="eclipse" depends="resolve" description="Setup Eclipse configuration">
-    <basename file="${basedir}" property="eclipseprojectname"/>
-    <copy file="dev-tools/eclipse/dot.project" tofile=".project" overwrite="false" encoding="UTF-8">
-      <filterset>
-        <filter token="ECLIPSEPROJECTNAME" value="${eclipseprojectname}"/>
-      </filterset>
-    </copy>
-    <copy overwrite="false" todir="eclipse-build" encoding="UTF-8">
-      <fileset dir="dev-tools/eclipse" includes="*.launch"/>
-      <filterset>
-        <filter token="ECLIPSEPROJECTNAME" value="${eclipseprojectname}"/>
-      </filterset>
-    </copy>
-    <mkdir dir=".settings"/>
-    <copy todir=".settings/" overwrite="true">
-      <fileset dir="dev-tools/eclipse/dot.settings" includes="*.prefs" />
-    </copy>
-
-    <pathconvert property="eclipse.fileset.sourcefolders" pathsep="|" dirsep="/">
-      <dirset dir="${basedir}/lucene" includes="**/src/java, **/src/resources, **/src/test, **/src/test-files, **/src/examples" excludes="tools/**, build/**" />
-      <dirset dir="${basedir}/solr" includes="**/src/java, **/src/resources, **/src/test, **/src/test-files, **/src/examples" excludes="build/**" />
-      <map from="${basedir}/" to=""/>
-    </pathconvert>
-    <!-- TODO: find a better way to exclude duplicate JAR files & fix the servlet-api mess! -->
-    <pathconvert property="eclipse.fileset.libs" pathsep="|" dirsep="/">
-      <fileset dir="${basedir}/lucene" includes="**/lib/*.jar" excludes="**/*servlet-api*.jar, tools/**, build/**"/>
-      <fileset dir="${basedir}/solr" includes="**/test-lib/*.jar,**/lib/*.jar" excludes="core/test-lib/*servlet-api*.jar, contrib/analysis-extras/**, test-framework/lib/junit*, test-framework/lib/ant*, test-framework/lib/randomizedtesting*, build/**, dist/**, package/**" />
-      <map from="${basedir}/" to=""/>
-    </pathconvert>
-    <pathconvert property="eclipse.fileset.webfolders" pathsep="|" dirsep="/">
-      <dirset dir="${basedir}/solr/server/contexts" excludes="**/*" />
-      <dirset dir="${basedir}/solr/server/etc" excludes="**/*" />
-      <dirset dir="${basedir}/solr/server/modules" excludes="**/*" />
-      <dirset dir="${basedir}/solr/server/solr" excludes="**/*" />
-      <dirset dir="${basedir}/solr/webapp/web" excludes="**/*" />
-      <map from="${basedir}/" to=""/>
-    </pathconvert>
-    <xslt in="${ant.file}" out=".classpath" style="dev-tools/eclipse/dot.classpath.xsl" force="true">
-      <outputproperty name="indent" value="yes"/>
-      <param name="eclipse.fileset.libs" expression="${eclipse.fileset.libs}"/>
-      <param name="eclipse.fileset.sourcefolders" expression="${eclipse.fileset.sourcefolders}"/>
-      <param name="eclipse.fileset.webfolders" expression="${eclipse.fileset.webfolders}"/>
-    </xslt>
-
-    <echo>
-      SUCCESS: You must right-click your project and choose Refresh.
-               Your project must use a Java 11 JRE.
-    </echo>
-  </target>
-
-  <target name="clean-eclipse" description="Removes all Eclipse configuration files">
-    <delete dir=".settings" failonerror="true"/>
-    <delete failonerror="true">
-      <fileset dir="." includes=".classpath,.project"/>
-    </delete>
-    <delete dir="eclipse-build" failonerror="true"/>
-  </target>
-
-  <target name="idea" depends="resolve" description="Setup IntelliJ IDEA configuration">
-    <condition property="idea.jdk.is.set">
-      <isset property="idea.jdk"/>
-    </condition>
-    <!-- Define ${idea.jdk} if it's not yet defined - otherwise literal "${idea.jdk}" is substituted -->
-    <property name="idea.jdk" value=""/>
-    <!-- delete those files first, so they are regenerated by the filtering below
-      (add more files with dynamic properties like versions here): -->
-    <delete dir=".idea" includes="misc.xml workspace.xml"/>
-    <!-- Copy files with filtering: -->
-    <copy todir="." overwrite="false" encoding="UTF-8">
-      <fileset dir="dev-tools/idea"/>
-      <filterset begintoken="subst.=&quot;" endtoken="&quot;">
-        <filter token="idea.jdk" value="${idea.jdk}"/>
-      </filterset>
-      <filterset>
-        <filter token="version" value="${version}"/>
-        <filter token="version.base" value="${version.base}"/>
-      </filterset>
-    </copy>
-    <antcall target="-post-idea-instructions"/>
-  </target>
-  
-  <target name="-post-idea-instructions" unless="idea.jdk.is.set">
-    <echo>
-To complete IntelliJ IDEA setup, you must manually configure
-File | Project Structure | Project | Project SDK.
-      
-You won't have to do this in the future if you define property
-$${idea.jdk}, e.g. in ~/lucene.build.properties, ~/build.properties
-or lucene/build.properties, with a value consisting of the
-following two XML attributes/values (adjust values according to
-JDKs you have defined locally - see 
-File | Project Structure | Platform Settings | SDKs):
-
-    idea.jdk = project-jdk-name="11" project-jdk-type="JavaSDK"
-    </echo>
-  </target>
-
-  <target name="clean-idea"
-          description="Removes all IntelliJ IDEA configuration files">
-    <delete dir=".idea" failonerror="true"/>
-    <delete failonerror="true">
-      <fileset dir="." includes="*.iml,*.ipr,*.iws"/>
-      <fileset dir="solr" includes="**/*.iml"/>
-      <fileset dir="lucene" includes="**/*.iml"/>
-    </delete>
-    <delete dir="idea-build" failonerror="true"/>
-  </target>
-
-  <target name="clean" description="Clean Lucene and Solr build dirs">
-    <delete dir="dist" />
-    <delete dir="${tests.heap-dump-dir}" />
-    <subant target="clean" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="clean-jars" description="Remove all JAR files from lib folders in the checkout">
-    <delete failonerror="true">
-      <fileset dir=".">
-        <include name="**/*.jar"/>
-        <exclude name="*/build/**"/>
-        <exclude name="*/dist/**"/>
-        <exclude name="*/package/**"/>
-        <exclude name="*/example/exampledocs/**"/>
-        <exclude name="gradle/**" />
-      </fileset>
-    </delete>
-  </target>
-
-  <target name="jar-checksums" description="Recompute SHA1 checksums for all JAR files.">
-    <subant target="jar-checksums" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <target name="-nightly-smoke-java12params" if="smokeTestRelease.java12">
-    <!-- convert path to UNIX style, so windows backslashes don't hurt escaping: -->
-    <pathconvert targetos="unix" property="-smokeTestRelease.java12params">
-      <regexpmapper from="^(.*)$" to="--test-java12 '\1'"/>
-      <path location="${smokeTestRelease.java12}"/>
-    </pathconvert>
-  </target>
-  
-  <target name="nightly-smoke" description="Builds an unsigned release and smoke tests it  (pass '-DsmokeTestRelease.java12=/path/to/jdk-12' to additionally test with Java 12 or later)"
-    depends="clean,resolve-groovy,resolve-markdown,install-maven-tasks,-nightly-smoke-java12params">
-    <fail message="To run nightly smoke, the JDK must be exactly Java 11, was: ${java.specification.version}">
-      <condition>
-        <not><equals arg1="${java.specification.version}" arg2="11"/></not>
-      </condition>
-    </fail>
-    <property name="-smokeTestRelease.java12params" value=""/><!-- (if not yet defined) -->
-    <exec executable="${python3.exe}" failonerror="true" taskname="python3">
-      <arg value="-V"/>
-    </exec>
-    <subant target="prepare-release-no-sign" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <!-- pass ${version.base} here to emulate a real release, without appendix like "-SNAPSHOT": -->
-      <property name="version" value="${version.base}" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-   </subant>
-    <mkdir dir="${smokeTestRelease.dir}"/>
-    <copy todir="${smokeTestRelease.dir}/lucene">
-      <fileset dir="lucene/dist"/>
-    </copy>
-    <copy todir="${smokeTestRelease.dir}/solr">
-      <fileset dir="solr/package"/>
-    </copy>
-    <local name="url"/>
-    <makeurl file="${smokeTestRelease.dir}" validate="false" property="url"/>
-    <exec executable="${python3.exe}" failonerror="true" taskname="smoker">
-      <arg value="-u"/>
-      <!-- Tell Python not to write any bytecode cache into the filesystem: -->
-      <arg value="-B"/>
-      <arg file="dev-tools/scripts/smokeTestRelease.py"/>
-      <arg line="${-smokeTestRelease.java12params}"/>
-      <arg value="--revision"/>
-      <arg value="skip"/>
-      <!-- pass ${version.base} here to emulate a real release, without appendix like "-SNAPSHOT": -->
-      <arg value="--version"/>
-      <arg value="${version.base}"/>
-      <arg value="--tmp-dir"/>
-      <arg file="${smokeTestRelease.tmp}"/>
-      <arg value="--not-signed"/>
-      <arg value="${url}"/>
-      <arg value="${smokeTestRelease.testArgs}"/>
-    </exec>
-    <delete dir="${smokeTestRelease.dir}"/>
-    <delete dir="${smokeTestRelease.tmp}"/>
-  </target>
-  
-  <macrodef xmlns:ivy="antlib:org.apache.ivy.ant" name="wc-checker">
-    <attribute name="failonmodifications"/><!-- fail if modifications were found, otherwise it only fails on unversioned files -->
-    <sequential>
-      <local name="wc.unversioned.files"/>
-      <local name="wc.modified.files"/>
-      <ivy:cachepath xmlns:ivy="antlib:org.apache.ivy.ant" transitive="true" resolveId="jgit" pathid="jgit.classpath">
-        <ivy:dependency org="org.eclipse.jgit" name="org.eclipse.jgit" rev="${jgit-version}" conf="default" />
-        <ivy:dependency org="org.slf4j" name="slf4j-nop" rev="1.7.2" conf="default" />
-      </ivy:cachepath>
-      <groovy taskname="wc-checker" classpathref="jgit.classpath" src="${common.dir}/tools/src/groovy/check-working-copy.groovy"/>
-      <fail if="wc.unversioned.files"
-        message="Source checkout is dirty (unversioned/missing files) after running tests!!! Offending files:${line.separator}${wc.unversioned.files}"/>
-      <fail message="Source checkout is modified!!! Offending files:${line.separator}${wc.modified.files}">
-        <condition>
-          <and>
-             <istrue value="@{failonmodifications}"/>
-             <isset property="wc.modified.files"/>
-          </and>
-        </condition>
-      </fail>
-    </sequential>
-  </macrodef>
-  
-  <target name="check-working-copy" description="Checks working copy for unversioned changes" depends="resolve-groovy">
-    <wc-checker failonmodifications="${is.jenkins.build}"/>
-  </target>
-
-  <target name="run-clover" description="Runs all tests to measure coverage and generates report (pass &quot;ANT_OPTS=-Xmx2G&quot; as environment)" depends="clean">
-    <antcall inheritAll="false">
-      <param name="run.clover" value="true"/>
-      <!-- must be 1, as clover does not like parallel test runs: -->
-      <param name="tests.jvms.override" value="1"/>
-      <!-- Also override some other props to be fast: -->
-      <param name="tests.multiplier" value="1"/>
-      <param name="tests.nightly" value="false"/>
-      <param name="tests.weekly" value="false"/>
-      <param name="tests.badapples" value="true"/>
-      <!-- The idea behind Clover is to determine test coverage, so be immune to failing tests: -->
-      <param name="tests.haltonfailure" value="false"/>
-      
-      <target name="clover"/>
-      <target name="test"/>
-      <target name="-generate-clover-reports"/>
-      
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </antcall>
-  </target>
-
-  <!--
-   Run after Junit tests.
-   
-   This target is in a separate file, as it needs to include common-build.xml,
-   but must run from top-level!
-   -->
-  <target name="-generate-clover-reports" depends="clover">
-    <fail unless="run.clover">Clover not enabled!</fail>
-    <mkdir dir="${clover.report.dir}"/>
-    <fileset dir="." id="clover.test.result.files">
-      <include name="*/build/**/test/TEST-*.xml"/>
-    </fileset>
-    <fileset dir="." id="clover.test.src.files">
-      <include name="**/src/test/**/*.java"/>
-      <!-- test framework source files are all test code: -->
-      <include name="*/test-framework/src/**/*.java"/>
-    </fileset>
-    <clover-report projectName="Apache Lucene/Solr">
-      <current outfile="${clover.report.dir}" title="Apache Lucene/Solr ${version}" numThreads="0">
-        <format type="html" filter="assert"/>
-        <testresults refid="clover.test.result.files"/>
-        <testsources refid="clover.test.src.files"/>
-      </current>
-      <current outfile="${clover.report.dir}/clover.xml" title="Apache Lucene/Solr ${version}">
-        <format type="xml" filter="assert"/>
-        <testresults refid="clover.test.result.files"/>
-        <testsources refid="clover.test.src.files"/>
-      </current>
-    </clover-report>
-    <echo>You can find the merged Lucene/Solr Clover report in '${clover.report.dir}'.</echo>
-  </target>
-
-  <target name="test-with-heapdumps" depends="resolve-groovy,-test-with-heapdumps-enabled,-test-with-heapdumps-disabled" description="Runs tests with heap dumps on OOM enabled (if VM supports this)"/>
-  
-  <condition property="vm.supports.heapdumps">
-    <or>
-      <contains string="${java.vm.name}" substring="hotspot" casesensitive="false"/>
-      <contains string="${java.vm.name}" substring="openjdk" casesensitive="false"/>
-    </or>
-  </condition>
-
-  <target name="-test-with-heapdumps-enabled" if="vm.supports.heapdumps">
-    <echo level="info" message="${java.vm.name}: Enabling heap dumps on OutOfMemoryError to dir '${tests.heap-dump-dir}'."/>
-    <mkdir dir="${tests.heap-dump-dir}"/>
-    <delete includeEmptyDirs="true">
-      <fileset dir="${tests.heap-dump-dir}"  includes="**/*"/>
-    </delete>
-    <antcall inheritAll="false" target="test">
-      <param name="tests.heapdump.args" value="-XX:+HeapDumpOnOutOfMemoryError &quot;-XX:HeapDumpPath=${tests.heap-dump-dir}&quot;"/>
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </antcall>
-    <pathconvert property="heapdumps.list" setonempty="false" pathsep="${line.separator}">
-      <fileset dir="${tests.heap-dump-dir}"/>
-      <map from="${tests.heap-dump-dir}${file.separator}" to="* "/>
-    </pathconvert>
-    <fail if="heapdumps.list" message="Some of the tests produced a heap dump, but did not fail. Maybe a suppressed OutOfMemoryError? Dumps created:${line.separator}${heapdumps.list}"/>
-    <delete dir="${tests.heap-dump-dir}"/>
-  </target>
-
-  <target name="-test-with-heapdumps-disabled" unless="vm.supports.heapdumps">
-    <echo level="warning" message="WARN: The used JVM (${java.vm.name}) does not support HPROF heap dumps on OutOfMemoryError."/>
-    <antcall target="test">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </antcall>
-  </target>
-
-  <target name="regenerate" description="Runs all code regenerators">
-    <subant target="regenerate" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <!-- todo:
-      <fileset dir="solr" includes="build.xml" />-->
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-
-  <!-- should only be called by jenkins, not precommit! -->
-  <target name="-check-after-regeneration" depends="resolve-groovy">
-    <wc-checker failonmodifications="true"/>
-  </target>
-
-  <!-- TODO: remove me when jenkins works -->
-  <target name="regenerateAndCheck" depends="regenerate,-check-after-regeneration"/>
-  
-  <target name="-append-all-modules-dependencies-properties">
-    <delete file="lucene/build/module.dependencies.properties"/>
-    <subant target="-append-module-dependencies-properties" inheritall="false" failonerror="true">
-      <fileset dir="lucene" includes="build.xml" />
-      <fileset dir="solr" includes="build.xml" />
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </subant>
-  </target>
-  
-  <!-- Jenkins tasks -->
-  <target name="-jenkins-base" depends="-print-java-info,clean,test-with-heapdumps,validate,documentation-lint,jar-checksums,check-working-copy"/>
-  
-  <target name="-print-java-info">
-    <echo level="info" taskname="java-info">java version &quot;${java.version}&quot;
-${java.runtime.name} (${java.runtime.version}, ${java.vendor})
-${java.vm.name} (${java.vm.version}, ${java.vm.vendor})
-Test args: [${args}]</echo>
-  </target>
-  
-  <target name="jenkins-hourly">
-    <antcall>
-      <param name="is.jenkins.build" value="true"/>
-      <param name="tests.haltonfailure" value="false"/>
-      <param name="tests.badapples" value="false"/>
-      <target name="-jenkins-base"/>
-    </antcall>
-  </target>
-  
-  <target name="jenkins-badapples">
-    <antcall>
-      <param name="is.jenkins.build" value="true"/>
-      <param name="tests.haltonfailure" value="false"/>
-      <param name="tests.badapples" value="true"/>
-      <target name="-jenkins-base"/>
-    </antcall>
-  </target>
-  
-  <target name="jenkins-nightly">
-    <antcall>
-      <param name="is.jenkins.build" value="true"/>
-      <param name="tests.haltonfailure" value="false"/>
-      <param name="tests.nightly" value="true"/>
-      <param name="tests.badapples" value="false"/>
-      <target name="-jenkins-base"/>
-    </antcall>
-  </target>
-
-  <target name="jenkins-nightly-badapples">
-    <antcall>
-      <param name="is.jenkins.build" value="true"/>
-      <param name="tests.haltonfailure" value="false"/>
-      <param name="tests.nightly" value="true"/>
-      <param name="tests.badapples" value="true"/>
-      <target name="-jenkins-base"/>
-    </antcall>
-  </target>
-
-  <target name="jenkins-maven-nightly" depends="-print-java-info,clean,clean-maven-build,resolve-groovy,resolve-markdown,install-maven-tasks">
-    <!-- step 1: build, install, validate and publish ANT-generated maven artifacts: -->
-    <antcall>
-      <param name="is.jenkins.build" value="true"/>
-      <target name="remove-maven-artifacts"/>
-      <target name="validate-maven-dependencies"/>
-      <target name="generate-maven-artifacts"/>
-    </antcall>
-    <!-- step 2: run the maven build to check that the pom templates also work to drive "mvn": -->
-    <antcall>
-      <param name="is.jenkins.build" value="true"/>
-      <target name="remove-maven-artifacts"/>
-      <target name="run-maven-build"/>
-    </antcall>
-  </target>
-  
-  <target name="jenkins-clover" depends="-print-java-info">
-    <antcall>
-      <param name="is.jenkins.build" value="true"/>
-      <target name="run-clover"/>
-    </antcall>
-  </target>
-
-  <!-- useless targets (override common-build.xml): -->
-  <target name="generate-test-reports"/>
-</project>
diff --git a/dev-tools/idea/.idea/ant.xml b/dev-tools/idea/.idea/ant.xml
deleted file mode 100644
index c270538..0000000
--- a/dev-tools/idea/.idea/ant.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="AntConfiguration">
-    <buildFile url="file://$PROJECT_DIR$/build.xml" />
-
-    <buildFile url="file://$PROJECT_DIR$/lucene/build.xml" />
-
-    <buildFile url="file://$PROJECT_DIR$/lucene/core/build.xml" />
-
-    <buildFile url="file://$PROJECT_DIR$/lucene/analysis/common/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/analysis/icu/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/analysis/kuromoji/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/analysis/morfologik/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/analysis/opennlp/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/analysis/phonetic/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/analysis/smartcn/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/analysis/stempel/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/benchmark/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/classification/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/codecs/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/demo/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/expressions/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/facet/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/grouping/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/highlighter/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/join/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/luke/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/luwak/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/memory/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/misc/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/queries/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/queryparser/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/replicator/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/sandbox/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/spatial/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/spatial-extras/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/suggest/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/test-framework/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/lucene/tools/build.xml" />
-
-    <buildFile url="file://$PROJECT_DIR$/solr/build.xml" />
-
-    <buildFile url="file://$PROJECT_DIR$/solr/core/build.xml" />
-
-    <buildFile url="file://$PROJECT_DIR$/solr/contrib/analysis-extras/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/contrib/clustering/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/contrib/dataimporthandler-extras/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/contrib/dataimporthandler/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/contrib/extraction/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/contrib/langid/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/contrib/prometheus-exporter/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/contrib/velocity/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/solrj/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/test-framework/build.xml" />
-    <buildFile url="file://$PROJECT_DIR$/solr/webapp/build.xml" />
-  </component>
-</project>
diff --git a/dev-tools/idea/.idea/libraries/Ivy.xml b/dev-tools/idea/.idea/libraries/Ivy.xml
deleted file mode 100644
index 798dc0f..0000000
--- a/dev-tools/idea/.idea/libraries/Ivy.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<component name="libraryTable">
-  <library name="Ivy">
-    <CLASSES>
-      <root url="jar://$PROJECT_DIR$/lucene/tools/lib/ivy-2.3.0.jar!/" />
-    </CLASSES>
-    <JAVADOC />
-    <SOURCES />
-  </library>
-</component>
diff --git a/lucene/BUILD.md b/lucene/BUILD.md
index 6810225..9846ed7 100644
--- a/lucene/BUILD.md
+++ b/lucene/BUILD.md
@@ -2,78 +2,67 @@
 
 ## Basic steps:
   
-  0. Install OpenJDK 11 (or greater), Ant 1.8.2+, Ivy 2.2.0
-  1. Download Lucene from Apache and unpack it
-  2. Connect to the top-level of your Lucene installation
+  0. Install OpenJDK 11 (or greater)
+  1. Download Lucene/Solr from Apache and unpack it
+  2. Connect to the top-level of your installation (parent of the lucene top-level directory)
   3. Install JavaCC (optional)
-  4. Run ant
+  4. Run gradle
 
-## Step 0) Set up your development environment (OpenJDK 11 or greater, Ant 1.8.2+, Ivy 2.2.0)
+## Step 0) Set up your development environment (OpenJDK 11 or greater)
 
 We'll assume that you know how to get and set up the JDK - if you
 don't, then we suggest starting at https://www.oracle.com/java/ and learning
 more about Java, before returning to this README. Lucene runs with
 Java 11 and later.
 
-Like many Open Source java projects, Lucene uses Apache Ant for build
-control.  Specifically, you MUST use Ant version 1.8.2+.
+Lucene uses [Gradle](https://gradle.org/) for build control; and includes Gradle wrapper script to download the correct version of it.
 
-Ant is "kind of like make without make's wrinkles".  Ant is
-implemented in java and uses XML-based configuration files.  You can
-get it at:
+NOTE: When Solr moves to a Top Level Project, it will no longer
+be necessary to download Solr to build Lucene. You can track
+progress at: https://issues.apache.org/jira/browse/SOLR-14497 
 
-  https://ant.apache.org
+NOTE: Lucene changed from Ant to Gradle as of release 9.0. Prior releases
+still use Ant.
 
-You'll need to download the Ant binary distribution.  Install it
-according to the instructions at:
-
-  https://ant.apache.org/manual
-
-Finally, you'll need to install ivy into your ant lib folder
-(~/.ant/lib). You can get it from http://ant.apache.org/ivy/.
-If you skip this step, the Lucene build system will offer to do it 
-for you.
-
-## Step 1) Download Lucene from Apache
+## Step 1) Download/Checkout Lucene source code
 
 We'll assume you already did this, or you wouldn't be reading this
 file.  However, you might have received this file by some alternate
 route, or you might have an incomplete copy of the Lucene, so: Lucene
-releases are available for download at:
+releases are available as part of Solr for download at:
 
-  https://www.apache.org/dyn/closer.cgi/lucene/java/
+  https://lucene.apache.org/solr/downloads.html
+  
+See the note above for why it is necessary currently to download Solr
 
 Download either a zip or a tarred/gzipped version of the archive, and
 uncompress it into a directory of your choice.
 
-## Step 2) From the command line, change (cd) into the top-level directory of your Lucene installation
+Or you can directly checkout the source code from GitHub:
 
-Lucene's top-level directory contains the build.xml file. By default,
-you do not need to change any of the settings in this file, but you do
-need to run ant from this location so it knows where to find build.xml.
+  https://github.com/apache/lucene-solr
 
-If you would like to change settings you can do so by creating one 
-or more of the following files and placing your own property settings
-in there:
+## Step 2) From the command line, change (cd) into the top-level directory of your Lucene/Solr installation
 
-    ~/lucene.build.properties
-    ~/build.properties
-    lucene-x.y/build.properties
+The parent directory for both Lucene and Solr contains the base configuration
+file for the combined build, as well as the "gradle wrapper" (gradlew) that
+makes invocation of Gradle easier. By default, you do not need to change any of 
+the settings in this file, but you do need to run Gradle from this location so 
+it knows where to find the necessary configurations.
 
-The first property which is found in the order with which the files are
-loaded becomes the property setting which is used by the Ant build
-system.
+The first time you run Gradle, it will create a file "gradle.properties" that
+contains machine-specific settings. Normally you can use this file as-is, but it
+can be modified if necessary. 
 
-NOTE: the ~ character represents your user account home directory.
+## Step 4) Run Gradle
 
-## Step 4) Run ant
+Assuming you can exectue "./gradlew help" should show you the main tasks that
+can be executed to show help sub-topics.
 
-Assuming you have ant in your PATH and have set ANT_HOME to the
-location of your ant installation, typing "ant" at the shell prompt
-and command prompt should run ant.  Ant will by default look for the
-"build.xml" file in your current directory, and compile Lucene.
+If you want to build Lucene independent of Solr, type:
+  ./gradlew -p lucene assemble
 
-If you want to build the documentation, type "ant documentation".
+If you want to build the documentation, type "./gradlew buildSite".
 
 For further information on Lucene, go to:
 
@@ -86,7 +75,3 @@ Please join the Lucene-User mailing list by visiting this site:
 Please post suggestions, questions, corrections or additions to this
 document to the lucene-user mailing list.
 
-This file was originally written by Steven J. Owens <pu...@darksleep.com>.
-This file was modified by Jon S. Stevens <jo...@latchkey.com>.
-
-Copyright (c) 2001-2020 The Apache Software Foundation.  All rights reserved.
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index a72a047..c282824 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -158,6 +158,8 @@ Other
 * LUCENE-9411: Fail complation on warnings, 9x gradle-only (Erick Erickson, Dawid Weiss)
   Deserves mention here as well as Lucene CHANGES.txt since it affects both.
 
+* LUCENE-9433: Remove Ant support from trunk (Erick Erickson)
+
 ======================= Lucene 8.7.0 =======================
 
 API Changes
diff --git a/lucene/analysis/analysis-module-build.xml b/lucene/analysis/analysis-module-build.xml
deleted file mode 100644
index b6c88f7..0000000
--- a/lucene/analysis/analysis-module-build.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analysis-module-build">
-
-  <!-- submodule build for analyzers.
-       ensures that each submodule is built under build/
-       consistent with its source structure so that
-       binary packaging makes sense -->
-
-  <basename property="submodule.project.name" file="${basedir}"/>
-  <dirname file="${ant.file.analysis-module-build}" property="analysis.dir"/>
-
-  <property name="build.dir" 
-        location="${analysis.dir}/../build/analysis/${submodule.project.name}"/>
-
-  <import file="../module-build.xml"/>
-
-  <target name="javadocs" depends="javadocs-analyzers-common, compile-core, check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../analyzers-common"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-
-</project>
diff --git a/lucene/analysis/build.xml b/lucene/analysis/build.xml
deleted file mode 100644
index 6dc1500..0000000
--- a/lucene/analysis/build.xml
+++ /dev/null
@@ -1,172 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers" default="default">
-
-  <description>
-    Additional Analyzers
-      - common: Additional Analyzers
-      - icu: Analyzers that use functionality from ICU
-      - kuromoji: Japanese Morphological Analyzer
-      - morfologik: Morfologik Stemmer
-      - nori: Korean Morphological Analyzer
-      - smartcn: Smart Analyzer for Simplified Chinese Text
-      - stempel: Algorithmic Stemmer for Polish
-  </description>
-
-  <dirname file="${ant.file.analyzers}" property="analyzers.dir"/>
-
-  <macrodef name="forall-analyzers">
-    <attribute name="target" />
-    <sequential>
-      <subant target="@{target}" inheritall="false" failonerror="true">
-         <propertyset refid="uptodate.and.compiled.properties"/>
-        <fileset dir="${analyzers.dir}" includes="*/build.xml" />
-      </subant>
-    </sequential>
-  </macrodef>
-
-  <propertyset id="uptodate.and.compiled.properties" dynamic="true">
-    <propertyref regex=".*\.uptodate$$"/>
-    <propertyref regex=".*\.compiled$$"/>
-    <propertyref regex=".*\.loaded$$"/>
-    <propertyref name="tests.totals.tmpfile" />
-  </propertyset>
-
-  <target name="common">
-    <ant dir="common" />
-  </target>
-
-  <target name="icu">
-    <ant dir="icu" />
-  </target>
-
-  <target name="kuromoji">
-    <ant dir="kuromoji" />
-  </target>
-
-  <target name="morfologik">
-    <ant dir="morfologik" />
-  </target>
-
-  <target name="nori">
-    <ant dir="nori" />
-  </target>
-
-  <target name="opennlp">
-    <ant dir="opennlp" />
-  </target>
-
-  <target name="phonetic">
-    <ant dir="phonetic" />
-  </target>
-
-  <target name="smartcn">
-    <ant dir="smartcn" />
-  </target>
-
-  <target name="stempel">
-    <ant dir="stempel" />
-  </target>
-
-  <target name="default" depends="compile"/>
-  <target name="compile" depends="common,icu,kuromoji,morfologik,nori,opennlp,phonetic,smartcn,stempel" />
-
-  <target name="clean">
-    <forall-analyzers target="clean"/>
-  </target>
-  <target name="resolve">
-    <forall-analyzers target="resolve"/>
-  </target>
-  <target name="validate">
-    <forall-analyzers target="validate"/>
-  </target>
-  <target name="compile-core">
-    <forall-analyzers target="compile-core"/>
-  </target>
-  <target name="compile-test">
-    <forall-analyzers target="compile-test"/>
-  </target>
-  <target name="compile-tools">
-    <forall-analyzers target="compile-tools"/>
-  </target>
-  <target name="test">
-    <forall-analyzers target="test"/>
-  </target>
-  <target name="test-nocompile">
-    <fail message="Target 'test-nocompile' will not run recursively.  First change directory to the module you want to test."/>
-  </target>
-  <target name="beast">
-    <fail message="The Beast only works inside of individual modules"/>
-  </target>
-  <target name="jar">
-    <forall-analyzers target="jar-core"/>
-  </target>
-  <target name="jar-src">
-    <forall-analyzers target="jar-src"/>
-  </target>
-  <target name="jar-core" depends="jar"/>
-
-  <target name="build-artifacts-and-tests" depends="default,compile-test" />
-
-  <target name="-dist-maven">
-    <forall-analyzers target="-dist-maven"/>
-  </target>
-
-  <target name="-install-to-maven-local-repo">
-    <forall-analyzers target="-install-to-maven-local-repo"/>
-  </target>
-
-  <target name="-validate-maven-dependencies">
-    <forall-analyzers target="-validate-maven-dependencies"/>
-  </target>
-
-  <target name="javadocs">
-    <forall-analyzers target="javadocs"/>
-  </target>
-
-  <target name="javadocs-index.html">
-    <forall-analyzers target="javadocs-index.html"/>
-  </target>
-
-  <target name="rat-sources">
-    <forall-analyzers target="rat-sources"/>
-  </target>
-
-  <target name="-ecj-javadoc-lint">
-    <forall-analyzers target="-ecj-javadoc-lint"/>
-  </target>
-
-  <target name="regenerate">
-    <forall-analyzers target="regenerate"/>
-  </target>
-  
-  <target name="-append-module-dependencies-properties">
-    <forall-analyzers target="-append-module-dependencies-properties"/>
-  </target>
-  
-  <target name="check-forbidden-apis">
-    <forall-analyzers target="check-forbidden-apis"/>
-  </target>
-
-  <target name="jacoco">
-    <forall-analyzers target="jacoco"/>
-  </target>
-
-</project>
diff --git a/lucene/analysis/common/build.xml b/lucene/analysis/common/build.xml
deleted file mode 100644
index 21c5fda..0000000
--- a/lucene/analysis/common/build.xml
+++ /dev/null
@@ -1,125 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers-common" default="default">
-
-  <description>
-   Analyzers for indexing content in different languages and domains.
-  </description>
-
-  <!-- some files for testing that do not have license headers -->
-  <property name="rat.excludes" value="**/*.aff,**/*.dic,**/*.txt,**/charfilter/*.htm*,**/*LuceneResourcesWikiPage.html"/>
-  <property name="rat.additional-includes" value="src/tools/**"/>
-
-  <import file="../analysis-module-build.xml"/>
-
-  <property name="unicode-props-file" location="src/java/org/apache/lucene/analysis/util/UnicodeProps.java"/>
-
-  <!-- Because of a bug in JFlex's ant task, HTMLStripCharFilter has to be generated last.   -->
-  <!-- Otherwise the "%apiprivate" option used in its specification will leak into following -->
-  <!-- ant task invocations.                                                                 -->
-  <target name="jflex" depends="init,clean-jflex,-jflex-wiki-tokenizer,-jflex-ClassicAnalyzer,
-                                -jflex-UAX29URLEmailTokenizer,-jflex-HTMLStripCharFilter"/>
-
-  <target name="-jflex-HTMLStripCharFilter" depends="-install-jflex,generate-jflex-html-char-entities">
-    <run-jflex dir="src/java/org/apache/lucene/analysis/charfilter" name="HTMLStripCharFilter"/>
-    <fixcrlf  file="src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java" encoding="UTF-8" eol="lf"/>
-  </target>
-
-  <target name="generate-jflex-html-char-entities">
-    <exec dir="src/java/org/apache/lucene/analysis/charfilter"
-          output="src/java/org/apache/lucene/analysis/charfilter/HTMLCharacterEntities.jflex"
-          executable="${python3.exe}" failonerror="true" logerror="true">
-      <!-- Tell Python not to write any bytecode cache into the filesystem: -->
-      <arg value="-B"/>
-      <arg value="htmlentity.py"/>
-    </exec>
-    <fixcrlf file="src/java/org/apache/lucene/analysis/charfilter/HTMLCharacterEntities.jflex" encoding="UTF-8" eol="lf"/>
-  </target>
-
-  <target name="-jflex-wiki-tokenizer" depends="-install-jflex">
-    <run-jflex dir="src/java/org/apache/lucene/analysis/wikipedia" name="WikipediaTokenizerImpl"/>
-  </target>
-
-  <target name="-jflex-ClassicAnalyzer" depends="-install-jflex">
-    <run-jflex dir="src/java/org/apache/lucene/analysis/standard" name="ClassicTokenizerImpl"/>
-  </target>
-
-  <target name="-jflex-UAX29URLEmailTokenizer" depends="-install-jflex">
-    <run-jflex-and-disable-buffer-expansion
-        dir="src/java/org/apache/lucene/analysis/standard" name="UAX29URLEmailTokenizerImpl"/>
-  </target>
-
-  <target name="clean-jflex">
-    <delete>
-      <fileset dir="src/java/org/apache/lucene/analysis/charfilter" includes="*.java">
-        <containsregexp expression="generated.*by.*JFlex"/>
-      </fileset>
-      <fileset dir="src/java/org/apache/lucene/analysis/wikipedia" includes="*.java">
-        <containsregexp expression="generated.*by.*JFlex"/>
-      </fileset>
-      <fileset dir="src/java/org/apache/lucene/analysis/standard" includes="**/*.java">
-        <containsregexp expression="generated.*by.*JFlex"/>
-      </fileset>
-    </delete>
-  </target>
-
-  <target xmlns:ivy="antlib:org.apache.ivy.ant" name="-resolve-icu4j" unless="icu4j.resolved" depends="ivy-availability-check,ivy-configure">
-    <loadproperties prefix="ivyversions" srcFile="${common.dir}/ivy-versions.properties"/>
-    <ivy:cachepath organisation="com.ibm.icu" module="icu4j" revision="${ivyversions./com.ibm.icu/icu4j}"
-      inline="true" conf="default" transitive="true" pathid="icu4j.classpath"/>
-    <property name="icu4j.resolved" value="true"/>
-  </target>
-
-  <target name="unicode-data" depends="-resolve-icu4j,resolve-groovy">
-    <groovy classpathref="icu4j.classpath" src="src/tools/groovy/generate-unicode-data.groovy"/>
-    <fixcrlf file="${unicode-props-file}" encoding="UTF-8"/>
-  </target>
-
-  <property name="tld.zones" value="https://www.internic.net/zones/root.zone"/>
-  <property name="tld.output" location="src/java/org/apache/lucene/analysis/standard/ASCIITLD.jflex-macro"/>
-
-  <target name="gen-tlds" depends="compile-tools">
-    <java
-      classname="org.apache.lucene.analysis.standard.GenerateJflexTLDMacros"
-      dir="."
-      fork="true"
-      failonerror="true">
-      <classpath>
-        <pathelement location="${build.dir}/classes/tools"/>
-      </classpath>
-      <arg value="${tld.zones}"/>
-      <arg value="${tld.output}"/>
-      <redirector alwayslog="true"/> <!-- stupid trick to get java class's stdout to ant's log -->
-    </java>
-  </target>
-
-  <target name="compile-tools" depends="common.compile-tools">
-    <compile
-      srcdir="src/tools/java"
-      destdir="${build.dir}/classes/tools">
-      <classpath refid="classpath"/>
-    </compile>
-  </target>
-
-  <target name="javadocs" depends="module-build.javadocs"/>
-
-  <target name="regenerate" depends="jflex,unicode-data"/>
-
-</project>
diff --git a/lucene/analysis/common/ivy.xml b/lucene/analysis/common/ivy.xml
deleted file mode 100644
index 9c5376b..0000000
--- a/lucene/analysis/common/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="analyzers-common"/>
-</ivy-module>
diff --git a/lucene/analysis/icu/build.xml b/lucene/analysis/icu/build.xml
deleted file mode 100644
index 32ab34d..0000000
--- a/lucene/analysis/icu/build.xml
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers-icu" default="default">
-
-  <description>
-   Analysis integration with ICU (International Components for Unicode).
-  </description>
-
-  <property name="rat.additional-includes" value="src/tools/**"/>
-
-  <import file="../analysis-module-build.xml"/>
-
-  <path id="icujar">
-     <fileset dir="lib"/>
-  </path>
-
-  <path id="classpath">
-    <pathelement path="${analyzers-common.jar}"/>
-    <path refid="icujar"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <path id="test.classpath">
-    <path refid="test.base.classpath" />
-    <pathelement path="src/test-files" />
-  </path>
-
-  <target name="compile-core" depends="jar-analyzers-common, common.compile-core" />
-
-  <property name="utr30.data.dir" location="src/data/utr30"/>
-  <target name="gen-utr30-data-files" depends="compile-tools">
-    <java
-        classname="org.apache.lucene.analysis.icu.GenerateUTR30DataFiles"
-        dir="${utr30.data.dir}"
-        fork="true"
-        failonerror="true">
-      <classpath>
-        <path refid="icujar"/>
-        <pathelement location="${build.dir}/classes/tools"/>
-      </classpath>
-    </java>
-  </target>
-
-  <property name="gennorm2.src.files"
-    value="nfc.txt nfkc.txt nfkc_cf.txt BasicFoldings.txt DiacriticFolding.txt DingbatFolding.txt HanRadicalFolding.txt NativeDigitFolding.txt"/>
-  <property name="gennorm2.tmp" value="${build.dir}/gennorm2/utr30.tmp"/>
-  <property name="gennorm2.dst" value="${resources.dir}/org/apache/lucene/analysis/icu/utr30.nrm"/>
-  <target name="gennorm2" depends="gen-utr30-data-files">
-    <echo>Note that the gennorm2 and icupkg tools must be on your PATH. These tools
-are part of the ICU4C package. See http://site.icu-project.org/ </echo>
-    <mkdir dir="${build.dir}/gennorm2"/>
-    <exec executable="gennorm2" failonerror="true">
-      <arg value="-v"/>
-      <arg value="-s"/>
-      <arg value="${utr30.data.dir}"/>
-      <arg line="${gennorm2.src.files}"/>
-      <arg value="-o"/>
-      <arg value="${gennorm2.tmp}"/>
-    </exec>
-    <!-- now convert binary file to big-endian -->
-    <exec executable="icupkg" failonerror="true">
-      <arg value="-tb"/>
-      <arg value="${gennorm2.tmp}"/>
-      <arg value="${gennorm2.dst}"/>
-    </exec>
-    <delete file="${gennorm2.tmp}"/>
-  </target>
-  
-  <property name="rbbi.src.dir" location="src/data/uax29"/>
-  <property name="rbbi.dst.dir" location="${resources.dir}/org/apache/lucene/analysis/icu/segmentation"/>
-  
-  <target name="genrbbi" depends="compile-tools">
-    <mkdir dir="${rbbi.dst.dir}"/>
-    <java
-      classname="org.apache.lucene.analysis.icu.RBBIRuleCompiler"
-      dir="."
-      fork="true"
-      failonerror="true">
-      <classpath>
-        <path refid="icujar"/>
-        <pathelement location="${build.dir}/classes/tools"/>
-      </classpath>
-      <assertions>
-        <enable package="org.apache.lucene"/>
-      </assertions>
-      <arg value="${rbbi.src.dir}"/>
-      <arg value="${rbbi.dst.dir}"/>
-    </java>
-  </target>
-
-  <target name="compile-tools" depends="init,common.compile-tools">
-    <compile
-      srcdir="src/tools/java"
-      destdir="${build.dir}/classes/tools">
-      <classpath refid="classpath"/>
-    </compile>
-  </target>
-
-  <target name="regenerate" depends="gen-utr30-data-files,gennorm2,genrbbi"/>
-
-</project>
diff --git a/lucene/analysis/icu/ivy.xml b/lucene/analysis/icu/ivy.xml
deleted file mode 100644
index 97b58f3..0000000
--- a/lucene/analysis/icu/ivy.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="analyzers-icu"/>
-  <configurations defaultconfmapping="compile->master">
-    <conf name="compile" transitive="false"/>
-  </configurations>
-  <dependencies>
-    <dependency org="com.ibm.icu" name="icu4j" rev="${/com.ibm.icu/icu4j}" conf="compile"/>
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/> 
-  </dependencies>
-</ivy-module>
diff --git a/lucene/analysis/kuromoji/build.xml b/lucene/analysis/kuromoji/build.xml
deleted file mode 100644
index 7afa31d..0000000
--- a/lucene/analysis/kuromoji/build.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers-kuromoji" default="default" xmlns:ivy="antlib:org.apache.ivy.ant">
-
-  <description>
-    Japanese Morphological Analyzer
-  </description>
-
-  <!-- currently whether rat detects this as binary or not
-       is platform dependent?! -->
-  <property name="rat.excludes" value="**/*.txt,**/bocchan.utf-8"/>
-
-  <!-- we don't want to pull in ipadic/naist etc -->
-  <property name="ivy.default.configuration" value="default"/>
-  <import file="../analysis-module-build.xml"/> 
-
-  <!-- default configuration: uses mecab-ipadic -->
-  <property name="ipadic.type" value="ipadic"/>
-  <property name="ipadic.version" value="mecab-ipadic-2.7.0-20070801" />
-
-  <!-- alternative configuration: uses mecab-naist-jdic
-  <property name="ipadic.type" value="naist"/>
-  <property name="ipadic.version" value="mecab-naist-jdic-0.6.3b-20111013" />
-  -->
-  
-  <property name="dict.src.file" value="${ipadic.version}.tar.gz" />
-  <property name="dict.src.dir" value="${build.dir}/${ipadic.version}" />
-  <property name="dict.encoding" value="euc-jp"/>
-  <property name="dict.format" value="ipadic"/>
-  <property name="dict.normalize" value="false"/>
-  <property name="dict.target.dir" location="${resources.dir}"/>
-
-
-  <available type="dir" file="${build.dir}/${ipadic.version}" property="dict.available"/>
-
-  <path id="classpath">
-    <dirset dir="${build.dir}">
-      <include name="classes/java"/>
-    </dirset>
-    <pathelement path="${analyzers-common.jar}"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-analyzers-common, common.compile-core" />
-  <target name="download-dict" depends="ivy-availability-check,ivy-fail,ivy-configure" unless="dict.available">
-     <ivy:retrieve pattern="${build.dir}/${dict.src.file}" conf="${ipadic.type}" symlink="${ivy.symlink}"/>
-     <!-- TODO: we should checksum too -->
-     <gunzip src="${build.dir}/${dict.src.file}"/>
-     <untar src="${build.dir}/${ipadic.version}.tar" dest="${build.dir}"/>
-  </target>
-
-  <target name="patch-dict" depends="download-dict">
-    <patch patchfile="src/tools/patches/Noun.proper.csv.patch"
-           originalfile="${dict.src.dir}/Noun.proper.csv"/>
-  </target>
-
-  <target name="build-dict" depends="compile, patch-dict">
-    <sequential>
-      <delete verbose="true">
-        <fileset dir="${resources.dir}/org/apache/lucene/analysis/ja/dict" includes="**/*"/>
-      </delete>
-      <!-- TODO: optimize the dictionary construction a bit so that you don't need 1G -->
-      <java fork="true" failonerror="true" maxmemory="1g" classname="org.apache.lucene.analysis.ja.util.DictionaryBuilder">
-        <classpath refid="classpath"/>
-        <assertions>
-          <enable package="org.apache.lucene"/>
-        </assertions>
-        <arg value="${dict.format}"/>
-        <arg value="${dict.src.dir}"/>
-        <arg value="${dict.target.dir}"/>
-        <arg value="${dict.encoding}"/>
-        <arg value="${dict.normalize}"/>
-      </java>
-    </sequential>
-  </target>
-
-  <target name="compile-test" depends="module-build.compile-test"/>
-
-  <target name="regenerate" depends="build-dict"/>
-
-</project>
diff --git a/lucene/analysis/kuromoji/ivy.xml b/lucene/analysis/kuromoji/ivy.xml
deleted file mode 100644
index ee256b9..0000000
--- a/lucene/analysis/kuromoji/ivy.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="analyzers-kuromoji"/>
-  
-  <configurations defaultconfmapping="ipadic->default;naist->default"> <!-- 'master' conf not available to map to -->
-    <conf name="default" description="explicitly declare this configuration in order to not download dictionaries unless explicitly called for"/>
-    <conf name="ipadic" description="ipadic dictionary" transitive="false"/>
-    <conf name="naist" description="naist-jdic dictionary" transitive="false"/>
-  </configurations>
-
-  <dependencies>
-    <dependency org="mecab" name="mecab-ipadic" rev="${/mecab/mecab-ipadic}" conf="ipadic"> 
-      <artifact name="ipadic" type=".tar.gz" url="https://jaist.dl.sourceforge.net/project/mecab/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz"/>
-    </dependency>
-    <dependency org="mecab" name="mecab-naist-jdic" rev="${/mecab/mecab-naist-jdic}" conf="naist">
-      <artifact name="mecab-naist-jdic" type=".tar.gz" url=" https://rwthaachen.dl.osdn.jp/naist-jdic/53500/mecab-naist-jdic-0.6.3b-20111013.tar.gz"/>
-    </dependency>
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/>
-  </dependencies>
-</ivy-module>
diff --git a/lucene/analysis/morfologik/build.xml b/lucene/analysis/morfologik/build.xml
deleted file mode 100644
index fca0622..0000000
--- a/lucene/analysis/morfologik/build.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers-morfologik" default="default">
-  <description>
-    Analyzer for dictionary stemming, built-in Polish dictionary
-  </description>
-
-  <import file="../analysis-module-build.xml"/>
-
-  <path id="classpath">
-    <pathelement path="${analyzers-common.jar}"/>
-    <fileset dir="lib"/>
-    <path refid="base.classpath"/>
-  </path>
-  
-  
-  <path id="test.classpath">
-    <path refid="test.base.classpath" />
-    <pathelement path="src/test-files" />
-  </path>
-
-  <target name="compile-core" depends="jar-analyzers-common, common.compile-core" />
-</project>
diff --git a/lucene/analysis/morfologik/ivy.xml b/lucene/analysis/morfologik/ivy.xml
deleted file mode 100644
index f0cc234..0000000
--- a/lucene/analysis/morfologik/ivy.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="analyzers-morfologik"/>
-  <configurations defaultconfmapping="compile->master">
-    <conf name="compile" transitive="false"/>
-  </configurations>
-  <dependencies>
-    <dependency org="org.carrot2" name="morfologik-polish" rev="${/org.carrot2/morfologik-polish}" conf="compile"/>
-    <dependency org="org.carrot2" name="morfologik-fsa" rev="${/org.carrot2/morfologik-fsa}" conf="compile"/>
-    <dependency org="org.carrot2" name="morfologik-stemming" rev="${/org.carrot2/morfologik-stemming}" conf="compile"/>
-    <dependency org="ua.net.nlp" name="morfologik-ukrainian-search" rev="${/ua.net.nlp/morfologik-ukrainian-search}" conf="compile"/>
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/> 
-  </dependencies>
-</ivy-module>
diff --git a/lucene/analysis/nori/build.xml b/lucene/analysis/nori/build.xml
deleted file mode 100644
index 7d5b0b9..0000000
--- a/lucene/analysis/nori/build.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers-nori" default="default" xmlns:ivy="antlib:org.apache.ivy.ant">
-
-  <description>
-    Korean Morphological Analyzer
-  </description>
-
-  <!-- currently whether rat detects this as binary or not
-       is platform dependent?! -->
-  <property name="rat.excludes" value="**/*.txt,**/bocchan.utf-8"/>
-
-  <!-- we don't want to pull in ipadic/naist etc -->
-  <property name="ivy.default.configuration" value="default"/>
-  <import file="../analysis-module-build.xml"/>
-
-  <!-- default configuration for Korean: uses mecab-ko-dic -->
-  <property name="dict.type" value="mecab-ko-dic"/>
-  <property name="dict.version" value="mecab-ko-dic-2.0.3-20170922" />
-
-  <property name="dict.src.file" value="${dict.version}.tar.gz" />
-  <property name="dict.src.dir" value="${build.dir}/${dict.version}" />
-  <property name="dict.encoding" value="utf-8"/>
-  <property name="dict.normalize" value="false"/>
-  <property name="dict.target.dir" location="${resources.dir}"/>
-
-  <available type="dir" file="${build.dir}/${dict.version}" property="mecab-ko.dict.available"/>
-
-  <path id="classpath">
-    <dirset dir="${build.dir}">
-      <include name="classes/java"/>
-    </dirset>
-    <pathelement path="${analyzers-common.jar}"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-analyzers-common, common.compile-core" />
-  <target name="download-dict" depends="ivy-availability-check,ivy-fail,ivy-configure" unless="mecab-ko.dict.available">
-    <ivy:retrieve pattern="${build.dir}/${dict.src.file}" conf="${dict.type}" symlink="${ivy.symlink}"/>
-    <!-- TODO: we should checksum too -->
-    <gunzip src="${build.dir}/${dict.src.file}"/>
-    <untar src="${build.dir}/${dict.version}.tar" dest="${build.dir}"/>
-  </target>
-
-  <target name="build-dict" depends="compile, download-dict">
-    <sequential>
-      <delete verbose="true">
-        <fileset dir="${resources.dir}/org/apache/lucene/analysis/ko/dict" includes="**/*"/>
-      </delete>
-      <!-- TODO: optimize the dictionary construction a bit so that you don't need 1G -->
-      <java fork="true" failonerror="true" maxmemory="1g" classname="org.apache.lucene.analysis.ko.util.DictionaryBuilder">
-        <classpath refid="classpath"/>
-        <assertions>
-          <enable package="org.apache.lucene"/>
-        </assertions>
-        <arg value="${dict.src.dir}"/>
-        <arg value="${dict.target.dir}"/>
-        <arg value="${dict.encoding}"/>
-        <arg value="${dict.normalize}"/>
-      </java>
-    </sequential>
-  </target>
-
-  <target name="compile-test" depends="module-build.compile-test"/>
-
-  <target name="regenerate" depends="build-dict"/>
-</project>
diff --git a/lucene/analysis/nori/ivy.xml b/lucene/analysis/nori/ivy.xml
deleted file mode 100644
index 8d32937..0000000
--- a/lucene/analysis/nori/ivy.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="analyzers-nori"/>
-
-  <configurations defaultconfmapping="mecab-ko-dic->default"> <!-- 'master' conf not available to map to -->
-    <conf name="default" description="explicitly declare this configuration in order to not download dictionaries unless explicitly called for"/>
-    <conf name="mecab-ko-dic" description="mecab-ko dictionary for Korean" transitive="false"/>
-  </configurations>
-
-  <dependencies>
-    <dependency org="mecab" name="mecab-ko-dic" rev="${/mecab/mecab-ko-dic}" conf="mecab-ko-dic">
-      <artifact name="mecab-ko-dic" type=".tar.gz" url="https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.0.3-20170922.tar.gz" />
-    </dependency>
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/>
-  </dependencies>
-</ivy-module>
diff --git a/lucene/analysis/opennlp/build.xml b/lucene/analysis/opennlp/build.xml
deleted file mode 100644
index 04f7eac..0000000
--- a/lucene/analysis/opennlp/build.xml
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers-opennlp" default="default">
-
-  <description>
-    OpenNLP Library Integration
-  </description>
-
-  <path id="opennlpjars">
-    <fileset dir="lib"/>
-  </path>
-
-  <property name="test.model.data.dir" location="src/tools/test-model-data"/>
-  <property name="tests.userdir" location="src/test-files"/>
-  <property name="test.model.dir" location="${tests.userdir}/org/apache/lucene/analysis/opennlp"/>
-
-  <import file="../analysis-module-build.xml"/>
-
-  <property name="analysis-extras.conf.dir"
-            location="${common.dir}/../solr/contrib/analysis-extras/src/test-files/analysis-extras/solr/collection1/conf"/>
-
-  <path id="classpath">
-    <pathelement path="${analyzers-common.jar}"/>
-    <path refid="opennlpjars"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <path id="test.classpath">
-    <path refid="test.base.classpath"/>
-    <pathelement path="${tests.userdir}"/>
-  </path>
-
-  <target name="compile-core" depends="jar-analyzers-common, common.compile-core" />
-
-  <!--
-    This does not create real NLP models, just small unencumbered ones for the unit tests.
-    All text taken from reuters corpus.
-    Tags applied with online demos at CCG Urbana-Champaign.
-    -->
-  <target name="train-test-models" description="Train all small test models for unit tests" depends="resolve">
-    <mkdir dir="${test.model.dir}"/>
-    <!-- https://opennlp.apache.org/docs/1.9.0/manual/opennlp.html#tools.sentdetect.training -->
-    <trainModel command="SentenceDetectorTrainer" lang="en" data="sentences.txt" model="en-test-sent.bin"/>
-    <copy file="${test.model.dir}/en-test-sent.bin" todir="${analysis-extras.conf.dir}"/>
-
-    <!-- https://opennlp.apache.org/docs/1.9.0/manual/opennlp.html#tools.tokenizer.training -->
-    <trainModel command="TokenizerTrainer" lang="en" data="tokenizer.txt" model="en-test-tokenizer.bin"/>
-    <copy file="${test.model.dir}/en-test-tokenizer.bin" todir="${analysis-extras.conf.dir}"/>
-
-    <!-- https://opennlp.apache.org/docs/1.9.0/manual/opennlp.html#tools.postagger.training -->
-    <trainModel command="POSTaggerTrainer" lang="en" data="pos.txt" model="en-test-pos-maxent.bin"/>
-
-    <!-- https://opennlp.apache.org/docs/1.9.0/manual/opennlp.html#tools.chunker.training -->
-    <trainModel command="ChunkerTrainerME" lang="en" data="chunks.txt" model="en-test-chunker.bin"/>
-
-    <!-- https://opennlp.apache.org/docs/1.9.0/manual/opennlp.html#tools.namefind.training -->
-    <trainModel command="TokenNameFinderTrainer" lang="en" data="ner.txt" model="en-test-ner.bin">
-      <extra-args>
-        <arg value="-params"/>
-        <arg value="ner_TrainerParams.txt"/>
-      </extra-args>
-    </trainModel>
-    <copy file="${test.model.dir}/en-test-ner.bin" todir="${analysis-extras.conf.dir}"/>
-
-    <!-- https://opennlp.apache.org/docs/1.9.0/manual/opennlp.html#tools.lemmatizer.training -->
-    <trainModel command="LemmatizerTrainerME" lang="en" data="lemmas.txt" model="en-test-lemmatizer.bin"/>
-  </target>
-
-  <macrodef name="trainModel">
-    <attribute name="command"/>
-    <attribute name="lang"/>
-    <attribute name="data"/>
-    <attribute name="model"/>
-    <element name="extra-args" optional="true"/>
-    <sequential>
-      <java classname="opennlp.tools.cmdline.CLI"
-            dir="${test.model.data.dir}"
-            fork="true"
-            failonerror="true">
-        <classpath>
-          <path refid="opennlpjars"/>
-        </classpath>
-
-        <arg value="@{command}"/>
-
-        <arg value="-lang"/>
-        <arg value="@{lang}"/>
-
-        <arg value="-data"/>
-        <arg value="@{data}"/>
-
-        <arg value="-model"/>
-        <arg value="${test.model.dir}/@{model}"/>
-
-        <extra-args/>
-      </java>
-    </sequential>
-  </macrodef>
-
-  <target name="regenerate" depends="train-test-models"/>
-</project>
diff --git a/lucene/analysis/opennlp/ivy.xml b/lucene/analysis/opennlp/ivy.xml
deleted file mode 100644
index cbbae64..0000000
--- a/lucene/analysis/opennlp/ivy.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="analyzers-opennlp" />
-  <configurations defaultconfmapping="compile->master">
-    <conf name="compile" transitive="false"/>
-  </configurations>
-  <dependencies>
-    <dependency org="org.apache.opennlp" name="opennlp-tools" rev="${/org.apache.opennlp/opennlp-tools}" transitive="false" conf="compile" />
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}" />
-  </dependencies>
-</ivy-module>
diff --git a/lucene/analysis/phonetic/build.xml b/lucene/analysis/phonetic/build.xml
deleted file mode 100644
index 49d5726..0000000
--- a/lucene/analysis/phonetic/build.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers-phonetic" default="default">
-
-  <description>
-    Analyzer for indexing phonetic signatures (for sounds-alike search)
-  </description>
-
-  <import file="../analysis-module-build.xml"/>
-
-  <path id="classpath">
-    <pathelement path="${analyzers-common.jar}"/>
-    <fileset dir="lib"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-analyzers-common, common.compile-core" />
-</project>
diff --git a/lucene/analysis/phonetic/ivy.xml b/lucene/analysis/phonetic/ivy.xml
deleted file mode 100644
index df7d800..0000000
--- a/lucene/analysis/phonetic/ivy.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="analyzers-phonetic"/>
-  <configurations defaultconfmapping="compile->master">
-    <conf name="compile" transitive="false"/>
-  </configurations>
-  <dependencies>
-    <dependency org="commons-codec" name="commons-codec" rev="${/commons-codec/commons-codec}" conf="compile"/>
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/> 
-  </dependencies>
-</ivy-module>
diff --git a/lucene/analysis/smartcn/build.xml b/lucene/analysis/smartcn/build.xml
deleted file mode 100644
index 01e0682..0000000
--- a/lucene/analysis/smartcn/build.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers-smartcn" default="default">
-
-  <description>
-    Analyzer for indexing Chinese
-  </description>
-
-  <import file="../analysis-module-build.xml"/>
-
-  <path id="classpath">
-    <pathelement path="${analyzers-common.jar}"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-analyzers-common, common.compile-core" />
-</project>
diff --git a/lucene/analysis/smartcn/ivy.xml b/lucene/analysis/smartcn/ivy.xml
deleted file mode 100644
index 842688d..0000000
--- a/lucene/analysis/smartcn/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="analyzers-smartcn"/>
-</ivy-module>
diff --git a/lucene/analysis/stempel/build.xml b/lucene/analysis/stempel/build.xml
deleted file mode 100644
index 64a823a..0000000
--- a/lucene/analysis/stempel/build.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="analyzers-stempel" default="default">
-
-  <description>
-    Analyzer for indexing Polish
-  </description>
-
-  <import file="../analysis-module-build.xml"/>
-
-  <path id="classpath">
-    <pathelement path="${analyzers-common.jar}"/>
-    <path refid="base.classpath"/>
-  </path>
-  
-  <target name="compile-core" depends="jar-analyzers-common, common.compile-core"/>
-</project>
diff --git a/lucene/analysis/stempel/ivy.xml b/lucene/analysis/stempel/ivy.xml
deleted file mode 100644
index afccee3..0000000
--- a/lucene/analysis/stempel/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="analyzers-stempel"/>
-</ivy-module>
diff --git a/lucene/backward-codecs/build.xml b/lucene/backward-codecs/build.xml
deleted file mode 100644
index 3de2979..0000000
--- a/lucene/backward-codecs/build.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  -->
-
-<project name="backward-codecs" default="default">
-
-  <description>
-    Codecs for older versions of Lucene.
-  </description>
-
-  <import file="../module-build.xml"/>
-
-</project>
diff --git a/lucene/backward-codecs/ivy.xml b/lucene/backward-codecs/ivy.xml
deleted file mode 100644
index fe933f0..0000000
--- a/lucene/backward-codecs/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="backward-codecs"/>
-</ivy-module>
diff --git a/lucene/benchmark/build.xml b/lucene/benchmark/build.xml
deleted file mode 100644
index 2f53ff4..0000000
--- a/lucene/benchmark/build.xml
+++ /dev/null
@@ -1,289 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="benchmark" default="default">
-
-    <description>
-      System for benchmarking Lucene
-    </description>
-
-    <import file="../module-build.xml"/>
-    <property name="working.dir" location="work"/>
-
-    <!-- benchmark creates lots of sysout stuff, so dont run forbidden! -->
-    <target name="-check-forbidden-sysout"/>
-
-    <target name="check-files">
-        <available file="temp/news20.tar.gz" property="news20.exists"/>
-
-        <available file="${working.dir}/20_newsgroup" property="news20.expanded"/>
-
-        <available file="temp/reuters21578.tar.gz" property="reuters.exists"/>
-        <available file="${working.dir}/reuters" property="reuters.expanded"/>
-        <available file="${working.dir}/reuters-out" property="reuters.extracted"/>
-        <available file="temp/20news-18828.tar.gz" property="20news-18828.exists"/>
-        <available file="${working.dir}/20news-18828" property="20news-18828.expanded"/>
-        <available file="${working.dir}/mini_newsgroups" property="mini.expanded"/>
-        <available file="temp/allCountries.txt.bz2" property="geonames.exists"/>
-        <available file="${working.dir}/geonames" property="geonames.expanded"/>
-        
-        <available file="temp/enwiki-20070527-pages-articles.xml.bz2" property="enwiki.exists"/>
-        <available file="temp/enwiki-20070527-pages-articles.xml" property="enwiki.expanded"/>
-        <available file="${working.dir}/enwiki.txt" property="enwiki.extracted"/>
-      <available file="temp/${top.100k.words.archive.filename}"
-                   property="top.100k.words.archive.present"/>
-      <available file="${working.dir}/top100k-out" 
-                   property="top.100k.word.files.expanded"/>
-    </target>
-
-    <target name="enwiki-files" depends="check-files">
-        <mkdir dir="temp"/>
-        <antcall target="get-enwiki"/>
-        <antcall target="expand-enwiki"/>
-    </target>
-
-    <target name="get-enwiki" unless="enwiki.exists">
-        <get src="https://home.apache.org/~dsmiley/data/enwiki-20070527-pages-articles.xml.bz2"
-             dest="temp/enwiki-20070527-pages-articles.xml.bz2"/>
-    </target>
-
-    <target name="expand-enwiki"  unless="enwiki.expanded">
-        <bunzip2 src="temp/enwiki-20070527-pages-articles.xml.bz2" dest="temp"/>
-    </target>
-
-    <target name="geonames-files" depends="check-files" description="Get data for spatial.alg">
-        <mkdir dir="temp"/>
-        <antcall target="get-geonames"/>
-        <antcall target="expand-geonames"/>
-    </target>
-
-    <target name="get-geonames" unless="geonames.exists">
-        <!-- note: latest data is at: https://download.geonames.org/export/dump/allCountries.zip
-         and then randomize with: gsort -R -S 1500M file.txt > file_random.txt
-         and then compress with: bzip2 -9 -k file_random.txt -->
-      <get src="https://home.apache.org/~dsmiley/data/geonames_20130921_randomOrder_allCountries.txt.bz2"
-             dest="temp/allCountries.txt.bz2"/>
-    </target>
-
-    <target name="expand-geonames" unless="geonames.expanded">
-        <mkdir dir="${working.dir}/geonames"/>
-        <bunzip2 src="temp/allCountries.txt.bz2" dest="${working.dir}/geonames"/>
-    </target>
-
-    <target name="get-news-20" unless="20news-18828.exists">
-        <get src="https://www-2.cs.cmu.edu/afs/cs.cmu.edu/project/theo-20/www/data/news20.tar.gz"
-             dest="temp/news20.tar.gz"/>
-
-    </target>
-    <target name="get-reuters" unless="reuters.exists">
-        <!-- Please note: there is no HTTPS url. As this is only test data, we don't care: -->
-        <get src="http://www.daviddlewis.com/resources/testcollections/reuters21578/reuters21578.tar.gz"
-            dest="temp/reuters21578.tar.gz"/>
-    </target>
-
-    <target name="expand-news-20"  unless="news20.expanded">
-        <gunzip src="temp/news20.tar.gz" dest="temp"/>
-        <untar src="temp/news20.tar" dest="${working.dir}"/>
-    </target>
-    <target name="expand-reuters" unless="reuters.expanded">
-        <gunzip src="temp/reuters21578.tar.gz" dest="temp"/>
-        <mkdir dir="${working.dir}/reuters"/>
-        <untar src="temp/reuters21578.tar" dest="${working.dir}/reuters"/>
-        <delete >
-            <fileset dir="${working.dir}/reuters">
-                <include name="*.txt"/>
-            </fileset>
-        </delete>
-
-    </target>
-    <target name="extract-reuters" depends="check-files" unless="reuters.extracted">
-        <java classname="org.apache.lucene.benchmark.utils.ExtractReuters" maxmemory="1024M" fork="true">
-            <classpath refid="run.classpath"/>
-            <arg file="${working.dir}/reuters"/>
-            <arg file="${working.dir}/reuters-out"/>
-        </java>
-    </target>
-    <target name="get-20news-18828" unless="20news-18828.exists">
-        <!-- TODO: URL no longer works (404 Not found): -->
-        <get src="https://people.csail.mit.edu/u/j/jrennie/public_html/20Newsgroups/20news-18828.tar.gz"
-             dest="temp/20news-18828.tar.gz"/>
-
-    </target>
-    <target name="expand-20news-18828" unless="20news-18828.expanded">
-        <gunzip src="temp/20news-18828.tar.gz" dest="temp"/>
-        <untar src="temp/20news-18828.tar" dest="${working.dir}"/>
-    </target>
-    <target name="get-mini-news" unless="mini.exists">
-        <get src="https://kdd.ics.uci.edu/databases/20newsgroups/mini_newsgroups.tar.gz"
-             dest="temp/mini_newsgroups.tar.gz"/>
-    </target>
-    <target name="expand-mini-news" unless="mini.expanded">
-        <gunzip src="temp/mini_newsgroups.tar.gz" dest="temp"/>
-        <untar src="temp/mini_newsgroups.tar" dest="${working.dir}"/>
-    </target>
-
-  <property name="top.100k.words.archive.filename" 
-            value="top.100k.words.de.en.fr.uk.wikipedia.2009-11.tar.bz2"/>
-  <property name="top.100k.words.archive.base.url"
-            value="https://home.apache.org/~rmuir/wikipedia"/>
-  <target name="get-top-100k-words-archive" unless="top.100k.words.archive.present">
-    <mkdir dir="temp"/>
-      <get src="${top.100k.words.archive.base.url}/${top.100k.words.archive.filename}"
-           dest="temp/${top.100k.words.archive.filename}"/>
-  </target>
-  <target name="expand-top-100k-word-files" unless="top.100k.word.files.expanded">
-    <mkdir dir="${working.dir}/top100k-out"/>
-      <untar src="temp/${top.100k.words.archive.filename}"
-             overwrite="true" compression="bzip2" dest="${working.dir}/top100k-out"/>
-  </target>
-  
-  <target name="top-100k-wiki-word-files" depends="check-files">
-    <mkdir dir="${working.dir}"/>
-    <antcall target="get-top-100k-words-archive"/>
-    <antcall target="expand-top-100k-word-files"/>
-  </target>
-  
-    <target name="get-files" depends="check-files">
-        <mkdir dir="temp"/>
-        <antcall target="get-reuters"/>
-        <antcall target="expand-reuters"/>
-        <antcall target="extract-reuters"/>
-    </target>
-
-    <path id="classpath">
-      <pathelement path="${memory.jar}"/>
-      <pathelement path="${highlighter.jar}"/>
-      <pathelement path="${analyzers-common.jar}"/>
-      <pathelement path="${queryparser.jar}"/>
-      <pathelement path="${facet.jar}"/>
-      <pathelement path="${spatial-extras.jar}"/>
-      <pathelement path="${queries.jar}"/>
-      <pathelement path="${codecs.jar}"/>
-      <pathelement path="${join.jar}"/>
-      <path refid="base.classpath"/>
-      <fileset dir="lib"/>
-    </path>
-    <path id="run.classpath">
-        <path refid="classpath"/>
-        <pathelement location="${build.dir}/classes/java"/>
-        <pathelement path="${benchmark.ext.classpath}"/>
-    </path>
-
-    <target name="javadocs" depends="javadocs-memory,javadocs-highlighter,javadocs-analyzers-common,
-      javadocs-queryparser,javadocs-facet,javadocs-spatial-extras,compile-core,check-javadocs-uptodate"
-            unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../memory"/>
-        <link href="../highlighter"/>
-        <link href="../analyzers-common"/>
-        <link href="../queryparser"/>
-        <link href="../facet"/>
-        <link href="../spatial-extras"/>
-      </links>
-    </invoke-module-javadoc>
-    </target>
-
-    <property name="task.alg" location="conf/micro-standard.alg"/>
-    <property name="task.mem" value="140M"/>
-
-    <target name="run-task" depends="compile,check-files,get-files" 
-     description="Run compound penalty perf test (optional: -Dtask.alg=your-algorithm-file -Dtask.mem=java-max-mem)">
-        <echo>Working Directory: ${working.dir}</echo>
-        <java classname="org.apache.lucene.benchmark.byTask.Benchmark" maxmemory="${task.mem}" fork="true">
-            <classpath refid="run.classpath"/>
-            <arg file="${task.alg}"/>
-        </java>
-    </target>
-
-    <target name="enwiki" depends="compile,check-files,enwiki-files">
-        <echo>Working Directory: ${working.dir}</echo>
-        <java classname="org.apache.lucene.benchmark.byTask.Benchmark" maxmemory="1024M" fork="true">
-            <assertions>
-              <enable/>
-            </assertions>
-            <classpath refid="run.classpath"/>
-            <arg file="conf/extractWikipedia.alg"/>
-        </java>
-    </target>
-
-  <property name="collation.alg.file" location="conf/collation.alg"/>
-  <property name="collation.output.file" 
-            value="${working.dir}/collation.benchmark.output.txt"/>
-  <property name="collation.jira.output.file" 
-            value="${working.dir}/collation.bm2jira.output.txt"/>
-  
-  <path id="collation.runtime.classpath">
-    <path refid="run.classpath"/>
-      <pathelement path="${analyzers-icu.jar}"/>
-  </path>
-  
-  <target name="collation" depends="compile,jar-analyzers-icu,top-100k-wiki-word-files">
-      <echo>Running benchmark with alg file: ${collation.alg.file}</echo>
-      <java fork="true" classname="org.apache.lucene.benchmark.byTask.Benchmark" 
-            maxmemory="${task.mem}" output="${collation.output.file}">
-        <classpath refid="collation.runtime.classpath"/>
-        <arg file="${collation.alg.file}"/>
-      </java>
-      <echo>Benchmark output is in file: ${collation.output.file}</echo>
-      <echo>Converting to JIRA table format...</echo>
-      <exec executable="${perl.exe}" output="${collation.jira.output.file}" failonerror="true">
-        <arg value="-CSD"/>
-        <arg value="scripts/collation.bm2jira.pl"/>
-        <arg value="${collation.output.file}"/>
-      </exec>
-      <echo>Benchmark output in JIRA table format is in file: ${collation.jira.output.file}</echo>
-  </target>
-  
-    <property name="shingle.alg.file" location="conf/shingle.alg"/>
-    <property name="shingle.output.file" 
-              value="${working.dir}/shingle.benchmark.output.txt"/>
-    <property name="shingle.jira.output.file" 
-              value="${working.dir}/shingle.bm2jira.output.txt"/>
-  
-    <path id="shingle.runtime.classpath">
-      <path refid="run.classpath"/>
-    </path>
-  
-    <target name="shingle" depends="compile,get-files">
-      <echo>Running benchmark with alg file: ${shingle.alg.file}</echo>
-      <java fork="true" classname="org.apache.lucene.benchmark.byTask.Benchmark" 
-            maxmemory="${task.mem}" output="${shingle.output.file}">
-        <classpath refid="run.classpath"/>
-        <arg file="${shingle.alg.file}"/>
-      </java>
-      <echo>Benchmark output is in file: ${shingle.output.file}</echo>
-      <echo>Converting to JIRA table format...</echo>
-      <exec executable="${perl.exe}" output="${shingle.jira.output.file}" failonerror="true">
-        <arg value="-CSD"/>
-        <arg value="scripts/shingle.bm2jira.pl"/>
-        <arg value="${shingle.output.file}"/>
-      </exec>
-      <echo>Benchmark output in JIRA table format is in file: ${shingle.jira.output.file}</echo>
-    </target>
-
-    <target name="init" depends="module-build.init,jar-memory,jar-highlighter,jar-analyzers-common,jar-queryparser,jar-facet,jar-spatial-extras,jar-codecs,jar-join"/>
-  
-    <target name="compile-test" depends="copy-alg-files-for-testing,module-build.compile-test"/>
-    <target name="copy-alg-files-for-testing" description="copy .alg files as resources for testing">
-      <copy todir="${build.dir}/classes/test/conf">
-        <fileset dir="conf"/>
-      </copy>
-    </target>
-</project>
diff --git a/lucene/benchmark/ivy.xml b/lucene/benchmark/ivy.xml
deleted file mode 100644
index 23c208c..0000000
--- a/lucene/benchmark/ivy.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="benchmark"/>
-  <configurations defaultconfmapping="compile->master">
-    <conf name="compile" transitive="false"/>
-  </configurations>
-  <dependencies>
-    <dependency org="org.apache.commons" name="commons-compress" rev="${/org.apache.commons/commons-compress}" conf="compile"/>
-    <dependency org="xerces" name="xercesImpl" rev="${/xerces/xercesImpl}" conf="compile"/>
-    <dependency org="net.sourceforge.nekohtml" name="nekohtml" rev="${/net.sourceforge.nekohtml/nekohtml}" conf="compile"/>
-    <dependency org="com.ibm.icu" name="icu4j" rev="${/com.ibm.icu/icu4j}" conf="compile"/>
-    <dependency org="org.locationtech.spatial4j" name="spatial4j" rev="${/org.locationtech.spatial4j/spatial4j}" conf="compile"/>
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/> 
-  </dependencies>
-</ivy-module>
diff --git a/lucene/build.xml b/lucene/build.xml
deleted file mode 100644
index a5e17ad..0000000
--- a/lucene/build.xml
+++ /dev/null
@@ -1,586 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="lucene" default="default" basedir="."
-         xmlns:jacoco="antlib:org.jacoco.ant"
-         xmlns:artifact="antlib:org.apache.maven.artifact.ant">
-
-  <import file="common-build.xml"/>
-
-  <path id="classpath">
-    <pathelement location="${common.dir}/build/core/classes/java"/>
-  </path>
-
-  <patternset id="binary.build.dist.patterns"
-              includes="docs/,**/*.jar,**/*.war"
-              excludes="poms/**,**/*-src.jar,**/*-javadoc.jar"
-  />
-  <patternset id="binary.root.dist.patterns"
-              includes="LICENSE.txt,NOTICE.txt,README.md,
-                        MIGRATE.md,JRE_VERSION_MIGRATION.md,
-                        SYSTEM_REQUIREMENTS.md,
-                        CHANGES.txt,
-                        **/lib/*.jar,
-                        licenses/**,
-                        */docs/,**/README*"
-              excludes="build/**,site/**,tools/**,**/lib/*servlet-api*.jar,dev-docs/**"
-  />
-
-  <!-- ================================================================== -->
-  <!-- Prepares the build directory                                       -->
-  <!-- ================================================================== -->
-
-  <target name="test-core" description="Runs unit tests for the core Lucene code">
-    <ant dir="${common.dir}/core" target="test" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-  </target>
-
-  <!-- "-clover.load" is *not* a useless dependency. do not remove -->
-  <target name="test" depends="-clover.load, -init-totals, test-core, test-test-framework, test-modules, -check-totals"
-          description="Runs all unit tests (core, modules and back-compat)"
-  />
-  <target name="test-nocompile">
-    <fail message="Target 'test-nocompile' will not run recursively.  First change directory to the module you want to test."/>
-  </target>
-
-
-  <target name="pitest" depends="pitest-modules"
-          description="Runs pitests (core, modules and back-compat)"
-  />
-
-  <target name="beast">
-    <fail message="The Beast only works inside of individual modules"/>
-  </target>
-
-  <target name="compile-core" depends="compile-lucene-core"/>
-
-  <!-- lucene/test-framework is excluded from compilation -->
-  <target name="compile" depends="init,compile-lucene-core,compile-codecs"
-          description="Compiles core, codecs, and all modules">
-    <modules-crawl target="compile-core"/>
-  </target>
-
-  <!-- Validation (license/notice/api checks). -->
-  <target name="validate" depends="check-licenses,rat-sources,check-forbidden-apis" description="Validate stuff." />
-
-  <!-- Validation here depends on compile-tools: but we want to compile modules' tools too -->
-  <target name="compile-tools" depends="common.compile-tools">
-    <modules-crawl target="compile-tools"/>
-  </target>
-
-  <target name="check-licenses" depends="compile-tools,resolve,load-custom-tasks" description="Validate license stuff.">
-    <property name="skipRegexChecksum" value=""/>
-    <license-check-macro dir="${basedir}" licensedir="${common.dir}/licenses">
-      <additional-filters>
-        <replaceregex pattern="^jetty([^/]+)$" replace="jetty" flags="gi" />
-        <replaceregex pattern="slf4j-([^/]+)$" replace="slf4j" flags="gi" />
-        <replaceregex pattern="javax\.servlet([^/]+)$" replace="javax.servlet" flags="gi" />
-        <replaceregex pattern="(bcmail|bcprov)-([^/]+)$" replace="\1" flags="gi" />
-      </additional-filters>
-    </license-check-macro>
-  </target>
-
-  <target name="check-lib-versions" depends="compile-tools,resolve,load-custom-tasks"
-          description="Verify that the '/org/name' keys in ivy-versions.properties are sorted lexically and are neither duplicates nor orphans, and that all dependencies in all ivy.xml files use rev=&quot;$${/org/name}&quot; format.">
-    <lib-versions-check-macro dir="${common.dir}/.."
-                              centralized.versions.file="${common.dir}/ivy-versions.properties"
-                              top.level.ivy.settings.file="${common.dir}/top-level-ivy-settings.xml"
-                              ivy.resolution-cache.dir="${ivy.resolution-cache.dir}"
-                              ivy.lock-strategy="${ivy.lock-strategy}"
-                              common.build.dir="${common.build.dir}"
-                              ignore.conflicts.file="${common.dir}/ivy-ignore-conflicts.properties"/>
-  </target>
-
-  <!-- -install-forbidden-apis is *not* a useless dependency. do not remove -->
-  <target name="check-forbidden-apis" depends="-install-forbidden-apis" description="Check forbidden API calls in compiled class files">
-    <subant target="check-forbidden-apis" failonerror="true" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-      <fileset dir="core" includes="build.xml"/>
-      <fileset dir="test-framework" includes="build.xml"/>
-      <fileset dir="tools" includes="build.xml"/>
-    </subant>
-    <modules-crawl target="check-forbidden-apis"/>
-  </target>
-
-  <target name="resolve">
-    <sequential>
-      <ant dir="test-framework" target="resolve" inheritall="false">
-         <propertyset refid="uptodate.and.compiled.properties"/>
-      </ant>
-      <ant dir="${common.dir}/tools" target="resolve" inheritAll="false">
-         <propertyset refid="uptodate.and.compiled.properties"/>
-      </ant>
-      <modules-crawl target="resolve"/>
-    </sequential>
-  </target>
-
-  <target name="documentation" description="Generate all documentation"
-    depends="javadocs,changes-to-html,process-webpages"/>
-  <target name="javadoc" depends="javadocs"/>
-  <target name="javadocs" description="Generate javadoc" depends="javadocs-lucene-core, javadocs-modules, javadocs-test-framework"/>
-
-  <target name="documentation-lint" depends="-ecj-javadoc-lint,-documentation-lint-unsupported" if="documentation-lint.supported"
-          description="Validates the generated documentation (HTML errors, broken links,...)">
-    <!-- we use antcall here, otherwise ANT will run all dependent targets: -->
-    <antcall target="-documentation-lint"/>
-  </target>
-
-  <!-- we check for broken links across all documentation -->
-  <target name="-documentation-lint" depends="documentation">
-    <echo message="Checking for broken links..."/>
-    <check-broken-links dir="build/docs"/>
-    <echo message="Checking for missing docs..."/>
-    <!-- TODO: change this level=method -->
-    <check-missing-javadocs dir="build/docs" level="class"/>
-    <!-- too many classes to fix overall to just enable
-         the above to be level="method" right now, but we
-         can prevent the modules that don't have problems
-         from getting any worse -->
-    <!-- analyzers-common: problems -->
-    <check-missing-javadocs dir="build/docs/analyzers-icu" level="method"/>
-    <!-- analyzers-kuromoji: problems -->
-    <check-missing-javadocs dir="build/docs/analyzers-morfologik" level="method"/>
-    <check-missing-javadocs dir="build/docs/analyzers-phonetic" level="method"/>
-    <!-- analyzers-smartcn: problems -->
-    <check-missing-javadocs dir="build/docs/analyzers-stempel" level="method"/>
-    <!-- benchmark: problems -->
-    <check-missing-javadocs dir="build/docs/classification" level="method"/>
-    <!-- codecs: problems -->
-    <!-- core: problems -->
-    <check-missing-javadocs dir="build/docs/demo" level="method"/>
-    <check-missing-javadocs dir="build/docs/expressions" level="method"/>
-    <check-missing-javadocs dir="build/docs/facet" level="method"/>
-    <!-- grouping: problems -->
-    <!-- highlighter: problems -->
-    <check-missing-javadocs dir="build/docs/join" level="method"/>
-    <check-missing-javadocs dir="build/docs/memory" level="method"/>
-    <!-- misc: problems -->
-    <!-- queries: problems -->
-    <!-- queryparser: problems -->
-    <!-- sandbox: problems -->
-    <!-- spatial-extras: problems -->
-    <check-missing-javadocs dir="build/docs/suggest" level="method"/>
-    <!-- test-framework: problems -->
-
-    <!-- too much to fix core/ for now, but enforce full javadocs for key packages -->
-    <check-missing-javadocs dir="build/docs/core/org/apache/lucene/util/automaton" level="method"/>
-    <check-missing-javadocs dir="build/docs/core/org/apache/lucene/analysis" level="method"/>
-    <check-missing-javadocs dir="build/docs/core/org/apache/lucene/document" level="method"/>
-    <check-missing-javadocs dir="build/docs/core/org/apache/lucene/search/similarities" level="method"/>
-    <check-missing-javadocs dir="build/docs/core/org/apache/lucene/index" level="method"/>
-    <check-missing-javadocs dir="build/docs/core/org/apache/lucene/codecs" level="method"/>
-
-    <check-missing-javadocs dir="build/docs/spatial3d" level="method"/>
-  </target>
-  
-  <target name="-ecj-javadoc-lint" depends="compile,compile-test,-ecj-javadoc-lint-unsupported,-ecj-resolve" if="ecj-javadoc-lint.supported">
-    <subant target="-ecj-javadoc-lint" failonerror="true" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-      <fileset dir="core" includes="build.xml"/>
-      <fileset dir="test-framework" includes="build.xml"/>
-    </subant>
-    <modules-crawl target="-ecj-javadoc-lint"/>
-  </target>
-
-  <target name="process-webpages" depends="resolve-markdown">
-    <makeurl property="process-webpages.buildfiles" separator="|">
-      <fileset dir="." includes="**/build.xml" excludes="build.xml,analysis/*,build/**,tools/**,site/**"/>
-    </makeurl>
-    <property name="Codec.java" location="core/src/java/org/apache/lucene/codecs/Codec.java"/>
-    <loadfile srcfile="${Codec.java}" property="defaultCodec" encoding="UTF-8">
-      <filterchain>
-        <!--  private static Codec defaultCodec   =   LOADER    .   lookup    (   "LuceneXXX"                 )   ; -->
-        <containsregex pattern="^.*defaultCodec\s*=\s*LOADER\s*\.\s*lookup\s*\(\s*&quot;([^&quot;]+)&quot;\s*\)\s*;.*$" replace="\1"/>
-        <fixcrlf eol="unix" eof="remove" />
-        <deletecharacters chars="\n"/>
-      </filterchain>
-    </loadfile>
-
-    <!--
-      The XSL input file is ignored completely, but XSL expects one to be given,
-      so we pass ourself (${ant.file}) here. The list of module build.xmls is given
-      via string parameter, that must be splitted by the XSL at '|'.
-    --> 
-    <xslt in="${ant.file}" out="${javadoc.dir}/index.html" style="site/xsl/index.xsl" force="true">
-      <outputproperty name="method" value="html"/>
-      <outputproperty name="version" value="4.0"/>
-      <outputproperty name="encoding" value="UTF-8"/>
-      <outputproperty name="indent" value="yes"/>
-      <param name="buildfiles" expression="${process-webpages.buildfiles}"/>
-      <param name="version" expression="${version}"/>
-      <param name="defaultCodec" expression="${defaultCodec}"/>
-    </xslt>
-    
-    <markdown todir="${javadoc.dir}">
-      <fileset dir="." includes="MIGRATE.md,JRE_VERSION_MIGRATION.md,SYSTEM_REQUIREMENTS.md"/>
-      <globmapper from="*.md" to="*.html"/>
-    </markdown>
-
-    <copy todir="${javadoc.dir}">
-      <fileset dir="site/html"/>
-    </copy>
-  </target>
-  
-  <target name="javadocs-modules" description="Generate javadoc for modules classes">
-    <modules-crawl target="javadocs"/>
-  </target>
-
-  <!-- rat-sources-typedef is *not* a useless dependency. do not remove -->
-  <target name="rat-sources" depends="rat-sources-typedef,common.rat-sources">
-    <subant target="rat-sources" failonerror="true" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-      <fileset dir="core" includes="build.xml"/>
-      <fileset dir="test-framework" includes="build.xml"/>
-      <fileset dir="tools" includes="build.xml"/>
-    </subant>
-    <modules-crawl target="rat-sources"/>
-  </target>
-
-  <!-- ================================================================== -->
-  <!-- D I S T R I B U T I O N                                            -->
-  <!-- ================================================================== -->
-  <!--                                                                    -->
-  <!-- ================================================================== -->
-  <target name="package" depends="jar-core, jar-test-framework, build-modules, init-dist, documentation"/>
-
-  <target name="nightly" depends="test, package-tgz">
-  </target>
-
-  <!-- ================================================================== -->
-  <!-- Packages the distribution with zip                                 -->
-  <!-- ================================================================== -->
-  <!--                                                                    -->
-  <!-- ================================================================== -->
-  <target name="package-zip" depends="package"
-    description="--> Generates the Lucene distribution as .zip">
-
-    <delete file="${dist.dir}/lucene-${version}.zip"/>
-    <zip destfile="${dist.dir}/lucene-${version}.zip">
-      <zipfileset prefix="lucene-${version}" dir=".">
-        <patternset refid="binary.root.dist.patterns"/>
-      </zipfileset>
-      <zipfileset prefix="lucene-${version}" dir="${build.dir}">
-        <patternset refid="binary.build.dist.patterns"/>
-      </zipfileset>
-      <zipfileset prefix="lucene-${version}" dir="${build.dir}" includes="**/*.sh,**/*.bat" filemode="755"/>
-    </zip>
-    <make-checksums file="${dist.dir}/lucene-${version}.zip"/>
-  </target>
-
-  <!-- ================================================================== -->
-  <!-- packages the distribution with tar-gzip                            -->
-  <!-- ================================================================== -->
-  <!--                                                                    -->
-  <!-- ================================================================== -->
-
-  <!-- TODO: fix this stuff to not be a duplicate of the zip logic above! -->
-  <target name="package-tgz" depends="package"
-    description="--> Generates the lucene distribution as .tgz">
-
-    <delete file="${dist.dir}/lucene-${version}.tgz"/>
-    <tar tarfile="${dist.dir}/lucene-${version}.tgz"
-      longfile="gnu" compression="gzip">
-      <tarfileset prefix="lucene-${version}" dir=".">
-        <patternset refid="binary.root.dist.patterns"/>
-      </tarfileset>
-      <tarfileset prefix="lucene-${version}" dir="${build.dir}">
-        <patternset refid="binary.build.dist.patterns"/>
-      </tarfileset>
-      <tarfileset prefix="lucene-${version}" dir="${build.dir}" includes="**/*.sh,**/*.bat" filemode="755"/>
-    </tar>
-    <make-checksums file="${dist.dir}/lucene-${version}.tgz"/>
-  </target>
-
-  <!-- ================================================================== -->
-  <!-- packages the distribution with zip and tar-gzip                    -->
-  <!-- ================================================================== -->
-  <!--                                                                    -->
-  <!-- ================================================================== -->
-  <target name="package-all-binary" depends="package-zip, package-tgz"
-    description="--> Generates the .tgz and .zip distributions"/>
-
-  <!-- ================================================================== -->
-  <!-- same as package-all. it is just here for compatibility.            -->
-  <!-- ================================================================== -->
-  <!--                                                                    -->
-  <!-- ================================================================== -->
-  <target name="dist" depends="package-all-binary"/>
-
-  <!-- ================================================================== -->
-  <!-- S O U R C E  D I S T R I B U T I O N                               -->
-  <!-- ================================================================== -->
-    <target name="init-dist" >
-
-        <!-- Package is not called first if packaging src standalone, so the dist.dir may not exist -->
-        <mkdir dir="${build.dir}"/>
-        <mkdir dir="${dist.dir}"/>
-        <mkdir dir="${maven.dist.dir}"/>
-    </target>
-
-  <!-- ================================================================== -->
-  <!-- Packages the sources with tar-gzip               -->
-  <!-- ================================================================== -->
-  <target name="package-tgz-src" depends="init-dist"
-          description="--> Generates the Lucene source distribution as .tgz">
-    <property name="source.package.file"
-              location="${dist.dir}/lucene-${version}-src.tgz"/>
-    <delete file="${source.package.file}"/>
-    <export-source source.dir="."/>
-
-    <!-- Exclude javadoc package-list files under licenses incompatible with the ASL -->
-    <delete dir="${src.export.dir}/tools/javadoc/java8"/>
-
-    <!-- because we only package the "lucene/" folder, we have to adjust dir to work on: -->
-    <property name="local.src.export.dir" location="${src.export.dir}/lucene"/>
-    
-    <build-changes changes.src.file="${local.src.export.dir}/CHANGES.txt"
-                   changes.target.dir="${local.src.export.dir}/docs/changes"
-                   changes.product="lucene"/>
-    <tar tarfile="${source.package.file}" compression="gzip" longfile="gnu">
-      <tarfileset prefix="lucene-${version}" dir="${local.src.export.dir}"/>
-    </tar>
-    <make-checksums file="${source.package.file}"/>
-  </target>
-
-
-  <!-- ================================================================== -->
-  <!-- Packages the sources from local working copy with tar-gzip     -->
-  <!-- ================================================================== -->
-  <target name="package-local-src-tgz" depends="init-dist"
-    description="--> Packages the Lucene source from the local working copy">
-    <mkdir dir="${common.dir}/build"/>
-    <property name="source.package.file"
-              value="${common.dir}/build/lucene-${version}-src.tgz"/>
-    <delete file="${source.package.file}"/>
-    <tar tarfile="${source.package.file}" compression="gzip" longfile="gnu">
-      <tarfileset prefix="lucene-${version}" dir=".">
-        <patternset refid="lucene.local.src.package.patterns"/>
-      </tarfileset>
-    </tar>
-  </target>
-
-  <!-- ================================================================== -->
-  <!-- same as package-tgz-src. it is just here for compatibility.        -->
-  <!-- ================================================================== -->
-  <target name="dist-src" depends="package-tgz-src"/>
-
-  <target name="dist-all" depends="dist, dist-src, -dist-changes"/>
-
-  <!-- copy changes/ to the release folder -->
-  <target name="-dist-changes">
-   <copy todir="${dist.dir}/changes">
-     <fileset dir="${build.dir}/docs/changes"/>
-   </copy>
-  </target>
-
-  <target name="prepare-release-no-sign" depends="clean, dist-all, generate-maven-artifacts"/>
-  <target name="prepare-release" depends="prepare-release-no-sign, sign-artifacts"/>
-
-  <target name="-dist-maven" depends="install-maven-tasks">
-    <sequential>
-      <m2-deploy pom.xml="${filtered.pom.templates.dir}/pom.xml"/>        <!-- Lucene/Solr grandparent POM -->
-      <m2-deploy pom.xml="${filtered.pom.templates.dir}/lucene/pom.xml"/> <!-- Lucene parent POM -->
-      <subant target="-dist-maven" failonerror="true" inheritall="false">
-        <propertyset refid="uptodate.and.compiled.properties"/>
-        <fileset dir="${common.dir}/core" includes="build.xml"/>
-        <fileset dir="${common.dir}/test-framework" includes="build.xml"/>
-      </subant>
-      <modules-crawl target="-dist-maven"/>
-    </sequential>
-  </target>
-
-  <target name="-install-to-maven-local-repo" depends="install-maven-tasks">
-    <sequential>
-      <m2-install pom.xml="${filtered.pom.templates.dir}/pom.xml"/>        <!-- Lucene/Solr grandparent POM -->
-      <m2-install pom.xml="${filtered.pom.templates.dir}/lucene/pom.xml"/> <!-- Lucene parent POM -->
-      <subant target="-install-to-maven-local-repo" failonerror="true" inheritall="false">
-        <propertyset refid="uptodate.and.compiled.properties"/>
-        <fileset dir="${common.dir}/core" includes="build.xml"/>
-        <fileset dir="${common.dir}/test-framework" includes="build.xml"/>
-      </subant>
-      <modules-crawl target="-install-to-maven-local-repo"/>
-    </sequential>
-  </target>
-
-  <target name="generate-maven-artifacts" depends="-unpack-lucene-tgz">
-    <ant dir=".." target="resolve" inheritall="false"/>
-    <antcall target="-filter-pom-templates" inheritall="false"/>
-    <antcall target="-dist-maven" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </antcall>
-  </target>
-  
-  <target name="-validate-maven-dependencies" depends="compile-tools, install-maven-tasks, load-custom-tasks">
-    <sequential>
-      <subant target="-validate-maven-dependencies" failonerror="true" inheritall="false">
-        <propertyset refid="uptodate.and.compiled.properties"/>
-        <fileset dir="${common.dir}/core" includes="build.xml"/>
-        <fileset dir="${common.dir}/test-framework" includes="build.xml"/>
-      </subant>
-      
-      <modules-crawl target="-validate-maven-dependencies"/>
-    </sequential>
-  </target>
-  
-  <!-- ================================================================== -->
-  <!-- support for signing the artifacts using gpg                        -->
-  <!-- ================================================================== -->
-  <target name="sign-artifacts">
-    <sign-artifacts-macro artifacts.dir="${dist.dir}"/>
-  </target>
-
-  <target name="build-modules" depends="compile-test"
-          description="Builds all additional modules and their tests">
-    <modules-crawl target="build-artifacts-and-tests"/>
-  </target>
-
-  <target name="compile-test" description="Builds core, codecs, test-framework, and modules tests">
-    <sequential>
-      <ant dir="core" target="compile-test" inheritall="false">
-        <propertyset refid="uptodate.and.compiled.properties"/>
-      </ant>
-      <ant dir="test-framework" target="compile-test" inheritall="false">
-        <propertyset refid="uptodate.and.compiled.properties"/>
-      </ant>
-      <modules-crawl target="compile-test"/>
-    </sequential>
-  </target>
-
-  <target name="test-test-framework">
-      <ant dir="test-framework" target="test" inheritall="false">
-        <propertyset refid="uptodate.and.compiled.properties"/>
-      </ant>
-  </target>
-  
-  <target name="test-modules">
-    <modules-crawl target="test"/>
-  </target>
-
-  <target name="changes-to-html">
-    <build-changes changes.product="lucene"/>
-  </target>
-
-  <target name="pitest-modules" depends="compile-test">
-    <modules-crawl target="pitest" failonerror="false"/>
-  </target>
-
-  <target name="jacoco" description="Generates JaCoCo code coverage reports" depends="-jacoco-install">
-    <!-- run jacoco for each module -->
-    <ant dir="${common.dir}/core" target="jacoco" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <ant dir="${common.dir}/test-framework" target="jacoco" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <modules-crawl target="jacoco"/>
-
-    <!-- produce aggregate report -->
-    <property name="jacoco.output.dir" location="${jacoco.report.dir}/lucene-all"/>
-    <!-- try to clean output dir to prevent any confusion -->
-    <delete dir="${jacoco.output.dir}" failonerror="false"/>
-    <mkdir dir="${jacoco.output.dir}"/>
-
-    <jacoco:report>
-      <executiondata>
-        <fileset dir="${common.dir}/build" includes="**/jacoco.db"/>
-      </executiondata>
-      <structure name="${Name} aggregate JaCoCo coverage report">
-        <classfiles>
-          <fileset dir="${common.dir}/build">
-             <include name="**/classes/java/**/*.class"/>
-             <exclude name="tools/**"/>
-          </fileset>
-        </classfiles>
-        <!-- TODO: trying to specify source files could maybe work, but would
-             double the size of the reports -->
-      </structure>
-      <html destdir="${jacoco.output.dir}" footer="Copyright ${year} Apache Software Foundation.  All Rights Reserved."/>
-    </jacoco:report>
-  </target>
-
-  <!--
-   Committer helpers
-   -->
-
-  <property name="patch.file" value="${basedir}/../patches/${patch.name}"/>
-  <!-- Apply a patch.  Assumes  patch can be applied in the basedir.
-  -Dpatch.name assumes the patch is located in ${basedir}/../patches/${patch.name}
-  -Dpatch.file means the patch can be located anywhere on the file system
-  -->
-  <target name="apply-patch" depends="clean" description="Apply a patch file.  Set -Dpatch.file, or -Dpatch.name when the patch is in the directory ../patches/">
-    <patch patchfile="${patch.file}" strip="0"/>
-  </target>
-
-  <target name="jar-test-framework">
-    <ant dir="${common.dir}/test-framework" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-  </target>
-
-  <!-- Override common-build.xml definition to check for the jar already being up-to-date -->
-  <target name="jar-core" depends="check-lucene-core-uptodate,compile-lucene-core" unless="lucene-core.uptodate">
-    <ant dir="${common.dir}/core" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="core.compiled" value="true"/>
-    <property name="lucene-core.uptodate" value="true"/>
-  </target>
-
-  <target name="jar" depends="jar-core,jar-test-framework"
-          description="Jars core, codecs, test-framework, and all modules">
-    <modules-crawl target="jar-core"/>
-  </target>
-
-  <target name="jar-src" description="create source jars for all modules">
-    <ant dir="${common.dir}/core" target="jar-src" inheritAll="false" />
-    <ant dir="${common.dir}/test-framework" target="jar-src" inheritAll="false" />
-    <modules-crawl target="jar-src"/>
-  </target>
-
-  <target name="get-jenkins-line-docs" unless="enwiki.exists">
-    <sequential>
-      <!-- TODO: can get .lzma instead (it's ~17% smaller) but there's no builtin ant support...? -->
-      <get src="http://home.apache.org/~mikemccand/enwiki.random.lines.txt.bz2"
-           dest="enwiki.random.lines.txt.bz2"/>
-      <bunzip2 src="enwiki.random.lines.txt.bz2" dest="enwiki.random.lines.txt"/>
-    </sequential>
-  </target>
-
-  <target name="jar-checksums" depends="resolve">
-    <jar-checksum-macro srcdir="${common.dir}" dstdir="${common.dir}/licenses"/>
-  </target>
-
-  <target name="regenerate">
-    <subant target="regenerate" failonerror="true" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-      <fileset dir="core" includes="build.xml"/>
-      <fileset dir="test-framework" includes="build.xml"/>
-    </subant>
-    <modules-crawl target="regenerate"/>
-  </target>
-
-  <target name="-append-module-dependencies-properties">
-    <sequential>
-      <ant dir="core" target="common.-append-module-dependencies-properties" inheritall="false"/>
-      <ant dir="test-framework" target="common.-append-module-dependencies-properties" inheritall="false"/>
-      <modules-crawl target="-append-module-dependencies-properties"/>
-    </sequential>
-  </target>
-</project>
diff --git a/lucene/classification/build.xml b/lucene/classification/build.xml
deleted file mode 100644
index 43bcb4b..0000000
--- a/lucene/classification/build.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="classification" default="default">
-  <description>
-    Classification module for Lucene
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <path id="classpath">
-    <path refid="base.classpath"/>
-    <pathelement path="${queries.jar}"/>
-    <pathelement path="${grouping.jar}"/>
-    <pathelement path="${analyzers-common.jar}"/>
-  </path>
-
-  <path id="test.classpath">
-    <pathelement path="${analyzers-common.jar}"/>
-    <pathelement location="${codecs.jar}"/>
-    <path refid="test.base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-grouping,jar-queries,jar-analyzers-common,common.compile-core" />
-
-  <target name="jar-core" depends="common.jar-core" />
-
-  <target name="javadocs" depends="javadocs-grouping,compile-core,check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../queries"/>
-        <link href="../analyzers-common"/>
-        <link href="../grouping"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-
-</project>
diff --git a/lucene/classification/ivy.xml b/lucene/classification/ivy.xml
deleted file mode 100644
index 036c217..0000000
--- a/lucene/classification/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="classification"/>
-</ivy-module>
diff --git a/lucene/codecs/build.xml b/lucene/codecs/build.xml
deleted file mode 100644
index c50af6c..0000000
--- a/lucene/codecs/build.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  -->
-
-<project name="codecs" default="default">
-  <description>
-    Lucene codecs and postings formats.
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <target name="-dist-maven" depends="-dist-maven-src-java"/>
-
-  <target name="-install-to-maven-local-repo" depends="-install-src-java-to-maven-local-repo"/>
-</project>
diff --git a/lucene/codecs/ivy.xml b/lucene/codecs/ivy.xml
deleted file mode 100644
index f966fd5..0000000
--- a/lucene/codecs/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="codecs"/>
-</ivy-module>
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
deleted file mode 100644
index 7bb6e55..0000000
--- a/lucene/common-build.xml
+++ /dev/null
@@ -1,2605 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="common" xmlns:artifact="antlib:org.apache.maven.artifact.ant" 
-                       xmlns:ivy="antlib:org.apache.ivy.ant"
-                       xmlns:junit4="antlib:com.carrotsearch.junit4"
-                       xmlns:jacoco="antlib:org.jacoco.ant"
-                       xmlns:rsel="antlib:org.apache.tools.ant.types.resources.selectors">
-  <description>
-    This file is designed for importing into a main build file, and not intended
-    for standalone use.
-  </description>
-
-  <dirname file="${ant.file.common}" property="common.dir"/>
-  
-  <!-- Give user a chance to override without editing this file
-      (and without typing -D each time it compiles it -->
-  <property file="${user.home}/lucene.build.properties"/>
-  <property file="${user.home}/build.properties"/>
-  <property file="${common.dir}/build.properties"/>
-
-  <property name="dev-tools.dir" location="${common.dir}/../dev-tools"/>
-  <property name="prettify.dir" location="${common.dir}/tools/prettify"/>
-  <property name="license.dir" location="${common.dir}/licenses"/>
-  <property name="ivysettings.xml" location="${common.dir}/default-nested-ivy-settings.xml"/>
-
-  <tstamp>
-    <format property="current.year" pattern="yyyy"/>
-    <format property="DSTAMP" pattern="yyyy-MM-dd"/>
-    <format property="TSTAMP" pattern="HH:mm:ss"/>
-    <!-- datetime format that is safe to treat as part of a dotted version -->
-    <format property="dateversion" pattern="yyyy.MM.dd.HH.mm.ss" />
-  </tstamp>
-
-  <property name="Name" value="Lucene"/>
-  <property name="name" value="${ant.project.name}"/>
-  
-  <!-- include version number from property file (includes "version.*" properties) -->
-  <loadproperties srcFile="${common.dir}/version.properties"/>
-  
-  <fail message="'version.base' property must be 'x.y.z' (major, minor, bugfix) or 'x.y.z.1/2' (+ prerelease) and numeric only: ${version.base}">
-    <condition>
-      <not><matches pattern="^\d+\.\d+\.\d+(|\.1|\.2)$" casesensitive="true" string="${version.base}"/></not>
-    </condition>
-  </fail>
-
-  <fail message="If you pass -Dversion=... to set a release version, it must match &quot;${version.base}&quot;, optionally followed by a suffix (e.g., &quot;-SNAPSHOT&quot;).">
-    <condition>
-      <not><matches pattern="^\Q${version.base}\E(|\-.*)$" casesensitive="true" string="${version}"/></not>
-    </condition>
-  </fail>
-  
-  <fail message="Your ~/.ant/lib folder or the main classpath of Ant contains some version of ASM. Please remove it, otherwise this build can't run correctly.">
-    <condition>
-      <available classname="org.objectweb.asm.ClassReader"/>
-    </condition>
-  </fail>
-
-  <property name="year" value="2000-${current.year}"/>
-  
-  <!-- Lucene modules unfortunately don't have the "lucene-" prefix, so we add it if no prefix is given in $name: -->
-  <condition property="final.name" value="${name}-${version}" else="lucene-${name}-${version}">
-    <matches pattern="^(lucene|solr)\b" string="${name}"/>
-  </condition>
-
-  <!-- we exclude ext/*.jar because we don't want example/lib/ext logging jars on the cp -->
-  <property name="common.classpath.excludes" value="**/*.txt,**/*.template,**/*.sha1,**/*.sha512,ext/*.jar" />
-
-  <property name="build.dir" location="build"/>
-  <!-- Needed in case a module needs the original build, also for compile-tools to be called from a module -->
-  <property name="common.build.dir" location="${common.dir}/build"/>
-
-  <property name="ivy.bootstrap.version" value="2.4.0" /> <!-- UPGRADE NOTE: update disallowed_ivy_jars_regex below -->
-  <property name="disallowed_ivy_jars_regex" value="ivy-2\.[0123].*\.jar"/>
-
-  <property name="ivy.default.configuration" value="*"/>
-
-  <!-- Running ant targets in parralel may require this set to false because ivy:retrieve tasks may race with resolve -->
-  <property name="ivy.sync" value="true"/>
-  <property name="ivy.resolution-cache.dir" location="${common.build.dir}/ivy-resolution-cache"/>
-  <property name="ivy.lock-strategy" value="artifact-lock-nio"/>
-
-  <property name="local.caches" location="${common.dir}/../.caches" />
-  <property name="tests.cachedir"  location="${local.caches}/test-stats" />
-  <property name="tests.cachefile" location="${common.dir}/tools/junit4/cached-timehints.txt" />
-  <property name="tests.cachefilehistory" value="10" />
-
-  <path id="junit-path">
-    <fileset dir="${common.dir}/test-framework/lib"/>
-  </path>
-
-  <!-- default arguments to pass to JVM executing tests -->
-  <property name="args" value="-XX:TieredStopAtLevel=1"/>
-
-  <property name="tests.seed" value="" />
-
-  <!-- This is a hack to be able to override the JVM count for special modules that don't like parallel tests: -->
-  <property name="tests.jvms" value="auto" />
-  <property name="tests.jvms.override" value="${tests.jvms}" />
-
-  <property name="tests.multiplier" value="1" />
-  <property name="tests.codec" value="random" />
-  <property name="tests.postingsformat" value="random" />
-  <property name="tests.docvaluesformat" value="random" />
-  <property name="tests.locale" value="random" />
-  <property name="tests.timezone" value="random" />
-  <property name="tests.directory" value="random" />
-  <property name="tests.linedocsfile" value="europarl.lines.txt.gz" />
-  <property name="tests.loggingfile" location="${common.dir}/tools/junit4/logging.properties"/>
-  <property name="tests.nightly" value="false" />
-  <property name="tests.weekly" value="false" />
-  <property name="tests.monster" value="false" />
-  <property name="tests.slow" value="true" />
-  <property name="tests.cleanthreads.sysprop" value="perMethod"/>
-  <property name="tests.verbose" value="false"/>
-  <property name="tests.infostream" value="${tests.verbose}"/>
-  <property name="tests.filterstacks" value="true"/>
-  <property name="tests.luceneMatchVersion" value="${version.base}"/>
-  <property name="tests.asserts" value="true" />
-  <property name="tests.policy" location="${common.dir}/tools/junit4/tests.policy"/>
-
-  <condition property="tests.asserts.bug.jdk8205399" value="-da:java.util.HashMap" else="">
-    <!-- LUCENE-8991 / JDK-8205399: HashMap assertion bug until java12-->
-    <and>
-      <or>
-        <contains string="${java.vm.name}" substring="hotspot" casesensitive="false"/>
-        <contains string="${java.vm.name}" substring="openjdk" casesensitive="false"/>
-        <contains string="${java.vm.name}" substring="jrockit" casesensitive="false"/>
-      </or>
-      <or>
-        <equals arg1="${java.specification.version}" arg2="1.8"/>
-        <equals arg1="${java.specification.version}" arg2="9"/>
-        <equals arg1="${java.specification.version}" arg2="10"/>
-        <equals arg1="${java.specification.version}" arg2="11"/>
-      </or>
-      <isfalse value="${tests.asserts.hashmap}" />
-    </and>
-  </condition>
-  
-  <condition property="tests.asserts.args" value="-ea -esa ${tests.asserts.bug.jdk8205399}" else="">
-    <istrue value="${tests.asserts}"/>
-  </condition>
-
-  <condition property="tests.heapsize" value="1024M" else="512M">
-    <isset property="run.clover"/>
-  </condition>
-  
-  <condition property="tests.clover.args" value="-XX:ReservedCodeCacheSize=192m -Dclover.pertest.coverage=off" else="">
-    <isset property="run.clover"/>
-  </condition>
-
-  <!-- Override these in your local properties to your desire. -->
-  <!-- Show simple class names (no package) in test suites. -->
-  <property name="tests.useSimpleNames" value="false" />
-  <!-- Max width for class name truncation.  -->
-  <property name="tests.maxClassNameColumns" value="10000" />
-  <!-- Show suite summaries for tests. -->
-  <property name="tests.showSuiteSummary" value="true" />
-  <!-- Show timestamps in console test reports. -->
-  <property name="tests.timestamps" value="false" />
-  <!-- Heartbeat in seconds for reporting long running tests or hung forked JVMs. -->
-  <property name="tests.heartbeat" value="60" />
-
-  <!-- Configure test emission to console for each type of status -->
-  <property name="tests.showError" value="true" />
-  <property name="tests.showFailure" value="true" />
-  <property name="tests.showIgnored" value="true" />
-
-  <!-- Display at most this many failures as a summary at the end of junit4 run. -->
-  <property name="tests.showNumFailures" value="10" />
-
-  <property name="javac.deprecation" value="off"/>
-  <property name="javac.debug" value="on"/>
-  <property name="javac.release" value="11"/>
-  <property name="javac.args" value="-Xlint -Xlint:-deprecation -Xlint:-serial"/>
-  <property name="javadoc.link" value="https://docs.oracle.com/en/java/javase/11/docs/api/"/>
-  <property name="javadoc.link.junit" value="https://junit.org/junit4/javadoc/4.12/"/>
-  <property name="javadoc.packagelist.dir" location="${common.dir}/tools/javadoc"/>
-  <available file="${javadoc.packagelist.dir}/java11/package-list" property="javadoc.java11.packagelist.exists"/>
-  <property name="javadoc.access" value="protected"/>
-  <property name="javadoc.charset" value="utf-8"/>
-  <property name="javadoc.dir" location="${common.dir}/build/docs"/>
-  <property name="javadoc.maxmemory" value="512m" />
-  
-  <!-- We must have the index disabled for releases, as Java 11 includes a javascript search engine with GPL license: -->
-  <property name="javadoc.noindex" value="true"/>
-
-  <property name="javadoc.doclint.args" value="-Xdoclint:all,-missing"/>
-  <!---proc:none was added because of LOG4J2-1925 / JDK-8186647 -->
-  <property name="javac.doclint.args" value="-Xdoclint:all/protected -Xdoclint:-missing -proc:none"/>
-
-  <condition property="javadoc.nomodule.args" value="--no-module-directories" else="">
-    <or>
-      <equals arg1="${java.specification.version}" arg2="11"/>
-      <equals arg1="${java.specification.version}" arg2="12"/>
-    </or>
-  </condition>
-  
-  <!-- Javadoc classpath -->
-  <path id="javadoc.classpath">
-    <path refid="classpath"/>
-    <pathelement location="${ant.home}/lib/ant.jar"/>
-    <fileset dir=".">
-      <exclude name="build/**/*.jar"/>
-      <include name="**/lib/*.jar"/>
-    </fileset>
-  </path>
-  
-  <property name="changes.src.dir" location="${common.dir}/site/changes"/>
-  <property name="changes.target.dir" location="${common.dir}/build/docs/changes"/>
-
-  <property name="project.name" value="site"/> <!-- todo: is this used by anakia or something else? -->
-  <property name="build.encoding" value="utf-8"/>
-
-  <property name="src.dir" location="src/java"/>
-  <property name="resources.dir" location="${src.dir}/../resources"/>
-  <property name="tests.src.dir" location="src/test"/>
-  <available property="module.has.tests" type="dir" file="${tests.src.dir}"/>
-  <property name="dist.dir" location="${common.dir}/dist"/>
-  <property name="maven.dist.dir" location="${dist.dir}/maven"/>
-  <makeurl file="${maven.dist.dir}" property="m2.repository.url" validate="false"/>
-  <property name="m2.repository.private.key" value="${user.home}/.ssh/id_dsa"/>
-  <property name="m2.repository.id" value="local"/>
-  <property name="m2.credentials.prompt" value="true"/>
-  <property name="maven.repository.id" value="remote"/>
-
-  <property name="tests.workDir" location="${build.dir}/test"/>
-  <property name="junit.output.dir" location="${build.dir}/test"/>
-  <property name="junit.reports" location="${build.dir}/test/reports"/>
-
-  <property name="manifest.file" location="${build.dir}/MANIFEST.MF"/>
-
-  <property name="git.exe" value="git" />
-  <property name="perl.exe" value="perl" />
-
-  <property name="python3.exe" value="python3" />
-
-  <property name="gpg.exe" value="gpg" />
-  <property name="gpg.key" value="CODE SIGNING KEY" />
-
-  <property name="filtered.pom.templates.dir" location="${common.dir}/build/poms"/>
-
-  <property name="clover.db.dir" location="${common.dir}/build/clover/db"/>
-  <property name="clover.report.dir" location="${common.dir}/build/clover/reports"/>
-
-  <property name="jacoco.report.dir" location="${common.dir}/build/jacoco"/>
-
-  <property name="pitest.report.dir" location="${common.dir}/build/pitest/${name}/reports"/>
-  <property name="pitest.distance" value="0" />
-  <property name="pitest.threads" value="2" />
-  <property name="pitest.testCases" value="org.apache.*" />
-  <property name="pitest.maxMutations" value="0" />
-  <property name="pitest.timeoutFactor" value="1.25" />
-  <property name="pitest.timeoutConst" value="3000" />
-  <property name="pitest.targetClasses" value="org.apache.*" />
-
-  <!-- a reasonable default exclusion set, can be overridden for special cases -->
-  <property name="rat.excludes" value="**/TODO,**/*.txt,**/*.iml,**/*.gradle"/>
-  
-  <!-- These patterns can be defined to add additional files for checks, relative to module's home dir -->
-  <property name="rat.additional-includes" value=""/>
-  <property name="rat.additional-excludes" value=""/>
-
-  <propertyset id="uptodate.and.compiled.properties" dynamic="true">
-    <propertyref regex=".*\.uptodate$$"/>
-    <propertyref regex=".*\.compiled$$"/>
-    <propertyref regex=".*\.loaded$$"/>
-    <propertyref name="lucene.javadoc.url"/><!-- for Solr -->
-    <propertyref name="tests.totals.tmpfile" />
-    <propertyref name="git-autoclean.disabled"/>
-  </propertyset>
-
-  <patternset id="lucene.local.src.package.patterns"
-              excludes="**/pom.xml,**/*.iml,**/*.jar,build/**,dist/**,benchmark/work/**,benchmark/temp/**,tools/javadoc/java11/**"
-  />
-
-  <!-- Default exclude sources and javadoc jars from Ivy fetch to save time and bandwidth -->
-  <condition property="ivy.exclude.types" 
-      value=""
-      else="source|javadoc">
-    <isset property="fetch.sources.javadocs"/>
-  </condition>
-
-  <target name="install-ant-contrib" unless="ant-contrib.uptodate" depends="ivy-availability-check,ivy-fail,ivy-configure">
-    <property name="ant-contrib.uptodate" value="true"/>
-     <ivy:cachepath organisation="ant-contrib" module="ant-contrib" revision="1.0b3"
-       inline="true" conf="master" type="jar" pathid="ant-contrib.classpath"/>
-    <taskdef resource="ant-contrib.tasks" classpathref="ant-contrib.classpath"/>
-  </target>
-
-  <!-- Check for minimum supported ANT version. -->
-  <fail message="Minimum supported ANT version is 1.8.2. Yours: ${ant.version}">
-    <condition>
-      <not><antversion atleast="1.8.2" /></not>
-    </condition>
-  </fail>
-
-  <fail message="Cannot run with ANT version 1.10.2 - see https://issues.apache.org/jira/browse/LUCENE-8189">
-    <condition>
-      <antversion exactly="1.10.2"/>
-    </condition>
-  </fail>
-
-  <fail message="Minimum supported Java version is 11.">
-    <condition>
-      <not><hasmethod classname="java.lang.String" method="repeat"/></not>
-    </condition>
-  </fail>
-
-  <condition property="documentation-lint.supported">
-    <and>
-      <or>
-        <contains string="${java.vm.name}" substring="hotspot" casesensitive="false"/>
-        <contains string="${java.vm.name}" substring="openjdk" casesensitive="false"/>
-        <contains string="${java.vm.name}" substring="jrockit" casesensitive="false"/>
-      </or>
-      <or>
-        <equals arg1="${java.specification.version}" arg2="11"/>
-        <equals arg1="${java.specification.version}" arg2="12"/>
-        <equals arg1="${java.specification.version}" arg2="13"/>
-      </or>
-    </and>
-  </condition>
-
-  <!-- workaround for https://issues.apache.org/bugzilla/show_bug.cgi?id=53347 -->
-  <condition property="build.compiler" value="javac1.7">
-    <or>
-      <antversion exactly="1.8.3" />
-      <antversion exactly="1.8.4" />
-    </or>
-  </condition>
-
-  <target name="-documentation-lint-unsupported" unless="documentation-lint.supported">
-    <fail message="Linting documentation HTML is not supported on this Java version (JVM (${java.vm.name}).">
-      <condition>
-        <not><isset property="is.jenkins.build"/></not>
-      </condition>
-    </fail>
-    <echo level="warning" message="WARN: Linting documentation HTML is not supported on this Java version (JVM (${java.vm.name}). NOTHING DONE!"/>
-  </target>
-
-  <!-- Import custom ANT tasks. -->
-  <import file="${common.dir}/tools/custom-tasks.xml" />
-
-  <target name="clean"
-    description="Removes contents of build and dist directories">
-    <delete dir="${build.dir}"/>
-    <delete dir="${dist.dir}"/>
-    <delete file="velocity.log"/>
-  </target>
-
-  <target name="init" depends="git-autoclean,resolve">
-    <!-- currently empty -->
-  </target>
-  
-  <!-- Keep track of GIT branch and do "ant clean" on root folder when changed, to prevent bad builds... -->
-  
-  <property name="gitHeadFile" location="${common.dir}/../.git/HEAD"/>
-  <property name="gitHeadLocal" location="${common.dir}/build/git-HEAD"/>
-  <available file="${gitHeadFile}" property="isGitCheckout"/>
-
-  <target name="git-autoclean" depends="-check-git-state,-git-cleanroot,-copy-git-state"/>
-  
-  <target name="-check-git-state" if="isGitCheckout" unless="git-autoclean.disabled">
-    <condition property="gitHeadChanged">
-      <and>
-        <available file="${gitHeadLocal}"/>
-        <not><filesmatch file1="${gitHeadFile}" file2="${gitHeadLocal}"/></not>
-      </and>
-    </condition>
-  </target>
-
-  <target name="-git-cleanroot" depends="-check-git-state" if="gitHeadChanged" unless="git-autoclean.disabled">
-    <echo message="Git branch changed, cleaning up for sane build..."/>
-    <ant dir="${common.dir}/.." target="clean" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-  </target>
-  
-  <target name="-copy-git-state" if="isGitCheckout" unless="git-autoclean.disabled">
-    <mkdir dir="${common.dir}/build"/>
-    <copy file="${gitHeadFile}" tofile="${gitHeadLocal}"/>
-    <property name="git-autoclean.disabled" value="true"/>
-  </target>
-
-  <!-- IVY stuff -->
-
-  <target name="ivy-configure">
-     <!-- [DW] ivy loses its configuration for some reason. cannot explain this. if
-          you have an idea, fix it.
-          unless="ivy.settings.uptodate" -->
-    <!-- override: just for safety, should be unnecessary -->
-    <ivy:configure file="${common.dir}/top-level-ivy-settings.xml" override="true"/>
-    <!-- <property name="ivy.settings.uptodate" value="true"/> -->
-  </target>
-
-  <condition property="ivy.symlink">
-    <os family="unix"/>
-  </condition>
-
-  <target name="resolve" depends="ivy-availability-check,ivy-configure">
-    <!-- todo, make this a property or something. 
-         only special cases need bundles -->
-    <ivy:retrieve type="jar,bundle,test,test-jar,tests" log="download-only" symlink="${ivy.symlink}"
-                  conf="${ivy.default.configuration}" sync="${ivy.sync}"/>
-  </target>
-
-  <property name="ivy_install_path" location="${user.home}/.ant/lib" />
-  <property name="ivy_bootstrap_url1" value="https://repo1.maven.org/maven2"/>
-  <property name="ivy_bootstrap_url2" value="https://repo2.maven.org/maven2"/>
-  <property name="ivy_checksum_sha1" value="5abe4c24bbe992a9ac07ca563d5bd3e8d569e9ed"/>
-
-  <target name="ivy-availability-check" unless="ivy.available">
-    <path id="disallowed.ivy.jars">
-      <fileset dir="${ivy_install_path}">
-        <filename regex="${disallowed_ivy_jars_regex}"/>
-      </fileset>
-    </path>
-    <loadresource property="disallowed.ivy.jars.list">
-      <string value="${toString:disallowed.ivy.jars}"/>
-      <filterchain><tokenfilter><replacestring from="jar:" to="jar, "/></tokenfilter></filterchain>
-    </loadresource>
-    <condition property="disallowed.ivy.jar.found">
-      <resourcecount when="greater" count="0">
-        <path refid="disallowed.ivy.jars"/>
-      </resourcecount>
-    </condition>
-    <antcall target="-ivy-fail-disallowed-ivy-version"/>
-
-    <condition property="ivy.available">
-      <typefound uri="antlib:org.apache.ivy.ant" name="configure" />
-    </condition>
-    <antcall target="ivy-fail" />
-  </target>
-
-  <target name="-ivy-fail-disallowed-ivy-version" if="disallowed.ivy.jar.found">
-    <sequential>
-      <echo message="Please delete the following disallowed Ivy jar(s): ${disallowed.ivy.jars.list}"/>
-      <fail>Found disallowed Ivy jar(s): ${disallowed.ivy.jars.list}</fail>
-    </sequential>
-  </target>
-
-  <target name="ivy-fail" unless="ivy.available">
-   <echo>
-     This build requires Ivy and Ivy could not be found in your ant classpath.
-
-     (Due to classpath issues and the recursive nature of the Lucene/Solr 
-     build system, a local copy of Ivy can not be used an loaded dynamically 
-     by the build.xml)
-
-     You can either manually install a copy of Ivy ${ivy.bootstrap.version} in your ant classpath:
-       http://ant.apache.org/manual/install.html#optionalTasks
-
-     Or this build file can do it for you by running the Ivy Bootstrap target:
-       ant ivy-bootstrap     
-     
-     Either way you will only have to install Ivy one time.
-
-     'ant ivy-bootstrap' will install a copy of Ivy into your Ant User Library:
-       ${user.home}/.ant/lib
-     
-     If you would prefer, you can have it installed into an alternative 
-     directory using the "-Divy_install_path=/some/path/you/choose" option, 
-     but you will have to specify this path every time you build Lucene/Solr 
-     in the future...
-       ant ivy-bootstrap -Divy_install_path=/some/path/you/choose
-       ...
-       ant -lib /some/path/you/choose clean compile
-       ...
-       ant -lib /some/path/you/choose clean compile
-
-     If you have already run ivy-bootstrap, and still get this message, please 
-     try using the "--noconfig" option when running ant, or editing your global
-     ant config to allow the user lib to be loaded.  See the wiki for more details:
-       http://wiki.apache.org/lucene-java/DeveloperTips#Problems_with_Ivy.3F
-    </echo>
-    <fail>Ivy is not available</fail>
-  </target>
-
-  <target name="ivy-bootstrap" description="Download and install Ivy in the users ant lib dir" 
-          depends="-ivy-bootstrap1,-ivy-bootstrap2,-ivy-checksum,-ivy-remove-old-versions"/>
-
-  <!-- try to download from repo1.maven.org -->
-  <target name="-ivy-bootstrap1">
-    <ivy-download src="${ivy_bootstrap_url1}" dest="${ivy_install_path}"/>
-    <available file="${ivy_install_path}/ivy-${ivy.bootstrap.version}.jar" property="ivy.bootstrap1.success" />
-  </target> 
-
-  <target name="-ivy-bootstrap2" unless="ivy.bootstrap1.success">
-    <ivy-download src="${ivy_bootstrap_url2}" dest="${ivy_install_path}"/>
-  </target>
-
-  <target name="-ivy-checksum">
-    <checksum file="${ivy_install_path}/ivy-${ivy.bootstrap.version}.jar"
-              property="${ivy_checksum_sha1}"
-              algorithm="SHA"
-              verifyproperty="ivy.checksum.success"/>
-    <fail message="Checksum mismatch for ivy-${ivy.bootstrap.version}.jar. Please download this file manually">
-      <condition>
-        <isfalse value="${ivy.checksum.success}"/>
-      </condition>
-    </fail>
-  </target>
-  
-  <target name="-ivy-remove-old-versions">
-    <delete verbose="true" failonerror="true">
-      <fileset dir="${ivy_install_path}">
-        <filename regex="${disallowed_ivy_jars_regex}"/>
-      </fileset>
-    </delete>
-  </target>
-   
-  <macrodef name="ivy-download">
-      <attribute name="src"/>
-      <attribute name="dest"/>
-    <sequential>
-      <mkdir dir="@{dest}"/>
-      <echo message="installing ivy ${ivy.bootstrap.version} to ${ivy_install_path}"/>
-      <get src="@{src}/org/apache/ivy/ivy/${ivy.bootstrap.version}/ivy-${ivy.bootstrap.version}.jar"
-           dest="@{dest}/ivy-${ivy.bootstrap.version}.jar" usetimestamp="true" ignoreerrors="true"/>
-    </sequential>
-  </macrodef>
-
-  <target name="compile-core" depends="init, clover"
-          description="Compiles core classes">
-    <compile
-      srcdir="${src.dir}"
-      destdir="${build.dir}/classes/java">
-      <classpath refid="classpath"/>
-    </compile>
-
-    <!-- Copy the resources folder (if existent) -->
-    <copy todir="${build.dir}/classes/java">
-      <fileset dir="${resources.dir}" erroronmissingdir="no"/>
-    </copy>
-  </target>
-
-  <target name="compile" depends="compile-core">
-    <!-- convenience target to compile core -->
-  </target>
-
-  <target name="jar-core" depends="compile-core">
-    <jarify/>
-  </target>
-
-  <property name="lucene.tgz.file" location="${common.dir}/dist/lucene-${version}.tgz"/>
-  <available file="${lucene.tgz.file}" property="lucene.tgz.exists"/>
-  <property name="lucene.tgz.unpack.dir" location="${common.build.dir}/lucene.tgz.unpacked"/>
-  <patternset id="patternset.lucene.solr.jars">
-    <include name="**/lucene-*.jar"/>
-    <include name="**/solr-*.jar"/>
-  </patternset>
-  <available type="dir" file="${lucene.tgz.unpack.dir}" property="lucene.tgz.unpack.dir.exists"/>
-  <target name="-ensure-lucene-tgz-exists" unless="lucene.tgz.exists">
-    <ant dir="${common.dir}" target="package-tgz" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-  </target>
-  <target name="-unpack-lucene-tgz" unless="lucene.tgz.unpack.dir.exists">
-    <antcall target="-ensure-lucene-tgz-exists" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </antcall>
-    <mkdir dir="${lucene.tgz.unpack.dir}"/>
-    <untar compression="gzip" src="${lucene.tgz.file}" dest="${lucene.tgz.unpack.dir}">
-      <patternset refid="patternset.lucene.solr.jars"/>
-    </untar>
-  </target>
-  <property name="dist.jar.dir.prefix" value="${lucene.tgz.unpack.dir}/lucene"/>
-  <pathconvert property="dist.jar.dir.suffix">
-    <mapper>
-      <chainedmapper>
-        <globmapper from="${common.dir}*" to="*"/>
-        <globmapper from="*build.xml" to="*"/>
-      </chainedmapper>
-    </mapper>
-    <path location="${ant.file}"/>
-  </pathconvert>
-
-  <macrodef name="m2-deploy" description="Builds a Maven artifact">
-    <element name="artifact-attachments" optional="yes"/>
-    <element name="parent-poms" optional="yes"/>
-    <element name="credentials" optional="yes"/>
-    <attribute name="pom.xml"/>
-    <attribute name="jar.file" default="${dist.jar.dir.prefix}-${version}/${dist.jar.dir.suffix}/${final.name}.jar"/>
-    <sequential>
-      <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7">
-        <remoteRepository id="${maven.repository.id}" url="${ivy_bootstrap_url1}" />
-      </artifact:install-provider>
-      <parent-poms/>
-      <artifact:pom id="maven.project" file="@{pom.xml}">
-        <remoteRepository id="${maven.repository.id}" url="${ivy_bootstrap_url1}" />
-      </artifact:pom>
-      <artifact:deploy file="@{jar.file}">
-        <artifact-attachments/>
-        <remoteRepository id="${m2.repository.id}" url="${m2.repository.url}">
-          <credentials/>
-        </remoteRepository>
-        <pom refid="maven.project"/>
-      </artifact:deploy>
-      <artifact:install file="@{jar.file}">
-        <artifact-attachments/>
-        <pom refid="maven.project"/>
-      </artifact:install>
-    </sequential>
-  </macrodef>
-
-  <macrodef name="m2-install" description="Installs a Maven artifact into the local repository">
-    <element name="parent-poms" optional="yes"/>
-    <attribute name="pom.xml"/>
-    <attribute name="jar.file" default="${dist.jar.dir.prefix}-${version}/${dist.jar.dir.suffix}/${final.name}.jar"/>
-    <sequential>
-      <parent-poms/>
-      <artifact:pom id="maven.project" file="@{pom.xml}"/>
-      <artifact:install file="@{jar.file}">
-        <pom refid="maven.project"/>
-      </artifact:install>
-    </sequential>
-  </macrodef>
-
-  <!-- validate maven dependencies -->
-  <macrodef name="m2-validate-dependencies">
-      <attribute name="pom.xml"/>
-      <attribute name="licenseDirectory"/>
-      <element name="excludes" optional="true"/>
-      <element name="additional-filters" optional="true"/>
-    <sequential>
-      <artifact:dependencies filesetId="maven.fileset" useScope="test" type="jar">
-        <artifact:pom file="@{pom.xml}"/>
-        <!-- disable completely, so this has no chance to download any updates from anywhere: -->
-        <remoteRepository id="apache.snapshots" url="foobar://disabled/">
-          <snapshots enabled="false"/>
-          <releases enabled="false"/>
-        </remoteRepository>
-      </artifact:dependencies>
-      <licenses licenseDirectory="@{licenseDirectory}">
-        <restrict>
-          <fileset refid="maven.fileset"/>
-          <rsel:not>
-            <excludes/>
-          </rsel:not>
-        </restrict>
-        <licenseMapper>
-          <chainedmapper>
-            <filtermapper refid="license-mapper-defaults"/>
-            <filtermapper>
-              <additional-filters/>
-            </filtermapper>
-          </chainedmapper>
-        </licenseMapper>
-      </licenses>
-    </sequential>
-  </macrodef>
-
-  <macrodef name="build-manifest" description="Builds a manifest file">
-    <attribute name="title"/>
-    <attribute name="implementation.title"/>
-    <attribute name="manifest.file" default="${manifest.file}"/>
-    <element name="additional-manifest-attributes" optional="true"/>
-    <sequential>
-      <local name="-checkoutid"/>
-      <local name="-giterr"/>
-      <local name="checkoutid"/>
-      
-      <!-- If possible, include the GIT hash into manifest: -->
-      <exec dir="." executable="${git.exe}" outputproperty="-checkoutid" errorproperty="-giterr" failifexecutionfails="false">
-        <arg value="log"/>
-        <arg value="--format=%H"/>
-        <arg value="-n"/>
-        <arg value="1"/>
-      </exec>
-      <condition property="checkoutid" value="${-checkoutid}" else="unknown">
-        <matches pattern="^[0-9a-z]+$" string="${-checkoutid}" casesensitive="false" multiline="true"/>
-      </condition>
-
-      <!-- create manifest: -->
-      <manifest file="@{manifest.file}">
-        <!--
-        http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#JAR%20Manifest
-        http://java.sun.com/j2se/1.5.0/docs/guide/versioning/spec/versioning2.html
-        http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Package.html
-        http://java.sun.com/j2se/1.5.0/docs/api/java/util/jar/package-summary.html
-        http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html
-        -->
-        <!-- Don't set 'Manifest-Version' it identifies the version of the
-             manifest file format, and should always be 1.0 (the default)
-
-             Don't set 'Created-by' attribute, its purpose is
-             to identify the version of java used to build the jar,
-             which ant will do by default.
-
-             Ant will happily override these with bogus strings if you
-             tell it to, so don't.
-
-             NOTE: we don't use section info because all of our manifest data
-             applies to the entire jar/war ... no package specific info.
-        -->
-        <attribute name="Extension-Name" value="@{implementation.title}"/>
-        <attribute name="Specification-Title" value="@{title}"/>
-        <!-- spec version must match "digit+{.digit+}*" -->
-        <attribute name="Specification-Version" value="${spec.version}"/>
-        <attribute name="Specification-Vendor"
-                   value="The Apache Software Foundation"/>
-        <attribute name="Implementation-Title" value="@{implementation.title}"/>
-        <!-- impl version can be any string -->
-        <attribute name="Implementation-Version"
-                   value="${version} ${checkoutid} - ${user.name} - ${DSTAMP} ${TSTAMP}"/>
-        <attribute name="Implementation-Vendor"
-                   value="The Apache Software Foundation"/>
-        <attribute name="X-Compile-Source-JDK" value="${javac.release}"/>
-        <attribute name="X-Compile-Target-JDK" value="${javac.release}"/>
-        <additional-manifest-attributes />
-      </manifest>
-    </sequential>
-  </macrodef>
-  
-  <macrodef name="jarify" description="Builds a JAR file">
-    <attribute name="basedir" default="${build.dir}/classes/java"/>
-    <attribute name="destfile" default="${build.dir}/${final.name}.jar"/>
-    <attribute name="title" default="Lucene Search Engine: ${ant.project.name}"/>
-    <attribute name="excludes" default="**/pom.xml,**/*.iml"/>
-    <attribute name="metainf.source.dir" default="${common.dir}"/>
-    <attribute name="implementation.title" default="org.apache.lucene"/>
-    <attribute name="manifest.file" default="${manifest.file}"/>
-    <element name="filesets" optional="true"/>
-    <element name="jarify-additional-manifest-attributes" optional="true"/>
-    <sequential>
-      <build-manifest title="@{title}"
-                      implementation.title="@{implementation.title}"
-                      manifest.file="@{manifest.file}">
-        <additional-manifest-attributes>
-          <jarify-additional-manifest-attributes />
-        </additional-manifest-attributes>
-      </build-manifest>
-      
-      <jar destfile="@{destfile}"
-           basedir="@{basedir}"
-           manifest="@{manifest.file}"
-           excludes="@{excludes}">
-        <metainf dir="@{metainf.source.dir}" includes="LICENSE.txt,NOTICE.txt"/>
-        <filesets />
-      </jar>
-    </sequential>
-  </macrodef>
-
-  <macrodef name="module-uptodate">
-    <attribute name="name"/>
-    <attribute name="property"/>
-    <attribute name="jarfile"/>
-    <attribute name="module-src-name" default="@{name}"/>
-    <sequential>
-      <uptodate property="@{property}" targetfile="@{jarfile}">
-        <srcfiles dir="${common.dir}/@{module-src-name}/src/java" includes="**/*.java"/>
-      </uptodate>
-    </sequential>
-  </macrodef>
-
-  <property name="lucene-core.jar" value="${common.dir}/build/core/lucene-core-${version}.jar"/>
-  <target name="check-lucene-core-uptodate" unless="lucene-core.uptodate">
-    <uptodate property="lucene-core.uptodate" targetfile="${lucene-core.jar}">
-       <srcfiles dir="${common.dir}/core/src/java" includes="**/*.java"/>
-    </uptodate>
-  </target>
-  <target name="jar-lucene-core" unless="lucene-core.uptodate" depends="check-lucene-core-uptodate">
-    <ant dir="${common.dir}/core" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="lucene-core.uptodate" value="true"/>
-  </target>
-  
-  <target name="compile-lucene-core" unless="core.compiled">
-    <ant dir="${common.dir}/core" target="compile-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="core.compiled" value="true"/>
-  </target>
-
-  <target name="check-lucene-core-javadocs-uptodate" unless="core-javadocs.uptodate">
-    <uptodate property="core-javadocs.uptodate" targetfile="${common.dir}/build/core/lucene-core-${version}-javadoc.jar">
-       <srcfiles dir="${common.dir}/core/src/java" includes="**/*.java"/>
-    </uptodate>
-  </target>
-
-  <target name="check-lucene-codecs-javadocs-uptodate" unless="codecs-javadocs.uptodate">
-    <uptodate property="codecs-javadocs.uptodate" targetfile="${common.dir}/build/codecs/lucene-codecs-${version}-javadoc.jar">
-       <srcfiles dir="${common.dir}/codecs/src/java" includes="**/*.java"/>
-    </uptodate>
-  </target>
-
-  <target name="javadocs-lucene-core" depends="check-lucene-core-javadocs-uptodate" unless="core-javadocs.uptodate">
-    <ant dir="${common.dir}/core" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="core-javadocs.uptodate" value="true"/>
-  </target>
-
-  <target name="compile-codecs" unless="codecs.compiled">
-    <ant dir="${common.dir}/codecs" target="compile-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="codecs.compiled" value="true"/>
-  </target>
-
-  <target name="javadocs-lucene-codecs" depends="check-lucene-codecs-javadocs-uptodate" unless="codecs-javadocs.uptodate">
-    <ant dir="${common.dir}/codecs" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="codecs-javadocs.uptodate" value="true"/>
-  </target>
-
-  <target name="compile-test-framework" unless="lucene.test.framework.compiled">
-    <ant dir="${common.dir}/test-framework" target="compile-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="lucene.test.framework.compiled" value="true"/>
-  </target>
-
-  <target name="check-lucene-test-framework-javadocs-uptodate" 
-          unless="lucene.test.framework-javadocs.uptodate">
-    <uptodate property="lucene.test.framework-javadocs.uptodate" 
-         targetfile="${common.dir}/build/test-framework/lucene-test-framework-${version}-javadoc.jar">
-       <srcfiles dir="${common.dir}/test-framework/src/java" includes="**/*.java"/>
-    </uptodate>
-  </target>
-
-  <target name="javadocs-test-framework" 
-          depends="check-lucene-test-framework-javadocs-uptodate"
-          unless="lucene.test.framework-javadocs.uptodate">
-    <ant dir="${common.dir}/test-framework" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="lucene.test.framework-javadocs.uptodate" value="true"/>
-  </target>
-
-  <target name="compile-tools">
-    <ant dir="${common.dir}/tools" target="compile-core" inheritAll="false"/>
-  </target>
-
-  <target name="compile-test" depends="compile-core,compile-test-framework">
-    <compile-test-macro srcdir="${tests.src.dir}" destdir="${build.dir}/classes/test" test.classpath="test.classpath"/>
-  </target>
-
-  <macrodef name="compile-test-macro" description="Compiles junit tests.">
-    <attribute name="srcdir"/>
-    <attribute name="destdir"/>
-    <attribute name="test.classpath"/>
-    <attribute name="javac.release" default="${javac.release}"/>
-    <sequential>
-      <compile
-        srcdir="@{srcdir}" 
-        destdir="@{destdir}"
-        javac.release="@{javac.release}">
-        <classpath refid="@{test.classpath}"/>
-      </compile>
-
-      <!-- Copy any data files present to the classpath -->
-      <copy todir="@{destdir}">
-        <fileset dir="@{srcdir}" excludes="**/*.java"/>
-      </copy>
-    </sequential>
-  </macrodef>
-
-  <target name="test-updatecache" description="Overwrite tests' timings cache for balancing." depends="install-junit4-taskdef">
-    <touch file="${tests.cachefile}" mkdirs="true" verbose="false" />
-    <junit4:mergehints file="${tests.cachefile}" historyLength="${tests.cachefilehistory}">
-      <resources>
-        <!-- The order is important. Include previous stats first, then append new stats. -->
-        <file file="${tests.cachefile}" />
-        <fileset dir="${tests.cachedir}">
-          <include name="**/*.txt" />
-        </fileset>
-      </resources>
-    </junit4:mergehints>
-  </target>
-
-  <!-- Aliases for tests filters -->
-  <condition property="tests.class" value="*.${testcase}">
-    <isset property="testcase" />
-  </condition>
-  <condition property="tests.method" value="${testmethod}*">
-    <isset property="testmethod" />
-  </condition>
-
-  <condition property="tests.showSuccess" value="true" else="false">
-    <or>
-      <isset property="tests.class" />
-      <isset property="tests.method" />
-    </or>
-  </condition>
-
-  <condition property="tests.showOutput" value="always" else="onerror">
-    <or>
-      <isset property="tests.class" />
-      <isset property="tests.method" />
-      <istrue value="${tests.showSuccess}"/>
-    </or>
-  </condition>
-
-  <!-- Test macro using junit4. -->
-  <macrodef name="test-macro" description="Executes junit tests.">
-    <attribute name="junit.output.dir" default="${junit.output.dir}"/>
-    <attribute name="junit.classpath" default="junit.classpath"/>
-    <attribute name="testsDir" default="${build.dir}/classes/test"/>
-    <attribute name="workDir" default="${tests.workDir}"/>
-    <attribute name="threadNum" default="1"/>
-    <attribute name="tests.nightly" default="${tests.nightly}"/>
-    <attribute name="tests.weekly" default="${tests.weekly}"/>
-    <attribute name="tests.monster" default="${tests.monster}"/>
-    <attribute name="tests.slow" default="${tests.slow}"/>
-    <attribute name="tests.multiplier" default="${tests.multiplier}"/>
-    <attribute name="additional.vm.args" default=""/>
-    <!-- note this enables keeping junit4 files only (not test temp files) -->
-    <attribute name="runner.leaveTemporary" default="false"/>
-      
-    <sequential>
-        <!-- Warn if somebody uses removed properties. -->
-        <fail message="This property has been removed: tests.iter, use -Dtests.iters=N.">
-          <condition>
-            <isset property="tests.iter" />
-          </condition>
-        </fail>
-        <!-- this combo makes no sense LUCENE-4146 -->
-        <fail message="You are attempting to use 'tests.iters' in combination with a 'tests.method' value with does not end in a '*' -- This combination makes no sense, because the 'tests.method' filter will be unable to match the synthetic test names generated by the multiple iterations.">
-          <condition>
-            <and>
-              <isset property="tests.iters" />
-              <isset property="tests.method" />
-              <not>
-                <matches pattern="\*$" string="${tests.method}" />
-              </not>
-            </and>
-          </condition>
-        </fail>
-
-        <!-- Defaults. -->
-        <property name="tests.class"  value="" />
-        <property name="tests.method" value="" />
-        <property name="tests.dynamicAssignmentRatio" value="0.50" /> <!-- 50% of suites -->
-        <property name="tests.haltonfailure" value="true" />
-        <property name="tests.leaveTemporary" value="false" />
-        <!-- 
-           keep junit4 runner files or not (independent of keeping test output files)
-         -->
-        <condition property="junit4.leaveTemporary">
-          <or>
-            <istrue value="${tests.leaveTemporary}"/> 
-            <istrue value="@{runner.leaveTemporary}"/> 
-          </or>
-        </condition>
-        <property name="tests.iters" value="" />
-        <property name="tests.dups"  value="1" />
-        <property name="tests.useSecurityManager"  value="true" />
-
-        <property name="tests.heapdump.args" value=""/>
-
-        <!-- turn on security manager? -->
-        <condition property="java.security.manager" value="org.apache.lucene.util.TestSecurityManager">
-          <istrue value="${tests.useSecurityManager}"/>
-        </condition>
-        
-        <!-- additional arguments -->
-        <property name="tests.runtimespecific.args" value="--illegal-access=deny"/>
-
-        <!-- create a fileset pattern that matches ${tests.class}. -->
-        <loadresource property="tests.explicitclass" quiet="true">
-          <propertyresource name="tests.class" />
-          <filterchain>
-            <tokenfilter>
-              <filetokenizer/>
-              <replacestring from="." to="/"/>
-              <replacestring from="*" to="**"/>
-              <replaceregex pattern="$" replace=".class" />
-            </tokenfilter>
-          </filterchain>
-        </loadresource>
-
-        <!-- Pick the random seed now (unless already set). -->
-        <junit4:pickseed property="tests.seed" />
-
-        <!-- Pick file.encoding based on the random seed. -->
-        <junit4:pickfromlist property="tests.file.encoding" allowundefined="false" seed="${tests.seed}">
-            <!-- Guaranteed support on any JVM. -->
-            <value>US-ASCII</value>   <!-- single byte length -->
-            <value>ISO-8859-1</value> <!-- single byte length -->
-            <value>UTF-8</value>      <!-- variable byte length -->
-            <value><!-- empty/ default encoding. --></value>
-
-            <!--
-            Disabled because of Java 1.8 bug on Linux/ Unix:
-            http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7181721
-
-            <value>UTF-16</value>     
-            <value>UTF-16LE</value>   
-            <value>UTF-16BE</value>
-            -->
-        </junit4:pickfromlist>
-
-        <!-- junit4 does not create this directory. TODO: is this a bug / inconsistency with dir="..."? -->
-        <mkdir dir="@{workDir}/temp" />
-
-        <!-- Local test execution statistics from defaults or local caches, if present. -->
-        <local name="tests.caches" />
-        <available file="${tests.cachedir}/${name}" type="dir" property="tests.caches" value="${tests.cachedir}/${name}" />
-        <property name="tests.caches" location="${common.dir}/tools/junit4" /> <!-- defaults -->
-        <mkdir dir="${tests.cachedir}/${name}" />
-
-        <local name="junit4.stats.nonIgnored" />
-
-        <junit4:junit4
-            taskName="junit4"
-            dir="@{workDir}"
-            tempdir="@{workDir}/temp"
-            maxmemory="${tests.heapsize}"
-
-            statsPropertyPrefix="junit4.stats"
-
-            parallelism="@{threadNum}"
-
-            printSummary="true"
-            haltonfailure="${tests.haltonfailure}" 
-            failureProperty="tests.failed"
-
-            dynamicAssignmentRatio="${tests.dynamicAssignmentRatio}"
-            shuffleOnSlave="true"
-            leaveTemporary="${junit4.leaveTemporary}"
-            seed="${tests.seed}"
-            onNonEmptyWorkDirectory="wipe"
-
-            heartbeat="${tests.heartbeat}"
-            uniqueSuiteNames="false"
-            
-            debugstream="false"
-        >
-            <!-- Classpaths. -->
-            <classpath refid="@{junit.classpath}"/>
-            <classpath refid="clover.classpath" />
-
-            <!-- JVM arguments and system properties. -->
-            <jvmarg line="${args}"/>
-            <jvmarg line="${tests.heapdump.args}"/>
-            <jvmarg line="${tests.clover.args}"/>
-            <jvmarg line="@{additional.vm.args}"/>
-            <jvmarg line="${tests.asserts.args}"/>
-            <jvmarg line="${tests.runtimespecific.args}"/>
-
-            <!-- set the number of times tests should run -->
-            <sysproperty key="tests.iters" value="${tests.iters}"/>
-            <!-- allow tests to control debug prints -->
-            <sysproperty key="tests.verbose" value="${tests.verbose}"/>
-            <!-- even more debugging -->
-            <sysproperty key="tests.infostream" value="${tests.infostream}"/>
-            <!-- set the codec tests should run with -->
-            <sysproperty key="tests.codec" value="${tests.codec}"/>
-            <!-- set the postingsformat tests should run with -->
-            <sysproperty key="tests.postingsformat" value="${tests.postingsformat}"/>
-            <!-- set the docvaluesformat tests should run with -->
-            <sysproperty key="tests.docvaluesformat" value="${tests.docvaluesformat}"/>
-            <!-- set the locale tests should run with -->
-            <sysproperty key="tests.locale" value="${tests.locale}"/>
-            <!-- set the timezone tests should run with -->
-            <sysproperty key="tests.timezone" value="${tests.timezone}"/>
-            <!-- set the directory tests should run with -->
-            <sysproperty key="tests.directory" value="${tests.directory}"/>
-            <!-- set the line file source for oal.util.LineFileDocs -->
-            <sysproperty key="tests.linedocsfile" value="${tests.linedocsfile}"/>
-            <!-- set the Version that tests should run against -->
-            <sysproperty key="tests.luceneMatchVersion" value="${tests.luceneMatchVersion}"/>
-            <!-- for lucene we can be strict, and we don't want false fails even across methods -->
-            <sysproperty key="tests.cleanthreads" value="${tests.cleanthreads.sysprop}"/>
-            <!-- logging config file -->
-            <sysproperty key="java.util.logging.config.file" value="${tests.loggingfile}"/>
-            <!-- set whether or not nightly tests should run -->
-            <sysproperty key="tests.nightly" value="@{tests.nightly}"/>
-              <!-- set whether or not weekly tests should run -->
-            <sysproperty key="tests.weekly" value="@{tests.weekly}"/>
-            <!-- set whether or not monster tests should run -->
-            <sysproperty key="tests.monster" value="@{tests.monster}"/>
-              <!-- set whether or not slow tests should run -->
-            <sysproperty key="tests.slow" value="@{tests.slow}"/>
-              
-            <!-- set whether tests framework should not require java assertions enabled -->
-            <sysproperty key="tests.asserts" value="${tests.asserts}"/>
-
-            <!-- TODO: create propertyset for test properties, so each project can have its own set -->
-            <sysproperty key="tests.multiplier" value="@{tests.multiplier}"/>
-            
-            <!-- Temporary directory a subdir of the cwd. -->
-            <sysproperty key="tempDir" value="./temp" />
-            <sysproperty key="java.io.tmpdir" value="./temp" />
-
-            <!-- Restrict access to certain Java features and install security manager: -->
-            <sysproperty key="common.dir" file="${common.dir}" />
-            <sysproperty key="clover.db.dir" file="${clover.db.dir}" />
-            <syspropertyset>
-                <propertyref prefix="java.security.manager"/>
-            </syspropertyset>
-            <sysproperty key="java.security.policy" file="${tests.policy}" />
-
-            <sysproperty key="tests.LUCENE_VERSION" value="${version.base}"/>
-
-            <sysproperty key="jetty.testMode" value="1"/>
-            <sysproperty key="jetty.insecurerandom" value="1"/>
-            <sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>
-            
-            <!-- disable AWT while running tests -->
-            <sysproperty key="java.awt.headless" value="true"/>
-
-            <!-- turn jenkins blood red for hashmap bugs, even on jdk7 -->
-            <sysproperty key="jdk.map.althashing.threshold" value="0"/>
-
-            <sysproperty key="tests.src.home" value="${user.dir}" />
-
-            <!-- replaces default random source to the nonblocking variant -->
-            <sysproperty key="java.security.egd" value="file:/dev/./urandom"/>
-
-            <!-- Only pass these to the test JVMs if defined in ANT. -->
-            <syspropertyset>
-                <propertyref prefix="tests.maxfailures" />
-                <propertyref prefix="tests.failfast" />
-                <propertyref prefix="tests.badapples" />
-                <propertyref prefix="tests.bwcdir" />
-                <propertyref prefix="tests.timeoutSuite" />
-                <propertyref prefix="tests.disableHdfs" />
-                <propertyref prefix="tests.filter" />
-                <propertyref prefix="tests.awaitsfix" />
-                <propertyref prefix="tests.leavetmpdir" />
-                <propertyref prefix="tests.leaveTemporary" />
-                <propertyref prefix="tests.leavetemporary" />
-                <propertyref prefix="solr.test.leavetmpdir" />
-                <propertyref prefix="solr.tests.use.numeric.points" />
-            </syspropertyset>
-
-            <!-- Pass randomized settings to the forked JVM. -->
-            <syspropertyset ignoreEmpty="true">
-                <propertyref prefix="tests.file.encoding" />
-                <mapper type="glob" from="tests.*" to="*" />
-            </syspropertyset>
-
-            <!-- Use static cached test balancing statistics. -->
-            <balancers>
-                <junit4:execution-times>
-                    <fileset dir="${tests.caches}"  includes="**/*.txt" />
-                </junit4:execution-times>
-            </balancers>            
-
-            <!-- Reporting listeners. -->
-            <listeners>
-                <!-- A simplified console output (maven-like). -->
-                <junit4:report-text
-                    showThrowable="true" 
-                    showStackTraces="true" 
-                    showOutput="${tests.showOutput}" 
-
-                    showStatusOk="${tests.showSuccess}"
-                    showStatusError="${tests.showError}"
-                    showStatusFailure="${tests.showFailure}"
-                    showStatusIgnored="${tests.showIgnored}"
-
-                    showSuiteSummary="${tests.showSuiteSummary}"
-
-                    useSimpleNames="${tests.useSimpleNames}"
-                    maxClassNameColumns="${tests.maxClassNameColumns}"
-                    
-                    timestamps="${tests.timestamps}"
-                    showNumFailures="${tests.showNumFailures}">
-
-                  <!-- Filter stack traces. The default set of filters is similar to Ant's (reflection, assertions, junit's own stuff). -->
-                  <junit4:filtertrace defaults="true" enabled="${tests.filterstacks}">
-                    <!-- Lucene-specific stack frames (test rules mostly). -->
-                    <containsstring contains="at com.carrotsearch.randomizedtesting.RandomizedRunner" />
-                    <containsstring contains="at org.apache.lucene.util.AbstractBeforeAfterRule" />
-                    <containsstring contains="at com.carrotsearch.randomizedtesting.rules." />
-                    <containsstring contains="at org.apache.lucene.util.TestRule" />
-                    <containsstring contains="at com.carrotsearch.randomizedtesting.rules.StatementAdapter" />
-                    <containsstring contains="at com.carrotsearch.randomizedtesting.ThreadLeakControl" />
-
-                    <!-- Add custom filters if you like. Lines that match these will be removed. -->
-                    <!--
-                    <containsstring contains=".." /> 
-                    <containsregex pattern="^(\s+at )(org\.junit\.)" /> 
-                    -->
-                  </junit4:filtertrace>                    
-                </junit4:report-text>
-
-                <!-- Emits full status for all tests, their relative order on forked JVMs. -->
-                <junit4:report-text
-                    file="@{junit.output.dir}/tests-report.txt"
-                    showThrowable="true" 
-                    showStackTraces="true" 
-                    showOutput="always"
-
-                    showStatusOk="true"
-                    showStatusError="true"
-                    showStatusFailure="true"
-                    showStatusIgnored="true"
-
-                    showSuiteSummary="true"
-                    timestamps="true"
-                />
-
-                <!-- Emits status on errors and failures only. -->
-                <junit4:report-text
-                    file="@{junit.output.dir}/tests-failures.txt"
-                    showThrowable="true" 
-                    showStackTraces="true" 
-                    showOutput="onerror" 
-
-                    showStatusOk="false"
-                    showStatusError="true"
-                    showStatusFailure="true"
-                    showStatusIgnored="false"
-
-                    showSuiteSummary="false"
-                    timestamps="true"
-                />
-
-                <!-- Emit the information about tests timings (could be used to determine
-                     the slowest tests or for reuse in balancing). -->
-                <junit4:report-execution-times file="${tests.cachedir}/${name}/timehints.txt" historyLength="20" />
-
-                <!-- ANT-compatible XMLs for jenkins records etc. -->
-                <junit4:report-ant-xml dir="@{junit.output.dir}" outputStreams="no" ignoreDuplicateSuites="true"/>
-
-                <!-- <junit4:report-json file="@{junit.output.dir}/tests-report-${ant.project.name}/index.html" outputStreams="no" /> -->
-
-            </listeners>
-
-            <!-- Input test classes. -->
-            <junit4:duplicate times="${tests.dups}">
-              <fileset dir="@{testsDir}">
-                <include name="**/Test*.class" />
-                <include name="**/*Test.class" />
-                <include name="${tests.explicitclass}" if="tests.explicitclass" />
-                <exclude name="**/*$*" />
-              </fileset>
-            </junit4:duplicate>
-        </junit4:junit4>
-
-        <!-- Append the number of non-ignored (actually executed) tests. -->
-        <echo file="${tests.totals.tmpfile}" append="true" encoding="UTF-8"># module: ${ant.project.name}&#x000a;${junit4.stats.nonIgnored}&#x000a;</echo>
-        
-        <fail message="Beasting executed no tests (a typo in the filter pattern maybe?)">
-          <condition>
-            <and>
-              <isset property="tests.isbeasting"/>
-              <equals arg1="${junit4.stats.nonIgnored}" arg2="0"/>
-            </and>
-          </condition>
-        </fail>
-
-        <!-- Report the 5 slowest tests from this run to the console. -->
-        <echo level="info">5 slowest tests:</echo>
-        <junit4:tophints max="5">
-          <file file="${tests.cachedir}/${name}/timehints.txt" />
-        </junit4:tophints>
-    </sequential>
-  </macrodef>
-
-  <target name="test-times" description="Show the slowest tests (averages)." depends="install-junit4-taskdef">
-    <property name="max" value="10" />
-    <echo>Showing ${max} slowest tests according to local stats. (change with -Dmax=...).</echo>
-    <junit4:tophints max="${max}">
-      <fileset dir="${tests.cachedir}" includes="**/*.txt" />
-    </junit4:tophints>
-
-    <echo>Showing ${max} slowest tests in cached stats. (change with -Dmax=...).</echo>
-    <junit4:tophints max="${max}">
-        <fileset dir="${common.dir}/tools/junit4">
-          <include name="*.txt" />
-        </fileset>
-    </junit4:tophints>
-  </target>
-
-  <target name="test-help" description="Help on 'ant test' syntax.">
-      <echo taskname="help">
-#
-# Test case filtering. --------------------------------------------
-#
-# - 'tests.class' is a class-filtering shell-like glob pattern,
-#   'testcase' is an alias of "tests.class=*.${testcase}"
-# - 'tests.method' is a method-filtering glob pattern.
-#   'testmethod' is an alias of "tests.method=${testmethod}*"
-#
-
-# Run a single test case (variants)
-ant test -Dtests.class=org.apache.lucene.package.ClassName
-ant test "-Dtests.class=*.ClassName"
-ant test -Dtestcase=ClassName
-
-# Run all tests in a package and sub-packages
-ant test "-Dtests.class=org.apache.lucene.package.Test*|org.apache.lucene.package.*Test"
-
-# Run any test methods that contain 'esi' (like: ...r*esi*ze...).
-ant test "-Dtests.method=*esi*"
-
-#
-# Seed and repetitions. -------------------------------------------
-#
-
-# Run with a given seed (seed is a hex-encoded long).
-ant test -Dtests.seed=DEADBEEF
-
-# Repeats _all_ tests of ClassName N times. Every test repetition
-# will have a different seed. NOTE: does not reinitialize
-# between repetitions, use only for idempotent tests.
-ant test -Dtests.iters=N -Dtestcase=ClassName
-
-# Repeats _all_ tests of ClassName N times. Every test repetition
-# will have exactly the same master (dead) and method-level (beef)
-# seed.
-ant test -Dtests.iters=N -Dtestcase=ClassName -Dtests.seed=dead:beef
-
-# Repeats a given test N times (note the filters - individual test
-# repetitions are given suffixes, ie: testFoo[0], testFoo[1], etc...
-# so using testmethod or tests.method ending in a glob is necessary
-# to ensure iterations are run).
-ant test -Dtests.iters=N -Dtestcase=ClassName -Dtestmethod=mytest
-ant test -Dtests.iters=N -Dtestcase=ClassName -Dtests.method=mytest*
-
-# Repeats N times but skips any tests after the first failure or M
-# initial failures.
-ant test -Dtests.iters=N -Dtests.failfast=yes -Dtestcase=...
-ant test -Dtests.iters=N -Dtests.maxfailures=M -Dtestcase=...
-
-# Repeats every suite (class) and any tests inside N times
-# can be combined with -Dtestcase or -Dtests.iters, etc.
-# Can be used for running a single class on multiple JVMs
-# in parallel.
-ant test -Dtests.dups=N ...
-
-# Test beasting: Repeats every suite with same seed per class
-# (N times in parallel) and each test inside (M times). The whole
-# run is repeated (beasting) P times in a loop, with a different
-# master seed. You can combine beasting with any other parameter,
-# just replace "test" with "beast" and give -Dbeast.iters=P
-# (P >> 1).
-ant beast -Dtests.dups=N -Dtests.iters=M -Dbeast.iters=P \
-  -Dtestcase=ClassName
-
-#
-# Test groups. ----------------------------------------------------
-#
-# test groups can be enabled or disabled (true/false). Default
-# value provided below in [brackets].
-
-ant -Dtests.nightly=[false]   - nightly test group (@Nightly)
-ant -Dtests.weekly=[false]    - weekly tests (@Weekly)
-ant -Dtests.awaitsfix=[false] - known issue (@AwaitsFix)
-ant -Dtests.badapples=[true]  - flakey tests (@BadApple)
-ant -Dtests.slow=[true]       - slow tests (@Slow)
-
-# An alternative way to select just one (or more) groups of tests
-# is to use the -Dtests.filter property:
-
--Dtests.filter="@slow"
-
-# would run only slow tests. 'tests.filter' supports Boolean operators
-# 'and, or, not' and grouping, for example:
-
-ant -Dtests.filter="@nightly and not(@awaitsfix or @slow)"
-
-# would run nightly tests but not those also marked as awaiting a fix
-# or slow. Note that tests.filter, if present, has a priority over any
-# individual tests.* properties.
-
-
-#
-# Load balancing and caches. --------------------------------------
-#
-
-# Run sequentially (one slave JVM).
-ant -Dtests.jvms=1 test
-
-# Run with more slave JVMs than the default.
-# Don't count hypercores for CPU-intense tests.
-# Make sure there is enough RAM to handle child JVMs.
-ant -Dtests.jvms=8 test
-
-# Use repeatable suite order on slave JVMs (disables job stealing).
-ant -Dtests.dynamicAssignmentRatio=0 test
-
-# Update global (versioned!) execution times cache (top level).
-ant clean test
-ant -f lucene/build.xml test-updatecache
-
-#
-# Miscellaneous. --------------------------------------------------
-#
-
-# Only run test(s), non-recursively. Faster than "ant test".
-# WARNING: Skips jar download and compilation. Clover not supported.
-ant test-nocompile
-ant -Dtestcase=... test-nocompile
-
-# Run all tests without stopping on errors (inspect log files!).
-ant -Dtests.haltonfailure=false test
-
-# Run more verbose output (slave JVM parameters, etc.).
-ant -verbose test
-
-# Include additional information like what is printed to 
-# sysout/syserr, even if the test passes.
-# Enabled automatically when running for a single test case.
-ant -Dtests.showSuccess=true test
-
-# Change the default suite timeout to 5 seconds.
-ant -Dtests.timeoutSuite=5000! ...
-
-# Display local averaged stats, if any (30 slowest tests).
-ant test-times -Dmax=30
-
-# Display a timestamp alongside each suite/ test.
-ant -Dtests.timestamps=on ...
-
-# Override forked JVM file.encoding
-ant -Dtests.file.encoding=XXX ...
-
-# Don't remove any temporary files under slave directories, even if
-# the test passes (any of the following props):
-ant -Dtests.leaveTemporary=true
-ant -Dtests.leavetmpdir=true
-ant -Dsolr.test.leavetmpdir=true
-
-# Do *not* filter stack traces emitted to the console.
-ant -Dtests.filterstacks=false
-
-# Skip checking for no-executed tests in modules
-ant -Dtests.ifNoTests=ignore ...
-
-# Output test files and reports.
-${tests-output}/tests-report.txt    - full ASCII tests report
-${tests-output}/tests-failures.txt  - failures only (if any)
-${tests-output}/tests-report-*      - HTML5 report with results
-${tests-output}/junit4-*.suites     - per-JVM executed suites
-                                      (important if job stealing).
-      </echo>
-  </target>
-
-  <target name="install-junit4-taskdef" depends="ivy-configure">
-    <!-- JUnit4 taskdef. -->
-    <ivy:cachepath organisation="com.carrotsearch.randomizedtesting" module="junit4-ant" revision="${/com.carrotsearch.randomizedtesting/junit4-ant}"
-                   type="jar" inline="true" log="download-only" pathid="path.junit4" />
-
-    <taskdef uri="antlib:com.carrotsearch.junit4">
-      <classpath refid="path.junit4" />
-    </taskdef>
-  </target>
-
-  <target name="test" depends="clover,compile-test,install-junit4-taskdef,validate,-init-totals,-test,-check-totals" description="Runs unit tests"/>
-  <target name="beast" depends="install-ant-contrib,clover,compile-test,install-junit4-taskdef,validate,-init-totals,-beast,-check-totals" description="Runs unit tests in a loop (-Dbeast.iters=n)"/>
-
-  <target name="test-nocompile" depends="-clover.disable,install-junit4-taskdef,-init-totals,-test,-check-totals"
-          description="Only runs unit tests.  Jars are not downloaded; compilation is not updated; and Clover is not enabled."/>
-
-  <target name="-jacoco-install">
-    <!-- download jacoco from ivy if needed -->
-    <ivy:cachepath organisation="org.jacoco" module="org.jacoco.ant" type="jar" inline="true" revision="0.8.3"
-                   log="download-only" pathid="jacoco.classpath" />
-
-    <!-- install jacoco ant tasks -->
-    <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
-        <classpath refid="jacoco.classpath"/>
-    </taskdef>
-  </target>
-
-  <target name="-jacoco-test" depends="clover,compile-test,install-junit4-taskdef,validate,-init-totals">
-    <!-- hack: ant task computes absolute path, but we need a relative path, so its per-testrunner -->
-    <jacoco:agent property="agentvmparam.raw"/>
-    <property name="agentvmparam" value="${agentvmparam.raw}destfile=jacoco.db,append=false"/>
-  
-    <!-- create output dir if needed -->
-    <mkdir dir="${junit.output.dir}"/>
-
-    <!-- run tests, with agent vm args, and keep runner files around -->
-    <test-macro threadNum="${tests.jvms.override}" additional.vm.args="${agentvmparam}" runner.leaveTemporary="true"/>
-  </target>
-
-  <target name="-jacoco-report" depends="-check-totals">
-    <property name="jacoco.output.dir" location="${jacoco.report.dir}/${name}"/>
-    <!-- try to clean output dir to prevent any confusion -->
-    <delete dir="${jacoco.output.dir}" failonerror="false"/>
-    <mkdir dir="${jacoco.output.dir}"/>
-
-    <!-- print jacoco reports -->
-    <jacoco:report>
-      <executiondata>
-        <fileset dir="${junit.output.dir}" includes="**/jacoco.db"/>
-      </executiondata>
-      <structure name="${final.name} JaCoCo coverage report">
-        <classfiles>
-          <fileset dir="${build.dir}/classes/java"/>
-        </classfiles>
-        <sourcefiles>
-          <fileset dir="${src.dir}"/>
-        </sourcefiles>
-      </structure>
-      <html destdir="${jacoco.output.dir}" footer="Copyright ${year} Apache Software Foundation.  All Rights Reserved."/>
-    </jacoco:report>
-  </target>
-
-  <target name="jacoco" depends="-jacoco-install,-jacoco-test,-jacoco-report" description="Generates JaCoCo coverage report"/>
-
-  <!-- Run the actual tests (must be wrapped with -init-totals, -check-totals) -->
-  <target name="-test">
-    <mkdir dir="${junit.output.dir}"/>
-    <test-macro threadNum="${tests.jvms.override}" />
-  </target>
-
-  <!-- Beast the actual tests (must be wrapped with -init-totals, -check-totals) -->
-  <target name="-beast" depends="resolve-groovy,install-ant-contrib">
-    <fail message="The Beast only works inside of individual modules (where 'junit.classpath' is defined)">
-      <condition>
-        <not><isreference refid="junit.classpath"/></not>
-      </condition>
-    </fail>
-    <taskdef name="antcallback" classname="net.sf.antcontrib.logic.AntCallBack" classpathref="ant-contrib.classpath"/>
-    <groovy classpathref="ant-contrib.classpath" taskname="beaster" src="${common.dir}/tools/src/groovy/run-beaster.groovy"/>
-    <fail message="Fail baby fail" if="groovy.error"/>
-  </target>
-
-  <target name="-check-totals" if="tests.totals.toplevel" depends="resolve-groovy">
-    <!-- We are concluding a test pass at the outermost level. Sum up all executed tests. -->
-    <groovy><![CDATA[
-      import org.apache.tools.ant.BuildException;
-      
-      total = 0;
-      statsFile = new File(properties["tests.totals.tmpfile"]);
-      statsFile.eachLine("UTF-8", { line ->
-        if (line ==~ /^[0-9]+/) {
-          total += Integer.valueOf(line);
-        }
-      });
-      statsFile.delete();
-
-      if (total == 0 && !"ignore".equals(project.getProperty("tests.ifNoTests"))) {
-        throw new BuildException("Not even a single test was executed (a typo in the filter pattern maybe?).");
-      }
-
-      // Interesting but let's keep the build output quiet.
-      // task.log("Grand total of all executed tests (including sub-modules): " + total);
-    ]]></groovy>
-  </target>
-
-  <!-- The groovy dependency is wanted: this is done early before any test or any other submodule is ran, to prevent permgen errors! -->
-  <target name="-init-totals" unless="tests.totals.tmpfile" depends="resolve-groovy">
-    <mkdir dir="${build.dir}" />
-    <tempfile property="tests.totals.tmpfile"
-              destdir="${build.dir}"
-              prefix=".test-totals-"
-              suffix=".tmp"
-              deleteonexit="true"
-              createfile="true" />
-    <property name="tests.totals.toplevel" value="true" />
-  </target>
-
-  <!--
-   See http://issues.apache.org/jira/browse/LUCENE-721
-   -->
-  <target name="clover" depends="-clover.disable,-clover.load,-clover.classpath,-clover.setup"/>
-  
-  <target name="-clover.load" depends="ivy-availability-check,ivy-configure" if="run.clover" unless="clover.loaded">
-    <fail>TODO: Code coverage with OpenClover does not yet work with Java 11 - see https://issues.apache.org/jira/browse/LUCENE-8763</fail>
-    <echo>Code coverage with OpenClover enabled.</echo>
-    <ivy:cachepath organisation="org.openclover" module="clover" revision="4.2.1"
-      inline="true" conf="master" pathid="clover.classpath"/>
-    <taskdef resource="cloverlib.xml" classpathref="clover.classpath" />
-    <mkdir dir="${clover.db.dir}"/>
-    <!-- This is a hack, instead of setting "clover.loaded" to "true", we set it
-     to the stringified classpath. So it can be passed down to subants,
-     and reloaded by "-clover.classpath" task (see below): -->
-    <pathconvert property="clover.loaded" refid="clover.classpath"/>
-  </target>
-  
-  <target name="-clover.classpath" if="run.clover">
-    <!-- redefine the clover classpath refid for tests by using the hack above: -->
-    <path id="clover.classpath" path="${clover.loaded}"/>
-  </target>
-
-  <target name="-clover.setup" if="run.clover">
-    <clover-setup initString="${clover.db.dir}/coverage.db" encoding="${build.encoding}">
-      <fileset dir="${src.dir}" erroronmissingdir="no"/>
-      <testsources dir="${tests.src.dir}" erroronmissingdir="no">
-        <exclude name="**/TestOpenNLP*Factory.java"/><!-- https://bitbucket.org/openclover/clover/issues/59 -->
-      </testsources>
-    </clover-setup>
-  </target>
-
-  <target name="-clover.disable" unless="run.clover">
-    <!-- define dummy clover path used by junit -->
-    <path id="clover.classpath"/>
-  </target>
-
-  <target name="pitest" if="run.pitest" depends="compile-test,install-junit4-taskdef,clover,validate"
-      description="Run Unit tests using pitest mutation testing. To use, specify -Drun.pitest=true on the command line.">
-    <echo>Code coverage with pitest enabled.</echo>
-    <ivy:cachepath
-        organisation="org.pitest" module="pitest-ant"
-        inline="true"
-        pathid="pitest.framework.classpath" />
-    <pitest-macro />
-  </target>
-
-  <target name="generate-test-reports" description="Generates test reports">
-    <mkdir dir="${junit.reports}"/>
-    <junitreport todir="${junit.output.dir}">
-      <!-- this fileset let's the task work for individual modules,
-           as well as the project as a whole
-       -->
-      <fileset dir="${build.dir}">
-        <include name="**/test/TEST-*.xml"/>
-      </fileset>
-      <report format="frames" todir="${junit.reports}"/>
-    </junitreport>
-  </target>
-
-  <target name="jar" depends="jar-core">
-    <!-- convenience target to package core JAR -->
-  </target>
-
-  <target name="jar-src">
-    <sequential>
-      <mkdir dir="${build.dir}" />
-      <jarify basedir="${src.dir}" destfile="${build.dir}/${final.name}-src.jar">
-        <filesets>
-          <fileset dir="${resources.dir}" erroronmissingdir="no"/>
-        </filesets>
-      </jarify>
-    </sequential>
-  </target>
-
-  <target name="default" depends="jar-core"/>
-
-  <available type="file" file="pom.xml" property="pom.xml.present"/>
-
-  <!-- TODO, this is really unintuitive how we depend on a target that does not exist -->
-  <target name="javadocs">
-    <fail message="You must redefine the javadocs task to do something!!!!!"/>
-  </target>
-
-  <target name="install-maven-tasks" unless="maven-tasks.uptodate" depends="ivy-availability-check,ivy-configure">
-    <property name="maven-tasks.uptodate" value="true"/>
-    <ivy:cachepath organisation="org.apache.maven" module="maven-ant-tasks" revision="2.1.3"
-             inline="true" conf="master" type="jar" pathid="maven-ant-tasks.classpath"/>
-    <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" 
-             uri="antlib:org.apache.maven.artifact.ant" 
-             classpathref="maven-ant-tasks.classpath"/>
-  </target>
-
-  <target name="-dist-maven" depends="install-maven-tasks, jar-src, javadocs">
-    <sequential>
-      <property name="top.level.dir" location="${common.dir}/.."/>
-      <pathconvert property="pom.xml">
-        <mapper>
-          <chainedmapper>
-            <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
-            <globmapper from="*build.xml" to="*pom.xml"/>
-          </chainedmapper>
-        </mapper>
-        <path location="${ant.file}"/>
-      </pathconvert>
-      <m2-deploy pom.xml="${pom.xml}">
-        <artifact-attachments>
-          <attach file="${build.dir}/${final.name}-src.jar"
-                  classifier="sources"/>
-          <attach file="${build.dir}/${final.name}-javadoc.jar"
-                  classifier="javadoc"/>
-        </artifact-attachments>
-      </m2-deploy>
-    </sequential>
-  </target>
-
-  <target name="-install-to-maven-local-repo" depends="install-maven-tasks">
-    <sequential>
-      <property name="top.level.dir" location="${common.dir}/.."/>
-      <pathconvert property="pom.xml">
-        <mapper>
-          <chainedmapper>
-            <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
-            <globmapper from="*build.xml" to="*pom.xml"/>
-          </chainedmapper>
-        </mapper>
-        <path location="${ant.file}"/>
-      </pathconvert>
-      <artifact:pom id="maven.project" file="${pom.xml}"/>
-      <artifact:install file="${dist.jar.dir.prefix}-${version}/${dist.jar.dir.suffix}/${final.name}.jar">
-        <pom refid="maven.project"/>
-      </artifact:install>
-    </sequential>
-  </target>
-
-  <target name="-install-src-java-to-maven-local-repo" depends="install-maven-tasks">
-    <sequential>
-      <property name="top.level.dir" location="${common.dir}/.."/>
-      <pathconvert property="pom.xml">
-        <mapper>
-          <chainedmapper>
-            <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
-            <globmapper from="*build.xml" to="*/src/java/pom.xml"/>
-          </chainedmapper>
-        </mapper>
-        <path location="${ant.file}"/>
-      </pathconvert>
-      <artifact:pom id="maven.project" file="${pom.xml}"/>
-      <artifact:install file="${dist.jar.dir.prefix}-${version}/${dist.jar.dir.suffix}/${final.name}.jar">
-        <pom refid="maven.project"/>
-      </artifact:install>
-    </sequential>
-  </target>
-
-  <target name="-dist-maven-src-java" depends="install-maven-tasks, jar-src, javadocs">
-    <sequential>
-      <property name="top.level.dir" location="${common.dir}/.."/>
-      <pathconvert property="pom.xml">
-        <mapper>
-          <chainedmapper>
-            <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
-            <globmapper from="*build.xml" to="*/src/java/pom.xml"/>
-          </chainedmapper>
-        </mapper>
-        <path location="${ant.file}"/>
-      </pathconvert>
-      <m2-deploy pom.xml="${pom.xml}">
-        <artifact-attachments>
-          <attach file="${build.dir}/${final.name}-src.jar"
-                  classifier="sources"/>
-          <attach file="${build.dir}/${final.name}-javadoc.jar"
-                  classifier="javadoc"/>
-        </artifact-attachments>
-      </m2-deploy>
-    </sequential>
-  </target>
-  
-  <target name="-validate-maven-dependencies.init">
-    <!-- find the correct pom.xml path and assigns it to property pom.xml -->
-    <property name="top.level.dir" location="${common.dir}/.."/>
-    <pathconvert property="maven.pom.xml">
-      <mapper>
-        <chainedmapper>
-          <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
-          <globmapper from="*build.xml" to="*pom.xml"/>
-        </chainedmapper>
-      </mapper>
-      <path location="${ant.file}"/>
-    </pathconvert>
-    
-    <!-- convert ${version} to be a glob pattern, so snapshot versions are allowed: -->
-    <loadresource property="maven.version.glob">
-      <propertyresource name="version"/>
-      <filterchain>
-        <tokenfilter>
-          <filetokenizer/>
-          <replacestring from="-SNAPSHOT" to="-*"/>
-        </tokenfilter>
-      </filterchain>
-    </loadresource>
-  </target>
-  
-  <target name="-validate-maven-dependencies" depends="-validate-maven-dependencies.init">
-    <m2-validate-dependencies pom.xml="${maven.pom.xml}" licenseDirectory="${license.dir}">
-      <additional-filters>
-        <replaceregex pattern="jetty([^/]+)$" replace="jetty" flags="gi" />
-        <replaceregex pattern="slf4j-([^/]+)$" replace="slf4j" flags="gi" />
-        <replaceregex pattern="javax\.servlet([^/]+)$" replace="javax.servlet" flags="gi" />
-      </additional-filters>
-      <excludes>
-        <rsel:name name="**/lucene-*-${maven.version.glob}.jar" handledirsep="true"/>
-      </excludes>
-    </m2-validate-dependencies>
-  </target>
-  
-  <property name="module.dependencies.properties.file" location="${common.build.dir}/module.dependencies.properties"/>
-
-  <target name="-append-module-dependencies-properties">
-    <sequential>
-      <property name="top.level.dir" location="${common.dir}/.."/>
-      <pathconvert property="classpath.list" pathsep="," dirsep="/" setonempty="true">
-        <path refid="classpath"/>
-        <globmapper from="${top.level.dir}/*" to="*" handledirsep="true"/>
-      </pathconvert>
-      <pathconvert property="test.classpath.list" pathsep="," dirsep="/" setonempty="true">
-        <path refid="test.classpath"/>
-        <globmapper from="${top.level.dir}/*" to="*" handledirsep="true"/>
-      </pathconvert>
-      <echo append="true" file="${module.dependencies.properties.file}">
-${ant.project.name}.dependencies=${classpath.list}
-${ant.project.name}.test.dependencies=${test.classpath.list}
-      </echo>
-    </sequential>
-  </target>
-
-  <property name="maven.dependencies.filters.file" location="${common.build.dir}/maven.dependencies.filters.properties"/>
-
-  <target name="-get-maven-dependencies" depends="compile-tools,load-custom-tasks">
-    <ant dir="${common.dir}/.." target="-append-all-modules-dependencies-properties" inheritall="false"/>
-    <get-maven-dependencies-macro
-        dir="${common.dir}/.."
-        centralized.versions.file="${common.dir}/ivy-versions.properties"
-        module.dependencies.properties.file="${module.dependencies.properties.file}"
-        maven.dependencies.filters.file="${maven.dependencies.filters.file}"/>
-  </target>
-
-  <target name="-get-maven-poms" depends="-get-maven-dependencies">
-    <property name="maven-build-dir" location="${common.dir}/../maven-build"/>
-    <copy todir="${maven-build-dir}" overwrite="true" encoding="UTF-8">
-      <fileset dir="${common.dir}/../dev-tools/maven"/>
-      <filterset begintoken="@" endtoken="@">
-        <filter token="version" value="${version}"/>
-        <filter token="version.base" value="${version.base}"/>
-        <filter token="spec.version" value="${spec.version}"/>
-      </filterset>
-      <filterset>
-        <filtersfile file="${maven.dependencies.filters.file}"/>
-      </filterset>
-      <globmapper from="*.template" to="*"/>
-    </copy>
-  </target>
-
-  <target name="-filter-pom-templates" depends="-get-maven-dependencies">
-    <mkdir dir="${filtered.pom.templates.dir}"/>
-    <copy todir="${common.dir}/build/poms" overwrite="true" encoding="UTF-8" filtering="on">
-      <fileset dir="${common.dir}/../dev-tools/maven"/>
-      <filterset begintoken="@" endtoken="@">
-        <filter token="version" value="${version}"/>
-      </filterset>
-      <filterset>
-        <filtersfile file="${maven.dependencies.filters.file}"/>
-      </filterset>
-      <globmapper from="*.template" to="*"/>
-    </copy>
-  </target>
-
-  <target name="stage-maven-artifacts">
-    <sequential>
-      <property name="output.build.xml" location="${build.dir}/stage_maven_build.xml"/>
-      <property name="dev-tools.scripts.dir" value="${common.dir}/../dev-tools/scripts"/>
-      <fail message="maven.dist.dir '${maven.dist.dir}' does not exist!">
-        <condition>
-          <not>
-            <available file="${maven.dist.dir}" type="dir"/>
-          </not>
-        </condition>
-      </fail>
-      <exec dir="." executable="${perl.exe}" failonerror="false" outputproperty="stage.maven.script.output"
-        resultproperty="stage.maven.script.success">
-        <arg value="-CSD"/>
-        <arg value="${dev-tools.scripts.dir}/write.stage.maven.build.xml.pl"/>
-        <arg value="${maven.dist.dir}"/>              <!-- Maven distribution artifacts directory -->
-        <arg value="${output.build.xml}"/>            <!-- Ant build file to be written -->
-        <arg value="${common.dir}/common-build.xml"/> <!-- Imported from the ant file to be written -->
-        <arg value="${m2.credentials.prompt}"/>
-        <arg value="${m2.repository.id}"/>
-      </exec>
-      <echo message="${stage.maven.script.output}"/>
-      <fail message="maven stage script failed!">
-        <condition>
-          <not>
-            <equals arg1="${stage.maven.script.success}" arg2="0"/>
-          </not>
-        </condition>
-      </fail>
-    </sequential>
-    <echo>Invoking target stage-maven in ${output.build.xml} now...</echo>
-    <ant target="stage-maven" antfile="${output.build.xml}" inheritall="false">
-      <property name="m2.repository.id" value="${m2.repository.id}"/>
-      <property name="m2.repository.url" value="${m2.repository.url}"/>
-    </ant>
-  </target>
-
-  <target name="rat-sources-typedef" unless="rat.loaded" depends="ivy-availability-check,ivy-configure">
-    <ivy:cachepath organisation="org.apache.rat" module="apache-rat" revision="0.11" transitive="false" inline="true" conf="master" type="jar" pathid="rat.classpath"/>
-    <typedef resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:org.apache.rat.anttasks" classpathref="rat.classpath"/>
-    <property name="rat.loaded" value="true"/>
-  </target>
-
-  <target name="rat-sources" depends="rat-sources-typedef"
-    description="runs the tasks over source and test files">
-    <!-- create a temp file for the log to go to -->
-    <tempfile property="rat.sources.logfile"
-              prefix="rat"
-              destdir="${java.io.tmpdir}"/>
-    <!-- run rat, going to the file -->
-    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" 
-                reportFile="${rat.sources.logfile}" addDefaultLicenseMatchers="true">
-      <fileset dir="." includes="*.xml ${rat.additional-includes}" excludes="${rat.additional-excludes}"/>
-      <fileset dir="${src.dir}" excludes="${rat.excludes}" erroronmissingdir="false"/>
-      <fileset dir="${tests.src.dir}" excludes="${rat.excludes}" erroronmissingdir="false"/>
-
-      <!-- TODO: Check all resource files. Currently not all stopword and similar files have no header! -->
-      <fileset dir="${resources.dir}" includes="META-INF/**" erroronmissingdir="false"/>
-      
-      <!-- BSD 4-clause stuff (is disallowed below) -->
-      <rat:substringMatcher licenseFamilyCategory="BSD4 "
-             licenseFamilyName="Original BSD License (with advertising clause)">
-        <pattern substring="All advertising materials"/>
-      </rat:substringMatcher>
-
-      <!-- BSD-like stuff -->
-      <rat:substringMatcher licenseFamilyCategory="BSD  "
-             licenseFamilyName="Modified BSD License">
-      <!-- brics automaton -->
-        <pattern substring="Copyright (c) 2001-2009 Anders Moeller"/>
-      <!-- snowball -->
-        <pattern substring="Copyright (c) 2001, Dr Martin Porter"/>
-      <!-- UMASS kstem -->
-        <pattern substring="THIS SOFTWARE IS PROVIDED BY UNIVERSITY OF MASSACHUSETTS AND OTHER CONTRIBUTORS"/>
-      <!-- Egothor -->
-        <pattern substring="Egothor Software License version 1.00"/>
-      <!-- JaSpell -->
-        <pattern substring="Copyright (c) 2005 Bruno Martins"/>
-      <!-- d3.js -->
-        <pattern substring="THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"/>
-      <!-- highlight.js -->
-        <pattern substring="THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS"/>
-      </rat:substringMatcher>
-
-      <!-- MIT-like -->
-      <rat:substringMatcher licenseFamilyCategory="MIT  "
-             licenseFamilyName="The MIT License">
-      <!-- ICU license -->
-        <pattern substring="Permission is hereby granted, free of charge, to any person obtaining a copy"/>
-      </rat:substringMatcher>
-
-      <!-- Apache -->
-      <rat:substringMatcher licenseFamilyCategory="AL   "
-             licenseFamilyName="Apache">
-        <pattern substring="Licensed to the Apache Software Foundation (ASF) under"/>
-        <!-- this is the old-school one under some files -->
-        <pattern substring="Licensed under the Apache License, Version 2.0 (the &quot;License&quot;)"/>
-      </rat:substringMatcher>
-
-      <rat:substringMatcher licenseFamilyCategory="GEN  "
-             licenseFamilyName="Generated">
-      <!-- svg files generated by gnuplot -->
-        <pattern substring="Produced by GNUPLOT"/>
-      <!-- snowball stemmers generated by snowball compiler -->
-        <pattern substring="Generated by Snowball"/>
-      <!-- parsers generated by antlr -->
-        <pattern substring="ANTLR GENERATED CODE"/>
-      </rat:substringMatcher>
-
-      <!-- built in approved licenses -->
-      <rat:approvedLicense familyName="Apache"/>
-      <rat:approvedLicense familyName="The MIT License"/>
-      <rat:approvedLicense familyName="Modified BSD License"/>
-      <rat:approvedLicense familyName="Generated"/>
-    </rat:report>
-    <!-- now print the output, for review -->
-    <loadfile property="rat.output" srcFile="${rat.sources.logfile}"/>
-    <echo taskname="rat">${rat.output}</echo>
-    <delete>
-      <fileset file="${rat.sources.logfile}">
-        <and>
-          <containsregexp expression="^0 Unknown Licenses"/>
-          <not>
-            <containsregexp expression="^\s+!"/>
-          </not>
-        </and>
-      </fileset>
-    </delete>
-    <!-- fail if we didnt find the pattern -->
-    <fail message="Rat problems were found!">
-      <condition>
-        <available file="${rat.sources.logfile}"/>
-      </condition>
-    </fail>
-  </target>
-
-  <!--+
-      | M A C R O S
-      +-->
-  <macrodef name="compile">
-    <attribute name="srcdir"/>
-    <attribute name="destdir"/>
-    <attribute name="javac.release" default="${javac.release}"/>
-    <attribute name="includeantruntime" default="${javac.includeAntRuntime}" />
-
-    <element name="nested" implicit="yes" optional="yes"/>
-
-    <sequential>
-      <mkdir dir="@{destdir}"/>
-      <javac
-        includeAntRuntime="@{includeantruntime}"
-        encoding="${build.encoding}"
-        srcdir="@{srcdir}"
-        destdir="@{destdir}"
-        deprecation="${javac.deprecation}"
-        debug="${javac.debug}">
-        <nested/>
-        <!-- <compilerarg line="-Xmaxwarns 10000000"/>
-        <compilerarg line="-Xmaxerrs 10000000"/> -->
-        <compilerarg line="${javac.args}"/>
-        <compilerarg line="--release @{javac.release}"/>
-        <compilerarg line="${javac.doclint.args}"/>
-      </javac>
-    </sequential>
-  </macrodef>
-
-  <!-- ECJ Javadoc linting: -->
-  
-  <condition property="ecj-javadoc-lint.supported">
-    <or>
-      <equals arg1="${java.specification.version}" arg2="11"/>
-      <equals arg1="${java.specification.version}" arg2="12"/>
-      <equals arg1="${java.specification.version}" arg2="13"/>
-    </or>
-  </condition>
-
-  <condition property="ecj-javadoc-lint-tests.supported">
-    <and>
-      <isset property="ecj-javadoc-lint.supported"/>
-      <isset property="module.has.tests"/>
-    </and>
-  </condition>
-
-  <target name="-ecj-javadoc-lint-unsupported" unless="ecj-javadoc-lint.supported">
-    <fail message="Linting documentation with ECJ is not supported on this Java version (${java.specification.version}).">
-      <condition>
-        <not><isset property="is.jenkins.build"/></not>
-      </condition>
-    </fail>
-    <echo level="warning" message="WARN: Linting documentation with ECJ is not supported on this Java version (${java.specification.version}). NOTHING DONE!"/>
-  </target>
-
-  <target name="-ecj-javadoc-lint" depends="-ecj-javadoc-lint-unsupported,-ecj-javadoc-lint-src,-ecj-javadoc-lint-tests"/>
-
-  <target name="-ecj-javadoc-lint-src" depends="-ecj-resolve" if="ecj-javadoc-lint.supported">
-    <ecj-macro srcdir="${src.dir}" configuration="${common.dir}/tools/javadoc/ecj.javadocs.prefs">
-      <classpath refid="classpath"/>
-    </ecj-macro>
-  </target>
-
-  <target name="-ecj-javadoc-lint-tests" depends="-ecj-resolve" if="ecj-javadoc-lint-tests.supported">
-    <ecj-macro srcdir="${tests.src.dir}" configuration="${common.dir}/tools/javadoc/ecj.javadocs.prefs">
-      <classpath refid="test.classpath"/>
-    </ecj-macro>
-  </target>
-  
-  <target name="-ecj-resolve" unless="ecj.loaded" depends="ivy-availability-check,ivy-configure" if="ecj-javadoc-lint.supported">
-    <ivy:cachepath organisation="org.eclipse.jdt" module="ecj" revision="3.19.0"
-     inline="true" conf="master" type="jar" pathid="ecj.classpath" />
-    <componentdef classname="org.eclipse.jdt.core.JDTCompilerAdapter"
-     classpathref="ecj.classpath" name="ecj-component"/>
-    <property name="ecj.loaded" value="true"/>
-  </target>
-
-  <macrodef name="ecj-macro">
-    <attribute name="srcdir"/>
-    <attribute name="javac.release" default="${javac.release}"/>
-    <attribute name="includeantruntime" default="${javac.includeAntRuntime}" />
-    <attribute name="configuration"/>
-
-    <element name="nested" implicit="yes" optional="yes"/>
-
-    <sequential>
-      <!-- hack: we can tell ECJ not to create classfiles, but it still creates
-           package-info.class files. so redirect output to a tempdir -->
-      <tempfile property="ecj.trash.out" destdir="${java.io.tmpdir}" prefix="ecj"/>
-      <mkdir dir="${ecj.trash.out}"/>
-      <javac
-        includeAntRuntime="@{includeantruntime}"
-        encoding="${build.encoding}"
-        srcdir="@{srcdir}"
-        destdir="${ecj.trash.out}"
-        source="@{javac.release}"
-        target="@{javac.release}"
-        taskname="ecj-lint">
-        <ecj-component/>
-        <nested/>
-      <!-- hack: we can't disable classfile creation right now, because we need
-           to specify a destination for buggy package-info.class files
-        <compilerarg value="-d"/>
-        <compilerarg value="none"/> -->
-        <compilerarg value="-enableJavadoc"/>
-        <compilerarg value="-properties"/>
-        <compilerarg value="@{configuration}"/>
-      </javac>
-      <delete dir="${ecj.trash.out}"/>
-    </sequential>
-  </macrodef>
-
-  <property name="failonjavadocwarning" value="true"/>
-  <macrodef name="invoke-javadoc">
-    <element name="sources" optional="yes"/>
-    <attribute name="destdir"/>
-    <attribute name="title" default="${Name} ${version} API"/>
-    <attribute name="overview" default="${src.dir}/overview.html"/>
-    <attribute name="linksource" default="no"/>
-    <sequential>
-      <antcall target="download-java11-javadoc-packagelist"/>
-      <delete file="@{destdir}/stylesheet.css" failonerror="false"/>
-      <delete file="@{destdir}/script.js" failonerror="false"/>
-      <record name="@{destdir}/log_javadoc.txt" action="start" append="no"/>
-      <javadoc
-          overview="@{overview}"
-          packagenames="org.apache.lucene.*,org.apache.solr.*"
-          destdir="@{destdir}"
-          access="${javadoc.access}"
-          encoding="${build.encoding}"
-          charset="${javadoc.charset}"
-          docencoding="${javadoc.charset}"
-          noindex="${javadoc.noindex}"
-          includenosourcepackages="true"
-          author="true"
-          version="true"
-          linksource="@{linksource}"
-          use="true"
-          failonerror="true"
-          locale="en_US"
-          windowtitle="${Name} ${version} API"
-          doctitle="@{title}"
-          maxmemory="${javadoc.maxmemory}">
-        <tag name="lucene.experimental" 
-          description="WARNING: This API is experimental and might change in incompatible ways in the next release."/>
-        <tag name="lucene.internal"
-        description="NOTE: This API is for internal purposes only and might change in incompatible ways in the next release."/>
-        <tag name="lucene.spi"
-        description="SPI Name (Note: This is case-insensitive. e.g., if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service):" scope="types"/>
-        <link offline="true" packagelistLoc="${javadoc.dir}"/>
-        <link offline="true" href="${javadoc.link}" packagelistLoc="${javadoc.packagelist.dir}/java11"/>
-        <bottom><![CDATA[
-          <i>Copyright &copy; ${year} Apache Software Foundation.  All Rights Reserved.</i>
-        ]]></bottom>
-        
-        <sources />
-                
-        <classpath refid="javadoc.classpath"/>
-        <arg line="${javadoc.nomodule.args} --release ${javac.release}"/>
-        <arg line="${javadoc.doclint.args}"/>
-        <!-- force locale to be "en_US", as Javadoc tool ignores locale parameter (in some cases) -->
-        <arg line="-J-Duser.language=en -J-Duser.country=US"/>
-      </javadoc>
-      <record name="@{destdir}/log_javadoc.txt" action="stop"/>
-      
-      <!-- append some special table css -->
-      <concat destfile="@{destdir}/stylesheet.css" append="true" fixlastline="true" encoding="UTF-8">
-        <filelist dir="${common.dir}/tools/javadoc" files="table_padding.css"/>
-      </concat>
-      <!-- append prettify to scripts and css -->
-      <concat destfile="@{destdir}/stylesheet.css" append="true" fixlastline="true" encoding="UTF-8">
-        <filelist dir="${prettify.dir}" files="prettify.css"/>
-      </concat>
-      <concat destfile="@{destdir}/script.js" append="true" fixlastline="true" encoding="UTF-8">
-        <filelist dir="${prettify.dir}" files="prettify.js inject-javadocs.js"/>
-      </concat>
-      <fixcrlf srcdir="@{destdir}" includes="stylesheet.css script.js" eol="lf" fixlast="true" encoding="UTF-8" />
-
-      <delete>
-        <fileset file="@{destdir}/log_javadoc.txt">
-          <not>
-            <containsregexp expression="\[javadoc\]\s*[1-9][0-9]*\s*warning"/>
-          </not>
-        </fileset>
-      </delete>
-
-      <fail message="Javadocs warnings were found!">
-        <condition>
-          <and>
-            <available file="@{destdir}/log_javadoc.txt"/>
-            <istrue value="${failonjavadocwarning}"/>
-          </and>
-        </condition>
-      </fail>
-   </sequential>
-  </macrodef>
-
-  <target name="check-javadocs-uptodate">
-    <uptodate property="javadocs-uptodate-${name}" targetfile="${build.dir}/${final.name}-javadoc.jar">
-      <srcfiles dir="${src.dir}">
-        <include name="**/*.java"/>
-        <include name="**/*.html"/>
-      </srcfiles>
-    </uptodate>
-  </target>
-
-  <macrodef name="modules-crawl">
-    <attribute name="target" default=""/>
-    <attribute name="failonerror" default="true"/>
-    <sequential>
-      <subant target="@{target}" failonerror="@{failonerror}" inheritall="false">
-        <propertyset refid="uptodate.and.compiled.properties"/>
-        <fileset dir="." includes="*/build.xml" excludes="build/**,core/**,test-framework/**,tools/**"/>
-      </subant>
-    </sequential>
-  </macrodef>
-
-  <target name="download-java11-javadoc-packagelist" unless="javadoc.java11.packagelist.exists">
-    <mkdir dir="${javadoc.packagelist.dir}/java11"/>
-    <get src="${javadoc.link}/element-list"
-         dest="${javadoc.packagelist.dir}/java11/package-list" ignoreerrors="true"/>
-  </target>
-
-  <!-- VALIDATION work -->
-
-  <!-- Generic placeholder target for if we add other validation tasks -->
-  <target name="validate">
-  </target>
-
-  <property name="src.export.dir" location="${build.dir}/src-export"/>
-  <macrodef name="export-source"
-            description="Exports the source to src.export.dir.">
-    <attribute name="source.dir"/>
-    <sequential>
-      <delete dir="${src.export.dir}" includeemptydirs="true" failonerror="false"/>
-      <exec dir="@{source.dir}" executable="${git.exe}" failonerror="true">
-        <arg value="checkout-index"/>
-        <arg value="-a"/>
-        <arg value="-f"/>
-        <arg value="--prefix=${src.export.dir}/"/>
-      </exec>
-    </sequential>
-  </macrodef>
-
-  <macrodef name="make-checksums" description="Macro for building checksum files">
-    <attribute name="file"/>
-    <sequential>
-      <echo>Building checksums for '@{file}'</echo>
-      <checksum file="@{file}" algorithm="SHA-512" fileext=".sha512" format="MD5SUM" forceoverwrite="yes" readbuffersize="65536"/>
-    </sequential>
-  </macrodef>
-
-  <macrodef name="jar-checksum-macro">
-      <attribute name="srcdir"/>
-      <attribute name="dstdir"/>
-    <sequential>
-      <delete>
-        <fileset dir="@{dstdir}">
-          <include name="**/*.jar.sha1"/>
-
-          <!--
-          Don't delete jetty-start-* because this isn't regerated by ant (but is generated and validated by
-          the gradle build).
-          -->
-          <exclude name="**/jetty-start-*" />
-        </fileset>
-      </delete>
-
-      <!-- checksum task does not have a flatten=true -->
-      <tempfile property="jar-checksum.temp.dir"/>
-      <mkdir dir="${jar-checksum.temp.dir}"/>
-      <copy todir="${jar-checksum.temp.dir}" flatten="true">
-        <fileset dir="@{srcdir}">
-          <include name="**/*.jar"/>
-          <!-- todo make this something passed into the macro and not some hardcoded set -->
-          <exclude name="build/**"/>
-          <exclude name="dist/**"/>
-          <exclude name="package/**"/>
-          <exclude name="example/exampledocs/**"/>
-        </fileset>
-      </copy>
-
-      <checksum algorithm="SHA1" fileext=".sha1" todir="@{dstdir}">
-        <fileset dir="${jar-checksum.temp.dir}"/>
-      </checksum>
-
-      <delete dir="${jar-checksum.temp.dir}"/>
-
-      <fixcrlf 
-        srcdir="@{dstdir}"
-        includes="**/*.jar.sha1"
-        eol="lf" fixlast="true" encoding="US-ASCII" />
-    </sequential>
-  </macrodef>
-
-  <macrodef name="sign-artifacts-macro">
-    <attribute name="artifacts.dir"/>
-    <sequential>
-      <delete failonerror="false">
-        <fileset dir="@{artifacts.dir}">
-          <include name="**/*.asc"/>
-        </fileset>
-      </delete>
-
-      <available property="gpg.input.handler" classname="org.apache.tools.ant.input.SecureInputHandler"
-                 value="org.apache.tools.ant.input.SecureInputHandler"/>
-      <!--else:--><property name="gpg.input.handler" value="org.apache.tools.ant.input.DefaultInputHandler"/>
-      <echo>WARNING: ON SOME PLATFORMS YOUR PASSPHRASE WILL BE ECHOED BACK!!!!!</echo>
-      <input message="Enter GPG keystore password: >" addproperty="gpg.passphrase">
-        <handler classname="${gpg.input.handler}" />
-      </input>
-
-      <apply executable="${gpg.exe}" inputstring="${gpg.passphrase}"
-             dest="@{artifacts.dir}" type="file" maxparallel="1" verbose="yes">
-        <arg value="--passphrase-fd"/>
-        <arg value="0"/>
-        <arg value="--batch"/>
-        <arg value="--armor"/>
-        <arg value="--default-key"/>
-        <arg value="${gpg.key}"/>
-        <arg value="--output"/>
-        <targetfile/>
-        <arg value="--detach-sig"/>
-        <srcfile/>
-
-        <fileset dir="@{artifacts.dir}">
-          <include name="**/*.jar"/>
-          <include name="**/*.war"/>
-          <include name="**/*.zip"/>
-          <include name="**/*.tgz"/>
-          <include name="**/*.pom"/>
-        </fileset>
-        <globmapper from="*" to="*.asc"/>
-      </apply>
-    </sequential>
-  </macrodef>
-
-  <!-- JFlex task -->
-  <target name="-install-jflex" unless="jflex.loaded" depends="ivy-availability-check,ivy-configure">
-    <ivy:cachepath organisation="de.jflex" module="jflex" revision="1.7.0"
-                   inline="true" conf="default" transitive="true" pathid="jflex.classpath"/>
-    <taskdef name="jflex" classname="jflex.anttask.JFlexTask" classpathref="jflex.classpath"/>
-    <property name="jflex.loaded" value="true"/>
-  </target>
-
-  <!-- GROOVY scripting engine for ANT tasks -->
-  <target name="resolve-groovy" unless="groovy.loaded" depends="ivy-availability-check,ivy-configure">
-    <ivy:cachepath organisation="org.codehaus.groovy" module="groovy-all" revision="2.4.17"
-      inline="true" conf="default" type="jar" transitive="true" pathid="groovy.classpath"/>
-    <taskdef name="groovy"
-      classname="org.codehaus.groovy.ant.Groovy"
-      classpathref="groovy.classpath"/>
-    <property name="groovy.loaded" value="true"/>
-  </target>
-  
-  <!-- Forbidden API Task -->
-  <property name="forbidden-base-excludes" value=""/>
-  <property name="forbidden-tests-excludes" value=""/>
-  <property name="forbidden-sysout-excludes" value=""/>
-  
-  <target name="-install-forbidden-apis" unless="forbidden-apis.loaded" depends="ivy-availability-check,ivy-configure">
-    <ivy:cachepath organisation="de.thetaphi" module="forbiddenapis" revision="3.0.1"
-      inline="true" conf="default" transitive="true" pathid="forbidden-apis.classpath"/>
-    <taskdef name="forbidden-apis" classname="de.thetaphi.forbiddenapis.ant.AntTask" classpathref="forbidden-apis.classpath"/>
-    <property name="forbidden-apis.loaded" value="true"/>
-  </target>  
-
-  <target name="-init-forbidden-apis" depends="-install-forbidden-apis">
-    <path id="forbidden-apis.allclasses.classpath">
-      <path refid="classpath"/>
-      <path refid="test.classpath"/>
-      <path refid="junit-path"/>
-      <!-- include the output directories, too (so we can still resolve excluded classes: -->
-      <pathelement path="${build.dir}/classes/java"/>
-      <pathelement path="${build.dir}/classes/test"/>
-    </path>
-  </target>  
-
-  <condition property="forbidden-isLucene">
-    <not>
-      <or>
-        <matches pattern="^(solr)\b" string="${name}"/>
-        <matches pattern="tools" string="${name}"/>
-      </or>
-    </not>
-  </condition>
-
-  <target name="check-forbidden-apis" depends="-check-forbidden-all,-check-forbidden-core,-check-forbidden-tests" description="Check forbidden API calls in compiled class files"/>
-  
-  <!-- applies to both source and test code -->
-  <target name="-check-forbidden-all" depends="-init-forbidden-apis,compile-core,compile-test">
-    <forbidden-apis suppressAnnotation="**.SuppressForbidden" classpathref="forbidden-apis.allclasses.classpath" targetVersion="${javac.release}">
-      <signatures>
-        <bundled name="jdk-unsafe"/>
-        <bundled name="jdk-deprecated"/>
-        <bundled name="jdk-non-portable"/>
-        <bundled name="jdk-reflection"/>
-        <fileset dir="${common.dir}/tools/forbiddenApis">
-          <include name="base.txt"/>
-          <include name="lucene.txt" if="forbidden-isLucene"/>
-        </fileset>
-      </signatures>
-      <fileset dir="${build.dir}/classes/java" excludes="${forbidden-base-excludes}"/>
-      <fileset dir="${build.dir}/classes/test" excludes="${forbidden-tests-excludes}" erroronmissingdir="false"/>
-    </forbidden-apis>
-  </target>
-
-  <!-- applies to only test code -->
-  <target name="-check-forbidden-tests" depends="-init-forbidden-apis,compile-test">
-    <forbidden-apis signaturesFile="${common.dir}/tools/forbiddenApis/tests.txt" suppressAnnotation="**.SuppressForbidden" classpathref="forbidden-apis.allclasses.classpath" targetVersion="${javac.release}"> 
-      <fileset dir="${build.dir}/classes/test" excludes="${forbidden-tests-excludes}"/>
-    </forbidden-apis>
-  </target>
- 
-  <!-- applies to only source code -->
-  <target name="-check-forbidden-core" depends="-init-forbidden-apis,compile-core,-check-forbidden-sysout" />
-
-  <target name="-check-forbidden-sysout" depends="-init-forbidden-apis,compile-core">
-    <forbidden-apis bundledSignatures="jdk-system-out" suppressAnnotation="**.SuppressForbidden" classpathref="forbidden-apis.allclasses.classpath" targetVersion="${javac.release}">
-      <fileset dir="${build.dir}/classes/java" excludes="${forbidden-sysout-excludes}"/>
-    </forbidden-apis>
-  </target>
-
-  <target name="resolve-markdown" unless="markdown.loaded" depends="resolve-groovy">
-    <property name="flexmark.version" value="0.42.6"/>
-    <ivy:cachepath transitive="true" resolveId="flexmark" pathid="markdown.classpath">
-      <ivy:dependency org="com.vladsch.flexmark" name="flexmark" rev="${flexmark.version}" conf="default" />
-      <ivy:dependency org="com.vladsch.flexmark" name="flexmark-ext-autolink" rev="${flexmark.version}" conf="default" />
-      <ivy:dependency org="com.vladsch.flexmark" name="flexmark-ext-abbreviation" rev="${flexmark.version}" conf="default" />
-    </ivy:cachepath>
-    <groovy classpathref="markdown.classpath" src="${common.dir}/tools/src/groovy/install-markdown-filter.groovy"/>
-    <property name="markdown.loaded" value="true"/>
-  </target>
-  
-  <!-- markdown macro: Before using depend on the target "resolve-markdown" -->
-  
-  <macrodef name="markdown">
-    <attribute name="todir"/>
-    <attribute name="flatten" default="false"/>
-    <attribute name="overwrite" default="false"/>
-    <element name="nested" optional="false" implicit="true"/>
-    <sequential>
-      <copy todir="@{todir}" flatten="@{flatten}" overwrite="@{overwrite}" verbose="true"
-        preservelastmodified="false" encoding="UTF-8" taskname="markdown"
-      >
-        <filterchain>
-          <tokenfilter>
-            <filetokenizer/>
-            <replaceregex pattern="\b(LUCENE|SOLR)\-\d+\b" replace="[\0](https://issues.apache.org/jira/browse/\0)" flags="gs"/>
-            <markdownfilter/>
-          </tokenfilter>
-        </filterchain>
-        <nested/>
-      </copy>
-    </sequential>
-  </macrodef>
-
-  <target name="regenerate"/>
-  
-  <macrodef name="check-broken-links">
-       <attribute name="dir"/>
-     <sequential>
-       <exec dir="." executable="${python3.exe}" failonerror="true">
-         <!-- Tell Python not to write any bytecode cache into the filesystem: -->
-         <arg value="-B"/>
-         <arg value="${dev-tools.dir}/scripts/checkJavadocLinks.py"/>
-         <arg value="@{dir}"/>
-       </exec>
-     </sequential>
-  </macrodef>
-
-  <macrodef name="check-missing-javadocs">
-       <attribute name="dir"/>
-       <attribute name="level" default="class"/>
-     <sequential>
-       <exec dir="." executable="${python3.exe}" failonerror="true">
-         <!-- Tell Python not to write any bytecode cache into the filesystem: -->
-         <arg value="-B"/>
-         <arg value="${dev-tools.dir}/scripts/checkJavaDocs.py"/>
-         <arg value="@{dir}"/>
-         <arg value="@{level}"/>
-       </exec>
-     </sequential>
-  </macrodef>
-
-  <!--
-   compile changes.txt into an html file
-   -->
-  <macrodef name="build-changes">
-    <attribute name="changes.product"/>
-    <attribute name="doap.property.prefix" default="doap.@{changes.product}"/>
-    <attribute name="changes.src.file" default="CHANGES.txt"/>
-    <attribute name="changes.src.doap" default="${dev-tools.dir}/doap/@{changes.product}.rdf"/>
-    <attribute name="changes.version.dates" default="build/@{doap.property.prefix}.version.dates.csv"/>
-    <attribute name="changes.target.dir" default="${changes.target.dir}"/>
-    <attribute name="lucene.javadoc.url" default="${lucene.javadoc.url}"/>
-    <sequential>
-      <mkdir dir="@{changes.target.dir}"/>
-      <xmlproperty keeproot="false" file="@{changes.src.doap}" collapseAttributes="false" prefix="@{doap.property.prefix}"/>
-      <echo file="@{changes.version.dates}" append="false">${@{doap.property.prefix}.Project.release.Version.revision}&#xA;</echo>
-      <echo file="@{changes.version.dates}" append="true">${@{doap.property.prefix}.Project.release.Version.created}&#xA;</echo>
-      <exec executable="${perl.exe}" input="@{changes.src.file}" output="@{changes.target.dir}/Changes.html"
-            failonerror="true" logError="true">
-        <arg value="-CSD"/>
-        <arg value="${changes.src.dir}/changes2html.pl"/>
-        <arg value="@{changes.product}"/>
-        <arg value="@{changes.version.dates}"/>
-        <arg value="@{lucene.javadoc.url}"/>
-      </exec>
-      <delete file="@{changes.version.dates}"/>
-      <copy todir="@{changes.target.dir}">
-        <fileset dir="${changes.src.dir}" includes="*.css"/>
-      </copy>
-    </sequential>
-  </macrodef>
-
-  <macrodef name="pitest-macro" description="Executes junit tests.">
-    <attribute name="pitest.report.dir" default="${pitest.report.dir}"/>
-    <attribute name="pitest.framework.classpath" default="pitest.framework.classpath"/>
-    <attribute name="pitest.distance" default="${pitest.distance}" />
-    <attribute name="pitest.sysprops" default="${pitest.sysprops}" />
-    <attribute name="pitest.threads" default="${pitest.threads}" />
-    <attribute name="pitest.testCases" default="${pitest.testCases}" />
-    <attribute name="pitest.maxMutations" default="${pitest.maxMutations}" />
-    <attribute name="pitest.timeoutFactor" default="${pitest.timeoutFactor}" />
-    <attribute name="pitest.timeoutConst" default="${pitest.timeoutConst}" />
-    <attribute name="pitest.targetClasses" default="${pitest.targetClasses}" />
-
-    <attribute name="junit.classpath" default="junit.classpath"/>
-
-    <attribute name="src.dir" default="${src.dir}"/>
-    <attribute name="build.dir" default="${build.dir}"/>
-
-    <sequential>
-
-        <echo>
-PiTest mutation coverage can take a *long* time on even large hardware.
-(EC2 32core sandy bridge takes at least 12 hours to run PiTest for the lucene test cases)
-
-The following arguments can be provided to ant to alter its behaviour and target specific tests::
-
--Dpitest.report.dir (@{pitest.report.dir}) - Change where PiTest writes output reports
-
--Dpitest.distance (@{pitest.distance}) - How far away from the test class should be mutated
-   0 being immeditate callees only
-
--Dpitest.threads (@{pitest.threads}) - How many threads to use in PiTest 
-   (note this is independent of junit threads)
-
--Dpitest.testCases (@{pitest.testCases}) - Glob of testcases to run
-
--Dpitest.maxMutations (@{pitest.maxMutations}) - Maximum number of mutations per class under test
-    0 being unlimited
-
--Dpitest.timeoutFactor (@{pitest.timeoutFactor}) - Tunable factor used to determine
-    if a test is potentially been mutated to be an infinate loop or O(n!) (or similar)
-
--Dpitest.timeoutConst (@{pitest.timeoutConst}) - Base constant used for working out timeouts
-
--Dpitest.targetClasses (@{pitest.targetClasses}) - Classes to consider for mutation
-        </echo>
-
-        <taskdef name="pitest" classname="org.pitest.ant.PitestTask"
-            classpathref="pitest.framework.classpath" />
-
-        <path id="pitest.classpath">
-            <path refid="junit.classpath"/>
-            <path refid="pitest.framework.classpath"/>
-        </path>
-
-        <junit4:pickseed property="pitest.seed" />
-
-        <property name="pitest.sysprops" value="-Dversion=${version},-Dtest.seed=${pitest.seed},-Djava.security.manager=org.apache.lucene.util.TestSecurityManager,-Djava.security.policy=${tests.policy},-Djava.io.tmpdir=${tests.workDir},-Djunit4.childvm.cwd=${tests.workDir}" />
-
-        <pitest
-            classPath="pitest.classpath"
-            targetClasses="@{pitest.targetClasses}"
-            targetTests="@{pitest.testCases}"
-            reportDir="@{pitest.report.dir}"
-            sourceDir="@{src.dir}"
-            threads="@{pitest.threads}"
-            maxMutationsPerClass="@{pitest.maxMutations}"
-            timeoutFactor="@{pitest.timeoutFactor}"
-            timeoutConst="@{pitest.timeoutConst}"
-            verbose="false"
-            dependencyDistance="@{pitest.distance}"
-            mutableCodePaths="@{build.dir}/classes/java"
-            jvmArgs="-ea,@{pitest.sysprops}" />
-    </sequential>
-  </macrodef>
-
-  <macrodef name="run-jflex">
-    <attribute name="dir"/>
-    <attribute name="name"/>
-    <sequential>
-      <!-- The default skeleton is specified here to work around a JFlex ant task bug:    -->
-      <!-- invocations with a non-default skeleton will cause following invocations to    -->
-      <!-- use the same skeleton, though not specified, unless the default is configured. -->
-      <delete file="@{dir}/@{name}.java" />
-      <jflex file="@{dir}/@{name}.jflex" outdir="@{dir}" nobak="on"
-             encoding="UTF-8"
-             skeleton="${common.dir}/core/src/data/jflex/skeleton.default"/>
-    </sequential>
-  </macrodef>
-
-  <macrodef name="run-jflex-and-disable-buffer-expansion">
-    <attribute name="dir"/>
-    <attribute name="name"/>
-    <sequential>
-      <!-- LUCENE-5897: Disallow scanner buffer expansion -->
-      <jflex file="@{dir}/@{name}.jflex" outdir="@{dir}" nobak="on"
-             encoding="UTF-8"
-             skeleton="${common.dir}/core/src/data/jflex/skeleton.disable.buffer.expansion.txt"/>
-      <!-- Since the ZZ_BUFFERSIZE declaration is generated rather than in the skeleton, we have to transform it here. -->
-      <replaceregexp file="@{dir}/@{name}.java"
-                     match="private static final int ZZ_BUFFERSIZE ="
-                     replace="private int ZZ_BUFFERSIZE ="/>
-    </sequential>
-  </macrodef>
-
-
-</project>
diff --git a/lucene/core/build.xml b/lucene/core/build.xml
deleted file mode 100644
index 5fa7512..0000000
--- a/lucene/core/build.xml
+++ /dev/null
@@ -1,235 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="core" default="default">
-  <description>Lucene core library</description>
-
-  <property name="build.dir" location="../build/core"/>
-
-  <!-- lucene core can use the minimal JDK profile -->
-  <property name="javac.profile.args" value="-profile compact1"/>
-  <import file="../common-build.xml"/>
-
-  <property name="moman.commit-hash" value="497c90e34e412b6494db6dabf0d95db8034bd325" />
-  <property name="moman.url" value="https://github.com/jpbarrette/moman/archive/${moman.commit-hash}.zip" />
-
-  <path id="classpath"/>
-  
-  <path id="test.classpath">
-    <pathelement location="${common.dir}/build/codecs/classes/java"/>
-    <pathelement location="${common.dir}/build/test-framework/classes/java"/>
-    <path refid="junit-path"/>
-    <pathelement location="${build.dir}/classes/java"/>
-    <pathelement location="${build.dir}/classes/test"/>
-  </path>
-
-  <path id="junit.classpath">
-    <path refid="test.classpath"/>
-  </path>
-
-  <target name="test-core" depends="common.test"/>
-
-  <target name="javadocs-core" depends="javadocs"/>
-  <target name="javadocs" description="Generate javadoc for core classes" 
-          depends="check-javadocs-uptodate" unless="javadocs-uptodate-${name}">
-     <sequential>
-      <mkdir dir="${javadoc.dir}/core"/>
-      <invoke-javadoc destdir="${javadoc.dir}/core" title="${Name} ${version} core API">
-        <sources>
-          <packageset dir="${src.dir}"/>
-          <link href=""/>
-        </sources>
-      </invoke-javadoc>
-      <mkdir dir="${build.dir}"/>
-     <jarify basedir="${javadoc.dir}/core" destfile="${build.dir}/${final.name}-javadoc.jar"/>
-    </sequential>
-  </target>
-
-  <target name="-dist-maven" depends="-dist-maven-src-java"/>
-
-  <target name="-install-to-maven-local-repo" depends="-install-src-java-to-maven-local-repo"/>
-
-  <macrodef name="createLevAutomaton">
-      <attribute name="n"/>
-      <sequential>
-      <exec dir="src/java/org/apache/lucene/util/automaton"
-            executable="${python3.exe}" failonerror="true">
-        <!-- Tell Python not to write any bytecode cache into the filesystem: -->
-        <arg value="-B"/>
-        <arg value="createLevAutomata.py"/>
-        <arg value="@{n}"/>
-        <arg value="True"/>
-        <!-- Hack while transitioning to Gradle build in 9.0 -->
-        <arg value="../../../../../../../../build/core/moman/finenight/python"/>
-      </exec>
-      <exec dir="src/java/org/apache/lucene/util/automaton"
-            executable="${python3.exe}" failonerror="true">
-        <!-- Tell Python not to write any bytecode cache into the filesystem: -->
-        <arg value="-B"/>
-        <arg value="createLevAutomata.py"/>
-        <arg value="@{n}"/>
-        <arg value="False"/>
-        <!-- Hack while transitioning to Gradle build in 9.0 -->
-        <arg value="../../../../../../../../build/core/moman/finenight/python"/>
-      </exec>
-      <fixcrlf srcdir="src/java/org/apache/lucene/util/automaton" includes="*ParametricDescription.java" encoding="UTF-8"/>
-    </sequential>
-  </macrodef>
-
-  <target name="createPackedIntSources">
-    <exec dir="src/java/org/apache/lucene/util/packed"
-          executable="${python3.exe}" failonerror="true">
-      <!-- Tell Python not to write any bytecode cache into the filesystem: -->
-      <arg value="-B"/>
-      <arg value="gen_BulkOperation.py"/>
-    </exec>
-    <exec dir="src/java/org/apache/lucene/util/packed"
-          executable="${python3.exe}" failonerror="true">
-      <!-- Tell Python not to write any bytecode cache into the filesystem: -->
-      <arg value="-B"/>
-      <arg value="gen_Packed64SingleBlock.py"/>
-    </exec>
-    <fixcrlf srcdir="src/java/org/apache/lucene/util/packed" includes="BulkOperation*.java,Packed64SingleBlock.java" encoding="UTF-8"/>
-  </target>
-
-  <target name="createLevAutomata" depends="check-moman,download-moman">
-    <createLevAutomaton n="1"/>
-    <createLevAutomaton n="2"/>
-  </target>
-  
-  <target name="check-moman">
-    <available file="${build.dir}/moman" property="moman.downloaded"/>
-  </target>
-
-  <target name="download-moman" unless="moman.downloaded">
-    <mkdir dir="${build.dir}/moman"/>
-    <get src="${moman.url}" dest="${build.dir}/moman.zip"/>
-    <unzip dest="${build.dir}/moman" src="${build.dir}/moman.zip">
-      <cutdirsmapper dirs="1"/>
-    </unzip>
-    <delete file="${build.dir}/moman.zip"/>
-  </target>
-
-  <target name="regenerate" depends="createLevAutomata,createPackedIntSources,jflex"/>
-  
-  <macrodef name="startLockStressTestClient">
-    <attribute name="clientId"/>
-    <attribute name="lockFactoryImpl"/>
-    <attribute name="lockFactoryDir"/>
-    <sequential>
-      <local name="lockverifyserver.port"/>
-      <groovy><![CDATA[
-        String port;
-        while ((port = System.getProperty("lockverifyserver.port")) == null) {
-          Thread.sleep(10L);
-        }
-        properties["lockverifyserver.port"] = port;
-      ]]></groovy>
-      <java taskname="lockStressTest@{clientId}" fork="true" classpathref="test-lock.classpath" classname="org.apache.lucene.store.LockStressTest" failOnError="true"> 
-        <arg value="@{clientId}"/>
-        <arg value="${lockverifyserver.host}"/>
-        <arg value="${lockverifyserver.port}"/>
-        <arg value="@{lockFactoryImpl}"/>
-        <arg value="@{lockFactoryDir}"/>
-        <arg value="${lockverify.delay}"/>
-        <arg value="${lockverify.count}"/>
-      </java>
-    </sequential>
-  </macrodef>
-  
-  <macrodef name="testLockFactory">
-    <attribute name="lockFactoryImpl"/>
-    <attribute name="lockFactoryDir"/>
-    <sequential>
-      <echo taskname="testLockFactory" message="Testing @{lockFactoryImpl}..."/>
-      <mkdir dir="@{lockFactoryDir}"/>
-      <parallel threadCount="3" failonany="false">
-        <sequential>
-          <!-- the server runs in-process, so we can wait for the sysproperty -->
-          <java taskname="lockVerifyServer" fork="false" classpathref="test-lock.classpath" classname="org.apache.lucene.store.LockVerifyServer" failOnError="true">
-            <arg value="${lockverifyserver.host}"/>
-            <arg value="2"/>
-          </java>
-        </sequential>
-        <sequential>
-          <startLockStressTestClient clientId="1" lockFactoryImpl="@{lockFactoryImpl}" lockFactoryDir="@{lockFactoryDir}" />
-        </sequential>
-        <sequential>
-          <startLockStressTestClient clientId="2" lockFactoryImpl="@{lockFactoryImpl}" lockFactoryDir="@{lockFactoryDir}" />
-        </sequential>
-      </parallel>
-    </sequential>
-  </macrodef>
-  
-  <condition property="-ignore-test-lock-factory">
-    <or>
-      <!-- We ignore our ant-based lock factory test, if user applies test filtering: -->
-      <isset property="tests.class" />
-      <isset property="tests.method" />
-      <!-- Clover seems to deadlock if running instrumented code inside the Ant JVM: -->
-      <isset property="run.clover" />
-    </or>
-  </condition>
-  
-  <target name="test-lock-factory" depends="resolve-groovy,compile-core" unless="-ignore-test-lock-factory"
-    description="Run LockStressTest with multiple JVMs">
-    <property name="lockverifyserver.host" value="127.0.0.1"/>
-    <property name="lockverify.delay" value="1"/>
-    <groovy taskname="lockVerifySetup"><![CDATA[
-      System.clearProperty("lockverifyserver.port"); // make sure it is undefined
-      
-      if (!properties["lockverify.count"]) {
-        int count = Boolean.parseBoolean(properties["tests.nightly"]) ?
-          30000 : 500;
-        count *= Integer.parseInt(properties["tests.multiplier"]);
-        properties["lockverify.count"] = count;
-      }
-      
-      task.log("Configuration properties:");
-      ["lockverify.delay", "lockverify.count"].each {
-        k -> task.log(" " + k + "=" + properties[k]);
-      }
-    ]]></groovy>
-    <path id="test-lock.classpath">
-      <path refid="classpath"/>
-      <pathelement location="${build.dir}/classes/java"/>
-    </path>
-    <testLockFactory lockFactoryImpl="org.apache.lucene.store.NativeFSLockFactory" lockFactoryDir="${build.dir}/lockfactorytest/native" />
-    <testLockFactory lockFactoryImpl="org.apache.lucene.store.SimpleFSLockFactory" lockFactoryDir="${build.dir}/lockfactorytest/simple" />
-  </target>
-  
-  <target name="test" depends="common.test, test-lock-factory"/>
-
-  <target name="clean-jflex">
-    <delete>
-      <fileset dir="src/java/org/apache/lucene/analysis/standard" includes="**/*.java">
-        <containsregexp expression="generated.*by.*JFlex"/>
-      </fileset>
-    </delete>
-  </target>
-
-  <target name="jflex" depends="-install-jflex,clean-jflex,-jflex-StandardAnalyzer"/>
-  
-  <target name="-jflex-StandardAnalyzer" depends="init,-install-jflex">
-    <run-jflex-and-disable-buffer-expansion 
-        dir="src/java/org/apache/lucene/analysis/standard" name="StandardTokenizerImpl"/>
-  </target>
-
-
-</project>
diff --git a/lucene/core/ivy.xml b/lucene/core/ivy.xml
deleted file mode 100644
index bbca9f9..0000000
--- a/lucene/core/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="core"/>
-</ivy-module>
diff --git a/lucene/default-nested-ivy-settings.xml b/lucene/default-nested-ivy-settings.xml
deleted file mode 100644
index 1b1603f..0000000
--- a/lucene/default-nested-ivy-settings.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.
--->
-<ivysettings>
-  <!-- This file is included by default by top-level-ivy-settings.xml,
-       which loads ivy-versions.properties as Ivy variables.          -->
-
-  <settings defaultResolver="default"/>
-
-  <property name="local-maven2-dir" value="${user.home}/.m2/repository/" />
-
-  <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
-  <include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
-  <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
-  <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
-
-  <caches lockStrategy="${ivy.lock-strategy}" resolutionCacheDir="${ivy.resolution-cache.dir}" />
-
-  <resolvers>
-    <ibiblio name="sonatype-releases" root="https://oss.sonatype.org/content/repositories/releases" m2compatible="true" />
-    <ibiblio name="maven.restlet.com" root="https://maven.restlet.com" m2compatible="true" />
-    <ibiblio name="releases.cloudera.com" root="https://repository.cloudera.com/artifactory/libs-release-local" m2compatible="true" />
-
-    <filesystem name="local-maven-2" m2compatible="true" local="true">
-      <artifact
-          pattern="${local-maven2-dir}/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" />
-      <ivy
-          pattern="${local-maven2-dir}/[organisation]/[module]/[revision]/[module]-[revision].pom" />
-    </filesystem>
-
-    <chain name="default" returnFirst="true" checkmodified="true" changingPattern=".*SNAPSHOT">
-      <resolver ref="local"/>
-      <!-- <resolver ref="local-maven-2" /> -->
-      <resolver ref="main"/>
-      <resolver ref="maven.restlet.com" />
-      <resolver ref="sonatype-releases" />
-      <resolver ref="releases.cloudera.com"/>
-    </chain>
-  </resolvers>
-
-</ivysettings>
diff --git a/lucene/demo/build.xml b/lucene/demo/build.xml
deleted file mode 100644
index d5e50ad..0000000
--- a/lucene/demo/build.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="demo" default="default" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
-
-  <description>
-    Simple example code
-  </description>
-
-  <property name="demo.name" value="lucene-demos-${version}"/>
-
-  <import file="../module-build.xml"/>
-
-  <target name="init" depends="module-build.init,jar-lucene-core"/>
-  
-  <path id="classpath">
-   <pathelement path="${analyzers-common.jar}"/>
-   <pathelement path="${queryparser.jar}"/>
-   <pathelement path="${lucene-core.jar}"/>
-   <pathelement path="${queries.jar}"/>
-   <pathelement path="${facet.jar}"/>
-   <pathelement path="${expressions.jar}"/>
-   <fileset dir="../expressions/lib"/>
-  </path>
-
-  <target name="javadocs" depends="javadocs-analyzers-common,javadocs-queryparser,javadocs-facet,javadocs-expressions,compile-core,check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <!-- we link the example source in the javadocs, as it's ref'ed elsewhere -->
-    <invoke-module-javadoc linksource="yes">
-      <links>
-        <link href="../analyzers-common"/>
-        <link href="../queryparser"/>
-        <link href="../queries"/>
-        <link href="../facet"/>
-        <link href="../expressions"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-
-  <!-- we don't check for sysout in demo, because the demo is there to use sysout :-) -->
-  <target name="-check-forbidden-sysout"/>
-
-  <target name="compile-core" depends="jar-analyzers-common,jar-queryparser,jar-queries,jar-facet,jar-expressions,common.compile-core" />
-
-</project>
diff --git a/lucene/demo/ivy.xml b/lucene/demo/ivy.xml
deleted file mode 100644
index 69076d1..0000000
--- a/lucene/demo/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="demo"/>
-</ivy-module>
diff --git a/lucene/expressions/build.xml b/lucene/expressions/build.xml
deleted file mode 100644
index 61ae64f..0000000
--- a/lucene/expressions/build.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version="1.0"?>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-<project name="expressions" default="default">
-
-  <description>
-    Dynamically computed values to sort/facet/search on based on a pluggable grammar.
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <path id="classpath">
-    <path refid="base.classpath"/>
-    <fileset dir="lib"/>
-  </path>
-
-  <path id="test.classpath">
-    <path refid="test.base.classpath"/>
-    <fileset dir="lib"/>
-    <pathelement path="src/test-files"/>
-  </path>
-
-  <target name="regenerate" depends="run-antlr"/>
-
-  <target name="resolve-antlr" xmlns:ivy="antlib:org.apache.ivy.ant">
-    <ivy:cachepath organisation="org.antlr" module="antlr4" revision="4.5.1-1"
-                  inline="true" conf="default" type="jar" pathid="antlr.classpath"/>
-  </target>
-
-  <target name="run-antlr" depends="resolve-antlr">
-    <regen-grammar package="js" grammar="Javascript"/>
-  </target>
-  
-  <macrodef name="replace-value">
-    <attribute name="value" />
-    <attribute name="property" />
-    <attribute name="from" />
-    <attribute name="to" />
-    <sequential>
-      <loadresource property="@{property}">
-        <string value="@{value}"/>
-        <filterchain>
-          <tokenfilter>
-            <filetokenizer/>
-            <replacestring from="@{from}" to="@{to}"/>
-          </tokenfilter>
-        </filterchain>
-      </loadresource>
-    </sequential>
-  </macrodef>
-
-  <macrodef name="regen-grammar">
-    <attribute name="package" />
-    <attribute name="grammar" />
-    <sequential>
-      <local name="grammar.path"/>
-      <patternset id="grammar.@{grammar}.patternset">
-        <include name="@{grammar}Lexer.java" />
-        <include name="@{grammar}Parser.java" />
-        <include name="@{grammar}Visitor.java" />
-        <include name="@{grammar}BaseVisitor.java" />
-      </patternset>
-      <property name="grammar.path" location="src/java/org/apache/lucene/expressions/@{package}"/>
-      <!-- delete parser and lexer so files will be generated -->
-      <delete dir="${grammar.path}">
-        <patternset refid="grammar.@{grammar}.patternset"/>
-      </delete>
-      <!-- invoke ANTLR4 -->
-      <java classname="org.antlr.v4.Tool" fork="true" failonerror="true" classpathref="antlr.classpath" taskname="antlr">
-        <sysproperty key="file.encoding" value="UTF-8"/>
-        <sysproperty key="user.language" value="en"/>
-        <sysproperty key="user.country" value="US"/>
-        <sysproperty key="user.variant" value=""/>
-        <arg value="-package"/>
-        <arg value="org.apache.lucene.expressions.@{package}"/>
-        <arg value="-no-listener"/>
-        <arg value="-visitor"/>
-        <arg value="-o"/>
-        <arg path="${grammar.path}"/>
-        <arg path="${grammar.path}/@{grammar}.g4"/>
-      </java>
-      <!-- fileset with files to edit -->
-      <fileset id="grammar.fileset" dir="${grammar.path}">
-        <patternset refid="grammar.@{grammar}.patternset"/>
-      </fileset>
-      <!-- remove files that are not needed to compile or at runtime -->
-      <delete dir="${grammar.path}" includes="@{grammar}*.tokens"/>
-      <!-- make the generated classes package private -->
-      <replaceregexp match="public ((interface|class) \Q@{grammar}\E\w+)" replace="\1" encoding="UTF-8">
-        <fileset refid="grammar.fileset"/>
-      </replaceregexp>
-      <!-- nuke timestamps/filenames in generated files -->
-      <replaceregexp match="\Q// Generated from \E.*" replace="\/\/ ANTLR GENERATED CODE: DO NOT EDIT" encoding="UTF-8">
-        <fileset refid="grammar.fileset"/>
-      </replaceregexp>
-      <!-- remove tabs in antlr generated files -->
-      <replaceregexp match="\t" flags="g" replace="  " encoding="UTF-8">
-        <fileset refid="grammar.fileset"/>
-      </replaceregexp>
-      <!-- fix line endings -->
-      <fixcrlf srcdir="${grammar.path}">
-        <patternset refid="grammar.@{grammar}.patternset"/>
-      </fixcrlf>
-    </sequential>
-  </macrodef>
-</project>
diff --git a/lucene/expressions/ivy.xml b/lucene/expressions/ivy.xml
deleted file mode 100644
index 6065522..0000000
--- a/lucene/expressions/ivy.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="expressions"/>
-  <configurations defaultconfmapping="compile->master">
-    <conf name="compile" transitive="false"/>
-  </configurations>
-  <dependencies>
-    <dependency org="org.antlr" name="antlr4-runtime" rev="${/org.antlr/antlr4-runtime}" conf="compile"/>
-    <dependency org="org.ow2.asm" name="asm" rev="${/org.ow2.asm/asm}" conf="compile"/>
-    <dependency org="org.ow2.asm" name="asm-commons" rev="${/org.ow2.asm/asm-commons}" conf="compile"/>
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/>
-  </dependencies>
-</ivy-module>
diff --git a/lucene/facet/build.xml b/lucene/facet/build.xml
deleted file mode 100644
index 2fc2f9a..0000000
--- a/lucene/facet/build.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="facet" default="default">
-
-  <description>
-    Faceted indexing and search capabilities
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <path id="classpath">
-    <path refid="base.classpath"/>
-    <fileset dir="lib"/>
-  </path>
-
-  <path id="test.classpath">
-    <pathelement path="${queries.jar}"/>
-    <path refid="test.base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-queries,common.compile-core"/>
-
-  <target name="run-encoding-benchmark" depends="compile-test">
-    <java classname="org.apache.lucene.util.encoding.EncodingSpeed" fork="true" failonerror="true">
-      <classpath refid="test.classpath" />
-      <classpath path="${build.dir}/classes/test" />
-    </java>
-  </target>
-
-</project>
diff --git a/lucene/facet/ivy.xml b/lucene/facet/ivy.xml
deleted file mode 100644
index 249c78e..0000000
--- a/lucene/facet/ivy.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="facet"/>
-  <configurations defaultconfmapping="compile->master">
-    <conf name="compile" transitive="false"/>
-  </configurations>
-  <dependencies>
-    <dependency org="com.carrotsearch" name="hppc" rev="${/com.carrotsearch/hppc}" conf="compile"/>
-  </dependencies>
-</ivy-module>
diff --git a/lucene/grouping/build.xml b/lucene/grouping/build.xml
deleted file mode 100644
index 5fb1fd1..0000000
--- a/lucene/grouping/build.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="grouping" default="default">
-  
-    <description>
-       Collectors for grouping search results.
-    </description>
-
-    <import file="../module-build.xml"/>
-
-    <path id="test.classpath">
-      <path refid="test.base.classpath" />
-      <pathelement path="${queries.jar}" />
-    </path>
-
-    <path id="classpath">
-      <pathelement path="${queries.jar}" />
-      <path refid="base.classpath"/>
-    </path>
-
-    <target name="init" depends="module-build.init,jar-queries"/>
-
-    <target name="javadocs" depends="javadocs-queries,compile-core,check-javadocs-uptodate"
-            unless="javadocs-uptodate-${name}">
-      <invoke-module-javadoc>
-        <links>
-          <link href="../queries"/>
-        </links>
-      </invoke-module-javadoc>
-    </target>
-
-</project>
diff --git a/lucene/grouping/ivy.xml b/lucene/grouping/ivy.xml
deleted file mode 100644
index d7e4eb3..0000000
--- a/lucene/grouping/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="grouping"/>
-</ivy-module>
diff --git a/lucene/highlighter/build.xml b/lucene/highlighter/build.xml
deleted file mode 100644
index 5d837cb..0000000
--- a/lucene/highlighter/build.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="highlighter" default="default">
-
-  <description>
-    Highlights search keywords in results
-  </description>
-
-  <!-- some files for testing that do not have license headers -->
-  <property name="rat.excludes" value="**/*.utf8"/>
-
-  <import file="../module-build.xml"/>
-
-  <path id="classpath">
-    <pathelement path="${memory.jar}"/>
-    <pathelement path="${queries.jar}"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <path id="test.classpath">
-    <pathelement path="${memory.jar}"/>
-    <pathelement path="${queries.jar}"/>
-    <pathelement path="${analyzers-common.jar}"/>
-    <pathelement path="${queryparser.jar}"/>
-    <path refid="test.base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-memory,jar-queries,jar-join,jar-analyzers-common,common.compile-core" />
-
-  <target name="javadocs" depends="javadocs-memory,compile-core,check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../memory"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-</project>
diff --git a/lucene/highlighter/ivy.xml b/lucene/highlighter/ivy.xml
deleted file mode 100644
index 262fa53..0000000
--- a/lucene/highlighter/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="highlighter"/>
-</ivy-module>
diff --git a/lucene/ivy-ignore-conflicts.properties b/lucene/ivy-ignore-conflicts.properties
deleted file mode 100644
index df3a2e5..0000000
--- a/lucene/ivy-ignore-conflicts.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-# The /org/name keys in this file must be kept lexically sorted.
-# Blank lines, comment lines, and keys that aren't in /org/name format are ignored
-# when the lexical sort check is performed by the ant check-lib-versions target.
-#
-# The format is:
-#
-# /org/name = <version1> [, <version2> [ ... ] ]
-#
-# where each <versionX> is an indirect dependency version to ignore (i.e., not
-# trigger a conflict) when the ant check-lib-versions target is run.
-
-/com.google.guava/guava = 16.0.1
-/org.ow2.asm/asm = 5.0_BETA
-
diff --git a/lucene/ivy-versions.properties b/lucene/ivy-versions.properties
deleted file mode 100644
index 6c8e51c..0000000
--- a/lucene/ivy-versions.properties
+++ /dev/null
@@ -1,334 +0,0 @@
-# The /org/name keys in this file must be kept lexically sorted.
-# Blank lines, comment lines, and keys that aren't in /org/name format are ignored
-# when the lexical sort check is performed by the ant check-lib-versions target.
-
-/com.adobe.xmp/xmpcore = 5.1.3
-
-com.carrotsearch.randomizedtesting.version = 2.7.6
-/com.carrotsearch.randomizedtesting/junit4-ant = ${com.carrotsearch.randomizedtesting.version}
-/com.carrotsearch.randomizedtesting/randomizedtesting-runner = ${com.carrotsearch.randomizedtesting.version}
-
-/com.carrotsearch.thirdparty/simple-xml-safe = 2.7.1
-
-/com.carrotsearch/hppc = 0.8.2
-
-/com.cybozu.labs/langdetect = 1.1-20120112
-/com.drewnoakes/metadata-extractor = 2.11.0
-
-/com.epam/parso = 2.0.11
-
-com.fasterxml.jackson.core.version = 2.10.1
-/com.fasterxml.jackson.core/jackson-annotations = ${com.fasterxml.jackson.core.version}
-/com.fasterxml.jackson.core/jackson-core = ${com.fasterxml.jackson.core.version}
-/com.fasterxml.jackson.core/jackson-databind = ${com.fasterxml.jackson.core.version}
-/com.fasterxml.jackson.dataformat/jackson-dataformat-smile = ${com.fasterxml.jackson.core.version}
-
-/com.github.ben-manes.caffeine/caffeine = 2.8.4
-/com.github.virtuald/curvesapi = 1.06
-
-/com.github.zafarkhaja/java-semver = 0.9.0
-
-/com.google.guava/guava = 25.1-jre
-/com.google.protobuf/protobuf-java = 3.11.0
-/com.google.re2j/re2j = 1.2
-/com.googlecode.juniversalchardet/juniversalchardet = 1.0.3
-/com.googlecode.mp4parser/isoparser = 1.1.22
-/com.healthmarketscience.jackcess/jackcess = 3.0.1
-/com.healthmarketscience.jackcess/jackcess-encrypt = 3.0.0
-/com.ibm.icu/icu4j = 62.2
-/com.jayway.jsonpath/json-path = 2.4.0
-/com.lmax/disruptor = 3.4.2
-/com.pff/java-libpst = 0.8.1
-
-com.rometools.version = 1.12.2
-/com.rometools/rome = ${com.rometools.version}
-/com.rometools/rome-utils = ${com.rometools.version}
-
-com.sun.jersey.version = 1.19
-/com.sun.jersey/jersey-servlet = ${com.sun.jersey.version}
-
-/com.sun.mail/gimap = 1.5.1
-/com.sun.mail/javax.mail = 1.5.1
-
-/com.tdunning/t-digest = 3.1
-/com.vaadin.external.google/android-json = 0.0.20131108.vaadin1
-/commons-cli/commons-cli = 1.4
-/commons-codec/commons-codec = 1.13
-/commons-collections/commons-collections = 3.2.2
-/commons-io/commons-io = 2.6
-# necessary to run test or embedded Zookeeper as of 3.6.1
-commons.lang.version = 2.6
-/commons-lang/commons-lang = ${commons.lang.version}
-/commons-logging/commons-logging = 1.1.3
-/de.l3s.boilerpipe/boilerpipe = 1.1.0
-
-io.dropwizard.metrics.version = 4.1.5
-/io.dropwizard.metrics/metrics-core = ${io.dropwizard.metrics.version}
-/io.dropwizard.metrics/metrics-graphite = ${io.dropwizard.metrics.version}
-/io.dropwizard.metrics/metrics-jetty9 = ${io.dropwizard.metrics.version}
-/io.dropwizard.metrics/metrics-jmx = ${io.dropwizard.metrics.version}
-/io.dropwizard.metrics/metrics-jvm = ${io.dropwizard.metrics.version}
-
-io.jaegertracing.version = 1.1.0
-/io.jaegertracing/jaeger-core = ${io.jaegertracing.version}
-/io.jaegertracing/jaeger-thrift = ${io.jaegertracing.version}
-
-io.netty.netty.version = 4.1.50.Final
-/io.netty/netty-buffer = ${io.netty.netty.version}
-/io.netty/netty-codec = ${io.netty.netty.version}
-/io.netty/netty-common = ${io.netty.netty.version}
-/io.netty/netty-handler = ${io.netty.netty.version}
-/io.netty/netty-resolver = ${io.netty.netty.version}
-/io.netty/netty-transport = ${io.netty.netty.version}
-/io.netty/netty-transport-native-epoll = ${io.netty.netty.version}
-/io.netty/netty-transport-native-unix-common = ${io.netty.netty.version}
-
-io.opentracing.version = 0.33.0
-/io.opentracing/opentracing-api = ${io.opentracing.version}
-/io.opentracing/opentracing-mock = ${io.opentracing.version}
-/io.opentracing/opentracing-noop = ${io.opentracing.version}
-/io.opentracing/opentracing-util = ${io.opentracing.version}
-
-io.prometheus.version = 0.2.0
-/io.prometheus/simpleclient = ${io.prometheus.version}
-/io.prometheus/simpleclient_common = ${io.prometheus.version}
-/io.prometheus/simpleclient_httpserver = ${io.prometheus.version}
-
-/io.sgr/s2-geometry-library-java = 1.0.0
-
-/javax.activation/activation = 1.1.1
-/javax.servlet/javax.servlet-api = 3.1.0
-/junit/junit = 4.12
-
-/mecab/mecab-ipadic = 2.7.0-20070801
-/mecab/mecab-ko-dic = 2.0.3-20170922
-/mecab/mecab-naist-jdic = 0.6.3b-20111013
-/net.arnx/jsonic = 1.2.7
-/net.bytebuddy/byte-buddy = 1.9.3
-/net.hydromatic/eigenbase-properties = 1.1.5
-
-net.sourceforge.argparse4j.version = 0.8.1
-/net.sourceforge.argparse4j/argparse4j = ${net.sourceforge.argparse4j.version}
-
-/net.sourceforge.nekohtml/nekohtml = 1.9.17
-
-net.thisptr.version = 0.0.8
-/net.thisptr/jackson-jq = ${net.thisptr.version}
-
-/org.antlr/antlr4-runtime = 4.5.1-1
-
-/org.apache.ant/ant = 1.8.2
-
-org.apache.calcite.avatica.version = 1.13.0
-/org.apache.calcite.avatica/avatica-core = ${org.apache.calcite.avatica.version}
-
-org.apache.calcite.version = 1.18.0
-/org.apache.calcite/calcite-core = ${org.apache.calcite.version}
-/org.apache.calcite/calcite-linq4j = ${org.apache.calcite.version}
-
-org.apache.commons.commons-collections4-rev = 4.4
-/org.apache.commons/commons-collections4 = ${org.apache.commons.commons-collections4-rev}
-/org.apache.commons/commons-compress = 1.19
-/org.apache.commons/commons-configuration2 = 2.1.1
-/org.apache.commons/commons-csv = 1.7
-/org.apache.commons/commons-exec = 1.3
-/org.apache.commons/commons-lang3 = 3.9
-/org.apache.commons/commons-math3 = 3.6.1
-/org.apache.commons/commons-text = 1.6
-
-org.apache.curator.version = 2.13.0
-/org.apache.curator/curator-client = ${org.apache.curator.version}
-/org.apache.curator/curator-framework = ${org.apache.curator.version}
-/org.apache.curator/curator-recipes = ${org.apache.curator.version}
-
-/org.apache.derby/derby = 10.9.1.0
-
-org.apache.hadoop.version = 3.2.0
-/org.apache.hadoop/hadoop-annotations = ${org.apache.hadoop.version}
-/org.apache.hadoop/hadoop-auth = ${org.apache.hadoop.version}
-/org.apache.hadoop/hadoop-common = ${org.apache.hadoop.version}
-/org.apache.hadoop/hadoop-hdfs = ${org.apache.hadoop.version}
-/org.apache.hadoop/hadoop-hdfs-client = ${org.apache.hadoop.version}
-/org.apache.hadoop/hadoop-minikdc = ${org.apache.hadoop.version}
-
-/org.apache.htrace/htrace-core4 = 4.1.0-incubating
-
-# The httpcore version is often different from the httpclient and httpmime versions,
-# so the httpcore version value should not share the same symbolic name with them.
-/org.apache.httpcomponents/httpclient = 4.5.10
-/org.apache.httpcomponents/httpcore = 4.4.12
-/org.apache.httpcomponents/httpmime = 4.5.10
-
-/org.apache.ivy/ivy = 2.4.0
-
-org.apache.james.apache.mime4j.version = 0.8.3
-/org.apache.james/apache-mime4j-core = ${org.apache.james.apache.mime4j.version}
-/org.apache.james/apache-mime4j-dom = ${org.apache.james.apache.mime4j.version}
-
-org.apache.kerby.version = 1.0.1
-/org.apache.kerby/kerb-admin = ${org.apache.kerby.version}
-/org.apache.kerby/kerb-client = ${org.apache.kerby.version}
-/org.apache.kerby/kerb-common = ${org.apache.kerby.version}
-/org.apache.kerby/kerb-core = ${org.apache.kerby.version}
-/org.apache.kerby/kerb-crypto = ${org.apache.kerby.version}
-/org.apache.kerby/kerb-identity= ${org.apache.kerby.version}
-/org.apache.kerby/kerb-server = ${org.apache.kerby.version}
-/org.apache.kerby/kerb-simplekdc = ${org.apache.kerby.version}
-/org.apache.kerby/kerb-util = ${org.apache.kerby.version}
-
-/org.apache.kerby/kerby-asn1 = ${org.apache.kerby.version}
-/org.apache.kerby/kerby-config = ${org.apache.kerby.version}
-/org.apache.kerby/kerby-kdc = ${org.apache.kerby.version}
-/org.apache.kerby/kerby-pkix = ${org.apache.kerby.version}
-/org.apache.kerby/kerby-util = ${org.apache.kerby.version}
-
-org.apache.logging.log4j.version = 2.13.2
-/org.apache.logging.log4j/log4j-1.2-api = ${org.apache.logging.log4j.version}
-/org.apache.logging.log4j/log4j-api = ${org.apache.logging.log4j.version}
-/org.apache.logging.log4j/log4j-core = ${org.apache.logging.log4j.version}
-/org.apache.logging.log4j/log4j-slf4j-impl = ${org.apache.logging.log4j.version}
-/org.apache.logging.log4j/log4j-web = ${org.apache.logging.log4j.version}
-
-/org.apache.opennlp/opennlp-tools = 1.9.1
-
-org.apache.pdfbox.version = 2.0.17
-/org.apache.pdfbox/fontbox = ${org.apache.pdfbox.version}
-/org.apache.pdfbox/jempbox = 1.8.16
-/org.apache.pdfbox/pdfbox = ${org.apache.pdfbox.version}
-/org.apache.pdfbox/pdfbox-tools = ${org.apache.pdfbox.version}
-
-org.apache.poi.version = 4.1.1
-/org.apache.poi/poi = ${org.apache.poi.version}
-/org.apache.poi/poi-ooxml = ${org.apache.poi.version}
-/org.apache.poi/poi-ooxml-schemas = ${org.apache.poi.version}
-/org.apache.poi/poi-scratchpad = ${org.apache.poi.version}
-
-org.apache.thrift.version = 0.13.0
-/org.apache.thrift/libthrift = ${org.apache.thrift.version}
-
-org.apache.tika.version = 1.24
-/org.apache.tika/tika-core = ${org.apache.tika.version}
-/org.apache.tika/tika-java7 = ${org.apache.tika.version}
-/org.apache.tika/tika-parsers = ${org.apache.tika.version}
-/org.apache.tika/tika-xmp = ${org.apache.tika.version}
-
-org.apache.velocity.tools.version = 3.0
-/org.apache.velocity.tools/velocity-tools-generic = ${org.apache.velocity.tools.version}
-/org.apache.velocity.tools/velocity-tools-view = ${org.apache.velocity.tools.version}
-/org.apache.velocity.tools/velocity-tools-view-jsp = ${org.apache.velocity.tools.version}
-
-/org.apache.velocity/velocity-engine-core = 2.0
-
-/org.apache.xmlbeans/xmlbeans = 3.1.0
-
-org.apache.zookeeper.version = 3.6.1
-/org.apache.zookeeper/zookeeper = ${org.apache.zookeeper.version}
-/org.apache.zookeeper/zookeeper-jute = ${org.apache.zookeeper.version}
-
-# v1.6.2 of asciidoctor-ant includes asciidoctorj 1.6.2, which uses
-# asciidoctor 1.5.8, and asciidoctorj-pdf 1.5.0-alpha.16, which is the same
-# as asciidoctor-pdf 1.5.0-alpha.16
-/org.asciidoctor/asciidoctor-ant = 1.6.2
-
-/org.aspectj/aspectjrt = 1.8.0
-
-/org.bitbucket.b_c/jose4j = 0.6.5
-
-org.bouncycastle.version = 1.64
-/org.bouncycastle/bcmail-jdk15on = ${org.bouncycastle.version}
-/org.bouncycastle/bcpkix-jdk15on = ${org.bouncycastle.version}
-/org.bouncycastle/bcprov-jdk15on = ${org.bouncycastle.version}
-
-/org.brotli/dec = 0.1.2
-
-/org.carrot2.attributes/attributes-binder = 1.3.3
-/org.carrot2.shaded/carrot2-guava = 18.0
-
-/org.carrot2/carrot2-mini = 3.16.2
-
-org.carrot2.morfologik.version = 2.1.5
-/org.carrot2/morfologik-fsa = ${org.carrot2.morfologik.version}
-/org.carrot2/morfologik-polish = ${org.carrot2.morfologik.version}
-/org.carrot2/morfologik-stemming = ${org.carrot2.morfologik.version}
-
-/org.ccil.cowan.tagsoup/tagsoup = 1.2.1
-
-org.codehaus.janino.version = 3.0.9
-/org.codehaus.janino/commons-compiler = ${org.codehaus.janino.version}
-/org.codehaus.janino/janino = ${org.codehaus.janino.version}
-
-/org.codehaus.woodstox/stax2-api = 3.1.4
-/org.codehaus.woodstox/woodstox-core-asl = 4.4.1
-
-org.eclipse.jetty.version = 9.4.27.v20200227
-/org.eclipse.jetty.http2/http2-client = ${org.eclipse.jetty.version}
-/org.eclipse.jetty.http2/http2-common = ${org.eclipse.jetty.version}
-/org.eclipse.jetty.http2/http2-hpack = ${org.eclipse.jetty.version}
-/org.eclipse.jetty.http2/http2-http-client-transport = ${org.eclipse.jetty.version}
-/org.eclipse.jetty.http2/http2-server = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-alpn-client = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-alpn-java-client = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-alpn-java-server = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-alpn-server = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-client = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-continuation = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-deploy = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-http = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-io = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-jmx = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-rewrite = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-security = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-server = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-servlet = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-servlets = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-start = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-util = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-webapp = ${org.eclipse.jetty.version}
-/org.eclipse.jetty/jetty-xml = ${org.eclipse.jetty.version}
-
-org.gagravarr.vorbis.java.version = 0.8
-/org.gagravarr/vorbis-java-core = ${org.gagravarr.vorbis.java.version}
-/org.gagravarr/vorbis-java-tika = ${org.gagravarr.vorbis.java.version}
-
-/org.hamcrest/hamcrest = 2.2
-
-/org.hsqldb/hsqldb = 2.4.0
-/org.jdom/jdom2 = 2.0.6
-
-/org.jsoup/jsoup = 1.12.1
-
-/org.locationtech.jts/jts-core = 1.15.0
-/org.locationtech.spatial4j/spatial4j = 0.7
-
-/org.mockito/mockito-core = 2.23.4
-
-/org.objenesis/objenesis = 2.6
-
-org.ow2.asm.version = 7.2
-/org.ow2.asm/asm = ${org.ow2.asm.version}
-/org.ow2.asm/asm-commons = ${org.ow2.asm.version}
-
-org.restlet.jee.version = 2.4.3
-/org.restlet.jee/org.restlet = ${org.restlet.jee.version}
-/org.restlet.jee/org.restlet.ext.servlet = ${org.restlet.jee.version}
-
-/org.rrd4j/rrd4j = 3.5
-
-org.slf4j.version = 1.7.24
-/org.slf4j/jcl-over-slf4j = ${org.slf4j.version}
-/org.slf4j/jul-to-slf4j = ${org.slf4j.version}
-/org.slf4j/slf4j-api = ${org.slf4j.version}
-/org.slf4j/slf4j-simple = ${org.slf4j.version}
-
-/org.tallison/jmatio = 1.5
-/org.tukaani/xz = 1.8
-
-# required for instantiating a Zookeeper server in tests or embedded
-org.xerial.snappy.version = 1.1.7.6
-/org.xerial.snappy/snappy-java = ${org.xerial.snappy.version}
-
-
-ua.net.nlp.morfologik-ukrainian-search.version = 4.9.1
-/ua.net.nlp/morfologik-ukrainian-search = ${ua.net.nlp.morfologik-ukrainian-search.version}
-
-/xerces/xercesImpl = 2.12.0
diff --git a/lucene/join/build.xml b/lucene/join/build.xml
deleted file mode 100644
index c411dbe..0000000
--- a/lucene/join/build.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.
--->
-<project name="join" default="default">
-  <description>
-    Index-time and Query-time joins for normalized content
-  </description>
-
-  <import file="../module-build.xml"/>
-
-</project>
diff --git a/lucene/join/ivy.xml b/lucene/join/ivy.xml
deleted file mode 100644
index 09ae9bd..0000000
--- a/lucene/join/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="join"/>
-</ivy-module>
diff --git a/lucene/licenses/ant-1.8.2.jar.sha1 b/lucene/licenses/ant-1.8.2.jar.sha1
deleted file mode 100644
index 564db78..0000000
--- a/lucene/licenses/ant-1.8.2.jar.sha1
+++ /dev/null
@@ -1 +0,0 @@
-fc33bf7cd8c5309dd7b81228e8626515ee42efd9
diff --git a/lucene/licenses/ant-LICENSE-ASL.txt b/lucene/licenses/ant-LICENSE-ASL.txt
deleted file mode 100644
index ab3182e..0000000
--- a/lucene/licenses/ant-LICENSE-ASL.txt
+++ /dev/null
@@ -1,272 +0,0 @@
-/*
- *                                 Apache License
- *                           Version 2.0, January 2004
- *                        http://www.apache.org/licenses/
- *
- *   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
- *
- *   1. Definitions.
- *
- *      "License" shall mean the terms and conditions for use, reproduction,
- *      and distribution as defined by Sections 1 through 9 of this document.
- *
- *      "Licensor" shall mean the copyright owner or entity authorized by
- *      the copyright owner that is granting the License.
- *
- *      "Legal Entity" shall mean the union of the acting entity and all
- *      other entities that control, are controlled by, or are under common
- *      control with that entity. For the purposes of this definition,
- *      "control" means (i) the power, direct or indirect, to cause the
- *      direction or management of such entity, whether by contract or
- *      otherwise, or (ii) ownership of fifty percent (50%) or more of the
- *      outstanding shares, or (iii) beneficial ownership of such entity.
- *
- *      "You" (or "Your") shall mean an individual or Legal Entity
- *      exercising permissions granted by this License.
- *
- *      "Source" form shall mean the preferred form for making modifications,
- *      including but not limited to software source code, documentation
- *      source, and configuration files.
- *
- *      "Object" form shall mean any form resulting from mechanical
- *      transformation or translation of a Source form, including but
- *      not limited to compiled object code, generated documentation,
- *      and conversions to other media types.
- *
- *      "Work" shall mean the work of authorship, whether in Source or
- *      Object form, made available under the License, as indicated by a
- *      copyright notice that is included in or attached to the work
- *      (an example is provided in the Appendix below).
- *
- *      "Derivative Works" shall mean any work, whether in Source or Object
- *      form, that is based on (or derived from) the Work and for which the
- *      editorial revisions, annotations, elaborations, or other modifications
- *      represent, as a whole, an original work of authorship. For the purposes
- *      of this License, Derivative Works shall not include works that remain
- *      separable from, or merely link (or bind by name) to the interfaces of,
- *      the Work and Derivative Works thereof.
- *
- *      "Contribution" shall mean any work of authorship, including
- *      the original version of the Work and any modifications or additions
- *      to that Work or Derivative Works thereof, that is intentionally
- *      submitted to Licensor for inclusion in the Work by the copyright owner
- *      or by an individual or Legal Entity authorized to submit on behalf of
- *      the copyright owner. For the purposes of this definition, "submitted"
- *      means any form of electronic, verbal, or written communication sent
- *      to the Licensor or its representatives, including but not limited to
- *      communication on electronic mailing lists, source code control systems,
- *      and issue tracking systems that are managed by, or on behalf of, the
- *      Licensor for the purpose of discussing and improving the Work, but
- *      excluding communication that is conspicuously marked or otherwise
- *      designated in writing by the copyright owner as "Not a Contribution."
- *
- *      "Contributor" shall mean Licensor and any individual or Legal Entity
- *      on behalf of whom a Contribution has been received by Licensor and
- *      subsequently incorporated within the Work.
- *
- *   2. Grant of Copyright License. Subject to the terms and conditions of
- *      this License, each Contributor hereby grants to You a perpetual,
- *      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- *      copyright license to reproduce, prepare Derivative Works of,
- *      publicly display, publicly perform, sublicense, and distribute the
- *      Work and such Derivative Works in Source or Object form.
- *
- *   3. Grant of Patent License. Subject to the terms and conditions of
- *      this License, each Contributor hereby grants to You a perpetual,
- *      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- *      (except as stated in this section) patent license to make, have made,
- *      use, offer to sell, sell, import, and otherwise transfer the Work,
- *      where such license applies only to those patent claims licensable
- *      by such Contributor that are necessarily infringed by their
- *      Contribution(s) alone or by combination of their Contribution(s)
- *      with the Work to which such Contribution(s) was submitted. If You
- *      institute patent litigation against any entity (including a
- *      cross-claim or counterclaim in a lawsuit) alleging that the Work
- *      or a Contribution incorporated within the Work constitutes direct
- *      or contributory patent infringement, then any patent licenses
- *      granted to You under this License for that Work shall terminate
- *      as of the date such litigation is filed.
- *
- *   4. Redistribution. You may reproduce and distribute copies of the
- *      Work or Derivative Works thereof in any medium, with or without
- *      modifications, and in Source or Object form, provided that You
- *      meet the following conditions:
- *
- *      (a) You must give any other recipients of the Work or
- *          Derivative Works a copy of this License; and
- *
- *      (b) You must cause any modified files to carry prominent notices
- *          stating that You changed the files; and
- *
- *      (c) You must retain, in the Source form of any Derivative Works
- *          that You distribute, all copyright, patent, trademark, and
- *          attribution notices from the Source form of the Work,
- *          excluding those notices that do not pertain to any part of
- *          the Derivative Works; and
- *
- *      (d) If the Work includes a "NOTICE" text file as part of its
- *          distribution, then any Derivative Works that You distribute must
- *          include a readable copy of the attribution notices contained
- *          within such NOTICE file, excluding those notices that do not
- *          pertain to any part of the Derivative Works, in at least one
- *          of the following places: within a NOTICE text file distributed
- *          as part of the Derivative Works; within the Source form or
- *          documentation, if provided along with the Derivative Works; or,
- *          within a display generated by the Derivative Works, if and
- *          wherever such third-party notices normally appear. The contents
- *          of the NOTICE file are for informational purposes only and
- *          do not modify the License. You may add Your own attribution
- *          notices within Derivative Works that You distribute, alongside
- *          or as an addendum to the NOTICE text from the Work, provided
- *          that such additional attribution notices cannot be construed
- *          as modifying the License.
- *
- *      You may add Your own copyright statement to Your modifications and
- *      may provide additional or different license terms and conditions
- *      for use, reproduction, or distribution of Your modifications, or
- *      for any such Derivative Works as a whole, provided Your use,
- *      reproduction, and distribution of the Work otherwise complies with
- *      the conditions stated in this License.
- *
- *   5. Submission of Contributions. Unless You explicitly state otherwise,
- *      any Contribution intentionally submitted for inclusion in the Work
- *      by You to the Licensor shall be under the terms and conditions of
- *      this License, without any additional terms or conditions.
- *      Notwithstanding the above, nothing herein shall supersede or modify
- *      the terms of any separate license agreement you may have executed
- *      with Licensor regarding such Contributions.
- *
- *   6. Trademarks. This License does not grant permission to use the trade
- *      names, trademarks, service marks, or product names of the Licensor,
- *      except as required for reasonable and customary use in describing the
- *      origin of the Work and reproducing the content of the NOTICE file.
- *
- *   7. Disclaimer of Warranty. Unless required by applicable law or
- *      agreed to in writing, Licensor provides the Work (and each
- *      Contributor provides its Contributions) on an "AS IS" BASIS,
- *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- *      implied, including, without limitation, any warranties or conditions
- *      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- *      PARTICULAR PURPOSE. You are solely responsible for determining the
- *      appropriateness of using or redistributing the Work and assume any
- *      risks associated with Your exercise of permissions under this License.
- *
- *   8. Limitation of Liability. In no event and under no legal theory,
- *      whether in tort (including negligence), contract, or otherwise,
- *      unless required by applicable law (such as deliberate and grossly
- *      negligent acts) or agreed to in writing, shall any Contributor be
- *      liable to You for damages, including any direct, indirect, special,
- *      incidental, or consequential damages of any character arising as a
- *      result of this License or out of the use or inability to use the
- *      Work (including but not limited to damages for loss of goodwill,
- *      work stoppage, computer failure or malfunction, or any and all
- *      other commercial damages or losses), even if such Contributor
- *      has been advised of the possibility of such damages.
- *
- *   9. Accepting Warranty or Additional Liability. While redistributing
- *      the Work or Derivative Works thereof, You may choose to offer,
- *      and charge a fee for, acceptance of support, warranty, indemnity,
- *      or other liability obligations and/or rights consistent with this
- *      License. However, in accepting such obligations, You may act only
- *      on Your own behalf and on Your sole responsibility, not on behalf
- *      of any other Contributor, and only if You agree to indemnify,
- *      defend, and hold each Contributor harmless for any liability
- *      incurred by, or claims asserted against, such Contributor by reason
- *      of your accepting any such warranty or additional liability.
- *
- *   END OF TERMS AND CONDITIONS
- *
- *   APPENDIX: How to apply the Apache License to your work.
- *
- *      To apply the Apache License to your work, attach the following
- *      boilerplate notice, with the fields enclosed by brackets "[]"
- *      replaced with your own identifying information. (Don't include
- *      the brackets!)  The text should be enclosed in the appropriate
- *      comment syntax for the file format. We also recommend that a
- *      file or class name and description of purpose be included on the
- *      same "printed page" as the copyright notice for easier
- *      identification within third-party archives.
- *
- *   Copyright [yyyy] [name of copyright owner]
- *
- *   Licensed under the Apache License, Version 2.0 (the "License");
- *   you may not use this file except in compliance with the License.
- *   You may obtain a copy of the License at
- *
- *       http://www.apache.org/licenses/LICENSE-2.0
- *
- *   Unless required by applicable law or agreed to in writing, software
- *   distributed under the License is distributed on an "AS IS" BASIS,
- *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *   See the License for the specific language governing permissions and
- *   limitations under the License.
- */
-
-W3C® SOFTWARE NOTICE AND LICENSE
-http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-
-This work (and included software, documentation such as READMEs, or other
-related items) is being provided by the copyright holders under the following
-license. By obtaining, using and/or copying this work, you (the licensee) agree
-that you have read, understood, and will comply with the following terms and
-conditions.
-
-Permission to copy, modify, and distribute this software and its documentation,
-with or without modification, for any purpose and without fee or royalty is
-hereby granted, provided that you include the following on ALL copies of the
-software and documentation or portions thereof, including modifications:
-
-  1. The full text of this NOTICE in a location viewable to users of the
-     redistributed or derivative work. 
-  2. Any pre-existing intellectual property disclaimers, notices, or terms
-     and conditions. If none exist, the W3C Software Short Notice should be
-     included (hypertext is preferred, text is permitted) within the body
-     of any redistributed or derivative code.
-  3. Notice of any changes or modifications to the files, including the date
-     changes were made. (We recommend you provide URIs to the location from
-     which the code is derived.)
-     
-THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE
-NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
-TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT
-THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
-PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
-
-COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
-
-The name and trademarks of copyright holders may NOT be used in advertising or
-publicity pertaining to the software without specific, written prior permission.
-Title to copyright in this software and any associated documentation will at
-all times remain with copyright holders.
-
-____________________________________
-
-This formulation of W3C's notice and license became active on December 31 2002.
-This version removes the copyright ownership notice such that this license can
-be used with materials other than those owned by the W3C, reflects that ERCIM
-is now a host of the W3C, includes references to this specific dated version of
-the license, and removes the ambiguous grant of "use". Otherwise, this version
-is the same as the previous version and is written so as to preserve the Free
-Software Foundation's assessment of GPL compatibility and OSI's certification
-under the Open Source Definition. Please see our Copyright FAQ for common
-questions about using materials from our site, including specific terms and
-conditions for packages like libwww, Amaya, and Jigsaw. Other questions about
-this notice can be directed to site-policy@w3.org.
- 
-Joseph Reagle <si...@w3.org> 
-
-This license came from: http://www.megginson.com/SAX/copying.html
-  However please note future versions of SAX may be covered 
-  under http://saxproject.org/?selected=pd
-
-SAX2 is Free!
-
-I hereby abandon any property rights to SAX 2.0 (the Simple API for
-XML), and release all of the SAX 2.0 source code, compiled code, and
-documentation contained in this distribution into the Public Domain.
-SAX comes with NO WARRANTY or guarantee of fitness for any
-purpose.
-
-David Megginson, david@megginson.com
-2000-05-05
diff --git a/lucene/licenses/ant-NOTICE.txt b/lucene/licenses/ant-NOTICE.txt
deleted file mode 100644
index 4c88cc6..0000000
--- a/lucene/licenses/ant-NOTICE.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-   =========================================================================
-   ==  NOTICE file corresponding to the section 4 d of                    ==
-   ==  the Apache License, Version 2.0,                                   ==
-   ==  in this case for the Apache Ant distribution.                      ==
-   =========================================================================
-
-   Apache Ant
-   Copyright 1999-2008 The Apache Software Foundation
-
-   This product includes software developed by
-   The Apache Software Foundation (http://www.apache.org/).
-
-   This product includes also software developed by :
-     - the W3C consortium (http://www.w3c.org) ,
-     - the SAX project (http://www.saxproject.org)
-
-   The <sync> task is based on code Copyright (c) 2002, Landmark
-   Graphics Corp that has been kindly donated to the Apache Software
-   Foundation.
-
-   Portions of this software were originally based on the following:
-     - software copyright (c) 1999, IBM Corporation., http://www.ibm.com.
-     - software copyright (c) 1999, Sun Microsystems., http://www.sun.com.
-     - voluntary contributions made by Paul Eng on behalf of the 
-       Apache Software Foundation that were originally developed at iClick, Inc.,
-       software copyright (c) 1999.
diff --git a/lucene/licenses/ivy-2.4.0.jar.sha1 b/lucene/licenses/ivy-2.4.0.jar.sha1
deleted file mode 100644
index 3863b25..0000000
--- a/lucene/licenses/ivy-2.4.0.jar.sha1
+++ /dev/null
@@ -1 +0,0 @@
-5abe4c24bbe992a9ac07ca563d5bd3e8d569e9ed
diff --git a/lucene/licenses/ivy-LICENSE-ASL.txt b/lucene/licenses/ivy-LICENSE-ASL.txt
deleted file mode 100644
index eb06170..0000000
--- a/lucene/licenses/ivy-LICENSE-ASL.txt
+++ /dev/null
@@ -1,258 +0,0 @@
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-
-------------------------------------------------------------------------------
-License for JCraft JSch package
-------------------------------------------------------------------------------
-Copyright (c) 2002,2003,2004,2005,2006,2007 Atsuhiko Yamanaka, JCraft,Inc. 
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-  1. Redistributions of source code must retain the above copyright notice,
-     this list of conditions and the following disclaimer.
-
-  2. Redistributions in binary form must reproduce the above copyright 
-     notice, this list of conditions and the following disclaimer in 
-     the documentation and/or other materials provided with the distribution.
-
-  3. The names of the authors may not be used to endorse or promote products
-     derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
-INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,
-INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
-OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- 
-
-------------------------------------------------------------------------------
-License for jQuery
-------------------------------------------------------------------------------
-Copyright (c) 2007 John Resig, http://jquery.com/
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- 
\ No newline at end of file
diff --git a/lucene/licenses/ivy-NOTICE.txt b/lucene/licenses/ivy-NOTICE.txt
deleted file mode 100644
index 33d7e07..0000000
--- a/lucene/licenses/ivy-NOTICE.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-Apache Ivy (TM)
-Copyright 2007-2013 The Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org/).
-   
-Portions of Ivy were originally developed by
-Jayasoft SARL (http://www.jayasoft.fr/)
-and are licensed to the Apache Software Foundation under the
-"Software Grant License Agreement"
-   
-SSH and SFTP support is provided by the JCraft JSch package, 
-which is open source software, available under
-the terms of a BSD style license.  
-The original software and related information is available
-at http://www.jcraft.com/jsch/. 
\ No newline at end of file
diff --git a/lucene/luke/build.xml b/lucene/luke/build.xml
deleted file mode 100644
index 1584ef7..0000000
--- a/lucene/luke/build.xml
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="luke" default="default">
-
-  <description>
-    Luke - Lucene Toolbox
-  </description>
-
-  <!-- use full Java SE API (project default 'compact2' does not include Swing) -->
-  <property name="javac.profile.args" value=""/>
-
-  <import file="../module-build.xml"/>
-
-  <target name="init" depends="module-build.init,jar-lucene-core"/>
-
-  <path id="classpath">
-    <pathelement path="${lucene-core.jar}"/>
-    <pathelement path="${codecs.jar}"/>
-    <pathelement path="${backward-codecs.jar}"/>
-    <pathelement path="${analyzers-common.jar}"/>
-    <pathelement path="${misc.jar}"/>
-    <pathelement path="${queryparser.jar}"/>
-    <pathelement path="${queries.jar}"/>
-    <fileset dir="lib"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <target name="javadocs" depends="compile-core,javadocs-lucene-core,javadocs-analyzers-common,check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../analyzers-common"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-
-  <target name="build-artifacts-and-tests" depends="jar, compile-test">
-    <!-- copy start scripts -->
-    <copy todir="${build.dir}">
-      <fileset dir="${common.dir}/luke/bin">
-        <include name="**/*.sh"/>
-        <include name="**/*.bat"/>
-      </fileset>
-    </copy>
-  </target>
-
-  <!-- launch Luke -->
-  <target name="run" depends="compile-core" description="Launch Luke GUI">
-    <java classname="org.apache.lucene.luke.app.desktop.LukeMain"
-          classpath="${build.dir}/classes/java"
-          fork="true"
-          maxmemory="512m">
-      <classpath refid="classpath"/>
-    </java>
-  </target>
-  
-  <target name="compile-core"
-          depends="jar-codecs,jar-backward-codecs,jar-analyzers-common,jar-misc,jar-queryparser,jar-queries,jar-misc,common.compile-core"/>
-
-  <!-- Luke has no Maven artifacts -->
-  <target name="-dist-maven"/>
-  <target name="-install-to-maven-local-repo"/>
-  <target name="-validate-maven-dependencies"/>
-  <target name="-append-module-dependencies-properties"/>
-</project>
diff --git a/lucene/luke/ivy.xml b/lucene/luke/ivy.xml
deleted file mode 100644
index 88d9d8c..0000000
--- a/lucene/luke/ivy.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="luke"/>
-
-  <configurations defaultconfmapping="compile->default;logging->default">
-    <conf name="compile" transitive="false"/>
-    <conf name="logging" transitive="false"/>
-  </configurations>
-
-  <dependencies>
-    <dependency org="org.apache.logging.log4j" name="log4j-api" rev="${/org.apache.logging.log4j/log4j-api}"
-                conf="logging"/>
-    <dependency org="org.apache.logging.log4j" name="log4j-core" rev="${/org.apache.logging.log4j/log4j-core}"
-                conf="logging"/>
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/>
-  </dependencies>
-</ivy-module>
diff --git a/lucene/memory/build.xml b/lucene/memory/build.xml
deleted file mode 100644
index cae5677..0000000
--- a/lucene/memory/build.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="memory" default="default">
-
-  <description>
-    Single-document in-memory index implementation
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <path id="test.classpath">
-    <pathelement path="${queryparser.jar}"/>
-    <path refid="test.base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-queryparser,common.compile-core" />
-</project>
diff --git a/lucene/memory/ivy.xml b/lucene/memory/ivy.xml
deleted file mode 100644
index 61f06f6..0000000
--- a/lucene/memory/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="memory"/>
-</ivy-module>
diff --git a/lucene/misc/build.xml b/lucene/misc/build.xml
deleted file mode 100644
index f076eba..0000000
--- a/lucene/misc/build.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="misc" default="default" xmlns:ivy="antlib:org.apache.ivy.ant">
-
-  <description>
-    Index tools and other miscellaneous code
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <target name="install-cpptasks" unless="cpptasks.uptodate" depends="ivy-availability-check,ivy-fail,ivy-configure">
-    <property name="cpptasks.uptodate" value="true"/>
-    <ivy:cachepath organisation="ant-contrib" module="cpptasks" revision="1.0b5"
-             inline="true" conf="master" type="jar" pathid="cpptasks.classpath"/>
-    <taskdef resource="cpptasks.tasks" classpathref="cpptasks.classpath"/>
-  </target>
-
-  <target name="build-native-unix" depends="install-cpptasks">
-    <mkdir dir="${common.build.dir}/native"/>
-
-    <cc outtype="shared" name="c++" subsystem="console" outfile="${common.build.dir}/native/NativePosixUtil" >
-      <fileset file="${src.dir}/org/apache/lucene/store/NativePosixUtil.cpp" />  
-      <includepath>
-        <pathelement location="${java.home}/../include"/>
-        <pathelement location="${java.home}/include"/>
-        <pathelement location="${java.home}/../include/linux"/>
-        <pathelement location="${java.home}/../include/solaris"/>
-      </includepath>
-
-      <compilerarg value="-fPIC" />
-      <syslibset libs="stdc++"/>
-    </cc>
-  </target>
-
-</project>
diff --git a/lucene/misc/ivy.xml b/lucene/misc/ivy.xml
deleted file mode 100644
index c339fee..0000000
--- a/lucene/misc/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="misc"/>
-</ivy-module>
diff --git a/lucene/module-build.xml b/lucene/module-build.xml
deleted file mode 100644
index 947b4b5..0000000
--- a/lucene/module-build.xml
+++ /dev/null
@@ -1,721 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="module-build" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
-  <!-- TODO: adjust build.dir/dist.dir appropriately when a module is run individually -->
-  <dirname file="${ant.file.module-build}" property="module-build.dir"/>
-  <property name="build.dir" location="${module-build.dir}/build/${ant.project.name}"/>
-  <property name="dist.dir" location="${module-build.dir}/dist/${ant.project.name}"/>
-  <property name="maven.dist.dir" location="${module-build.dir}/dist/maven"/>
-
-  <import file="common-build.xml"/>
-
-  <!-- if you extend the classpath refid in one contrib's build.xml (add JARs), use this as basis: -->
-  <path id="base.classpath">
-   <pathelement location="${common.dir}/build/core/classes/java"/>
-  </path>
-  
-  <!-- default classpath refid, can be overridden by contrib's build.xml (use the above base.classpath as basis): -->
-  <path id="classpath" refid="base.classpath"/>
-  
-  <path id="test.base.classpath">
-    <pathelement location="${common.dir}/build/test-framework/classes/java"/>
-    <pathelement location="${common.dir}/build/codecs/classes/java"/>
-    <path refid="classpath"/>
-    <path refid="junit-path"/>
-    <pathelement location="${build.dir}/classes/java"/>
-  </path>
-
-  <path id="test.classpath" refid="test.base.classpath"/>
-
-  <path id="junit.classpath">
-    <pathelement location="${build.dir}/classes/test"/>
-    <path refid="test.classpath"/>
-  </path>
-
-  <target name="init" depends="common.init,compile-lucene-core"/>
-  <target name="compile-test" depends="init" if="module.has.tests">
-    <antcall target="common.compile-test" inheritRefs="true" />
-  </target>
-  <target name="test" depends="init" if="module.has.tests">
-    <antcall target="common.test" inheritRefs="true" />
-  </target>
-  <target name="build-artifacts-and-tests" depends="jar, compile-test" />
-
-  <!-- TODO: why does this previous depend on compile-core? -->
-  <target name="javadocs" depends="compile-core,javadocs-lucene-core,check-javadocs-uptodate"
-                          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc/>
-  </target>
-
-  <macrodef name="invoke-module-javadoc">
-    <!-- additional links for dependencies to other modules -->
-      <element name="links" optional="yes"/>
-    <!-- link source (don't do this unless it's example code) -->
-      <attribute name="linksource" default="no"/>
-    <sequential>
-      <mkdir dir="${javadoc.dir}/${name}"/>
-      <invoke-javadoc
-         destdir="${javadoc.dir}/${name}"
-         title="${Name} ${version} ${name} API"
-         linksource="@{linksource}">
-         <sources>
-           <link href="../core/"/>
-           <links/>
-           <link href=""/>
-           <packageset dir="${src.dir}"/>
-        </sources>
-      </invoke-javadoc>
-      
-      <!-- fix for Java 11 Javadoc tool that cannot handle split packages between modules correctly (by removing all the packages which are part of lucene-core): -->
-      <!-- problem description: [https://issues.apache.org/jira/browse/LUCENE-8738?focusedCommentId=16818106&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16818106] -->
-      <local name="element-list-regex"/><!-- contains a regex for all package names which are in lucene-core's javadoc! -->
-      <loadfile property="element-list-regex" srcFile="${javadoc.dir}/core/element-list" encoding="utf-8">
-        <filterchain>
-          <tokenfilter delimoutput="|">
-            <replacestring from="." to="\."/>
-          </tokenfilter>
-        </filterchain>
-      </loadfile>
-      <!--<echo>Regex: ^(${element-list-regex})$</echo>-->
-      <replaceregexp encoding="utf-8" file="${javadoc.dir}/${name}/element-list" byline="true" match="^(${element-list-regex})$" replace=""/>
-      
-      <jarify basedir="${javadoc.dir}/${name}" destfile="${build.dir}/${final.name}-javadoc.jar"/>
-    </sequential>
-  </macrodef>
-
-  <property name="test-framework.jar" value="${common.dir}/build/test-framework/lucene-test-framework-${version}.jar"/>
-  <target name="check-test-framework-uptodate" unless="test-framework.uptodate">
-    <module-uptodate name="test-framework" jarfile="${test-framework.jar}" property="test-framework.uptodate"/>
-  </target>
-  <target name="jar-test-framework" unless="test-framework.uptodate" depends="check-test-framework-uptodate">
-    <ant dir="${common.dir}/test-framework" target="jar-core" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="test-framework.uptodate" value="true"/>
-  </target>
-
-  <property name="test-framework-javadoc.jar" value="${common.dir}/build/test-framework/lucene-test-framework-${version}-javadoc.jar"/>
-  <target name="check-test-framework-javadocs-uptodate" unless="test-framework-javadocs.uptodate">
-    <module-uptodate name="test-framework" jarfile="${test-framework-javadoc.jar}" property="test-framework-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-test-framework" unless="test-framework-javadocs.uptodate" depends="check-test-framework-javadocs-uptodate">
-    <ant dir="${common.dir}/test-framework" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="test-framework-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="queryparser.jar" value="${common.dir}/build/queryparser/lucene-queryparser-${version}.jar"/>
-  <target name="check-queryparser-uptodate" unless="queryparser.uptodate">
-    <module-uptodate name="queryparser" jarfile="${queryparser.jar}" property="queryparser.uptodate"/>
-  </target>
-  <target name="jar-queryparser" unless="queryparser.uptodate" depends="check-queryparser-uptodate">
-    <ant dir="${common.dir}/queryparser" target="jar-core" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="queryparser.uptodate" value="true"/>
-  </target>
-
-  <property name="queryparser-javadoc.jar" value="${common.dir}/build/queryparser/lucene-queryparser-${version}-javadoc.jar"/>
-  <target name="check-queryparser-javadocs-uptodate" unless="queryparser-javadocs.uptodate">
-    <module-uptodate name="queryparser" jarfile="${queryparser-javadoc.jar}" property="queryparser-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-queryparser" unless="queryparser-javadocs.uptodate" depends="check-queryparser-javadocs-uptodate">
-    <ant dir="${common.dir}/queryparser" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="queryparser-javadocs.uptodate" value="true"/>
-  </target>
-  
-  <property name="join.jar" value="${common.dir}/build/join/lucene-join-${version}.jar"/>
-  <target name="check-join-uptodate" unless="join.uptodate">
-    <module-uptodate name="join" jarfile="${join.jar}" property="join.uptodate"/>
-  </target>
-  <target name="jar-join" unless="join.uptodate" depends="check-join-uptodate">
-    <ant dir="${common.dir}/join" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="join.uptodate" value="true"/>
-  </target>  
-  
-  <property name="join-javadoc.jar" value="${common.dir}/build/join/lucene-join-${version}-javadoc.jar"/>
-  <target name="check-join-javadocs-uptodate" unless="join-javadocs.uptodate">
-    <module-uptodate name="join" jarfile="${join-javadoc.jar}" property="join-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-join" unless="join-javadocs.uptodate" depends="check-join-javadocs-uptodate">
-    <ant dir="${common.dir}/join" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="join-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-common.jar" value="${common.dir}/build/analysis/common/lucene-analyzers-common-${version}.jar"/>
-  <target name="check-analyzers-common-uptodate" unless="analyzers-common.uptodate">
-    <module-uptodate name="analysis/common" jarfile="${analyzers-common.jar}" property="analyzers-common.uptodate"/>
-  </target>
-  <target name="jar-analyzers-common" unless="analyzers-common.uptodate" depends="check-analyzers-common-uptodate">
-    <ant dir="${common.dir}/analysis/common" target="jar-core" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-common.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-common-javadoc.jar" value="${common.dir}/build/analysis/common/lucene-analyzers-common-${version}-javadoc.jar"/>
-  <target name="check-analyzers-common-javadocs-uptodate" unless="analyzers-common-javadocs.uptodate">
-    <module-uptodate name="analysis/common" jarfile="${analyzers-common-javadoc.jar}" property="analyzers-common-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-analyzers-common" unless="analyzers-common-javadocs.uptodate" depends="check-analyzers-common-javadocs-uptodate">
-    <ant dir="${common.dir}/analysis/common" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-common-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="queries.jar" value="${common.dir}/build/queries/lucene-queries-${version}.jar"/>
-  <target name="check-queries-uptodate" unless="queries.uptodate">
-    <module-uptodate name="queries" jarfile="${queries.jar}" property="queries.uptodate"/>
-  </target>
-  <target name="jar-queries" unless="queries.uptodate" depends="check-queries-uptodate">
-    <ant dir="${common.dir}/queries" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="queries.uptodate" value="true"/>
-  </target>
-
-  <property name="queries-javadoc.jar" value="${common.dir}/build/queries/lucene-queries-${version}-javadoc.jar"/>
-  <target name="check-queries-javadocs-uptodate" unless="queries-javadocs.uptodate">
-    <module-uptodate name="queries" jarfile="${queries-javadoc.jar}" property="queries-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-queries" unless="queries-javadocs.uptodate" depends="check-queries-javadocs-uptodate">
-    <ant dir="${common.dir}/queries" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="queries-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="classification.jar" value="${common.dir}/build/classification/lucene-classification-${version}.jar"/>
-  <target name="check-classification-uptodate" unless="classification.uptodate">
-    <module-uptodate name="classification" jarfile="${classification.jar}" property="classification.uptodate"/>
-  </target>
-  <target name="jar-classification" unless="classification.uptodate" depends="check-classification-uptodate">
-    <ant dir="${common.dir}/classification" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="classification.uptodate" value="true"/>
-  </target>
-
-  <property name="classification-javadoc.jar" value="${common.dir}/build/classification/lucene-classification-${version}-javadoc.jar"/>
-  <target name="check-classification-javadocs-uptodate" unless="classification-javadocs.uptodate">
-    <module-uptodate name="classification" jarfile="${classification-javadoc.jar}" property="classification-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-classification" unless="classification-javadocs.uptodate" depends="check-classification-javadocs-uptodate">
-    <ant dir="${common.dir}/classification" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="classification-javadocs.uptodate" value="true"/>
-  </target>
-  
-  <property name="facet.jar" value="${common.dir}/build/facet/lucene-facet-${version}.jar"/>
-  <target name="check-facet-uptodate" unless="facet.uptodate">
-    <module-uptodate name="facet" jarfile="${facet.jar}" property="facet.uptodate"/>
-  </target>
-  <target name="jar-facet" unless="facet.uptodate" depends="check-facet-uptodate">
-    <ant dir="${common.dir}/facet" target="jar-core" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="facet.uptodate" value="true"/>
-  </target>
-
-  <property name="facet-javadoc.jar" value="${common.dir}/build/facet/lucene-facet-${version}-javadoc.jar"/>
-  <target name="check-facet-javadocs-uptodate" unless="facet-javadocs.uptodate">
-    <module-uptodate name="facet" jarfile="${facet-javadoc.jar}" property="facet-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-facet" unless="facet-javadocs.uptodate" depends="check-facet-javadocs-uptodate">
-    <ant dir="${common.dir}/facet" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="facet-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="replicator.jar" value="${common.dir}/build/replicator/lucene-replicator-${version}.jar"/>
-  <target name="check-replicator-uptodate" unless="replicator.uptodate">
-    <module-uptodate name="replicator" jarfile="${replicator.jar}" property="replicator.uptodate"/>
-  </target>
-  <target name="jar-replicator" unless="replicator.uptodate" depends="check-replicator-uptodate">
-    <ant dir="${common.dir}/replicator" target="jar-core" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="replicator.uptodate" value="true"/>
-  </target>
-
-  <property name="replicator-javadoc.jar" value="${common.dir}/build/replicator/lucene-replicator-${version}-javadoc.jar"/>
-  <target name="check-replicator-javadocs-uptodate" unless="replicator-javadocs.uptodate">
-    <module-uptodate name="replicator" jarfile="${replicator-javadoc.jar}" property="replicator-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-replicator" unless="replicator-javadocs.uptodate" depends="check-replicator-javadocs-uptodate">
-    <ant dir="${common.dir}/replicator" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="replicator-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-icu.jar" value="${common.dir}/build/analysis/icu/lucene-analyzers-icu-${version}.jar"/>
-  <target name="check-analyzers-icu-uptodate" unless="analyzers-icu.uptodate">
-    <module-uptodate name="analysis/icu" jarfile="${analyzers-icu.jar}" property="analyzers-icu.uptodate"/>
-  </target>
-  <target name="jar-analyzers-icu" unless="analyzers-icu.uptodate" depends="check-analyzers-icu-uptodate">
-    <ant dir="${common.dir}/analysis/icu" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-icu.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-icu-javadoc.jar" value="${common.dir}/build/analysis/icu/lucene-analyzers-icu-${version}-javadoc.jar"/>
-  <target name="check-analyzers-icu-javadocs-uptodate" unless="analyzers-icu-javadocs.uptodate">
-    <module-uptodate name="analysis/icu" jarfile="${analyzers-icu-javadoc.jar}" property="analyzers-icu-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-analyzers-icu" unless="analyzers-icu-javadocs.uptodate" depends="check-analyzers-icu-javadocs-uptodate">
-    <ant dir="${common.dir}/analysis/icu" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-icu-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-opennlp.jar" value="${common.dir}/build/analysis/opennlp/lucene-analyzers-opennlp-${version}.jar"/>
-  <target name="check-analyzers-opennlp-uptodate" unless="analyzers-opennlp.uptodate">
-    <module-uptodate name="analysis/opennlp" jarfile="${analyzers-opennlp.jar}" property="analyzers-opennlp.uptodate"/>
-  </target>
-  <target name="jar-analyzers-opennlp" unless="analyzers-opennlp.uptodate" depends="check-analyzers-opennlp-uptodate">
-    <ant dir="${common.dir}/analysis/opennlp" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-opennlp.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-opennlp-javadoc.jar" value="${common.dir}/build/analysis/opennlp/lucene-analyzers-opennlp-${version}-javadoc.jar"/>
-  <target name="check-analyzers-opennlp-javadocs-uptodate" unless="analyzers-opennlp-javadocs.uptodate">
-    <module-uptodate name="analysis/opennlp" jarfile="${analyzers-opennlp-javadoc.jar}" property="analyzers-opennlp-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-analyzers-opennlp" unless="analyzers-opennlp-javadocs.uptodate" depends="check-analyzers-opennlp-javadocs-uptodate">
-    <ant dir="${common.dir}/analysis/opennlp" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-opennlp-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-phonetic.jar" value="${common.dir}/build/analysis/phonetic/lucene-analyzers-phonetic-${version}.jar"/>
-  <target name="check-analyzers-phonetic-uptodate" unless="analyzers-phonetic.uptodate">
-    <module-uptodate name="analysis/phonetic" jarfile="${analyzers-phonetic.jar}" property="analyzers-phonetic.uptodate"/>
-  </target>
-  <target name="jar-analyzers-phonetic" unless="analyzers-phonetic.uptodate" depends="check-analyzers-phonetic-uptodate">
-    <ant dir="${common.dir}/analysis/phonetic" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-  </target>
-
-  <property name="analyzers-phonetic-javadoc.jar" value="${common.dir}/build/analysis/phonetic/lucene-analyzers-phonetic-${version}-javadoc.jar"/>
-  <target name="check-analyzers-phonetic-javadocs-uptodate" unless="analyzers-phonetic-javadocs.uptodate">
-    <module-uptodate name="analysis/phonetic" jarfile="${analyzers-phonetic-javadoc.jar}" property="analyzers-phonetic-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-analyzers-phonetic" unless="analyzers-phonetic-javadocs.uptodate" depends="check-analyzers-phonetic-javadocs-uptodate">
-    <ant dir="${common.dir}/analysis/phonetic" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-phonetic-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-smartcn.jar" value="${common.dir}/build/analysis/smartcn/lucene-analyzers-smartcn-${version}.jar"/>
-  <target name="check-analyzers-smartcn-uptodate" unless="analyzers-smartcn.uptodate">
-    <module-uptodate name="analysis/smartcn" jarfile="${analyzers-smartcn.jar}" property="analyzers-smartcn.uptodate"/>
-  </target>
-  <target name="jar-analyzers-smartcn" unless="analyzers-smartcn.uptodate" depends="check-analyzers-smartcn-uptodate">
-    <ant dir="${common.dir}/analysis/smartcn" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-smartcn.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-smartcn-javadoc.jar" value="${common.dir}/build/analysis/smartcn/lucene-analyzers-smartcn-${version}-javadoc.jar"/>
-  <target name="check-analyzers-smartcn-javadocs-uptodate" unless="analyzers-smartcn-javadocs.uptodate">
-    <module-uptodate name="analysis/smartcn" jarfile="${analyzers-smartcn-javadoc.jar}" property="analyzers-smartcn-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-analyzers-smartcn" unless="analyzers-smartcn-javadocs.uptodate" depends="check-analyzers-smartcn-javadocs-uptodate">
-    <ant dir="${common.dir}/analysis/smartcn" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-smartcn-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-stempel.jar" value="${common.dir}/build/analysis/stempel/lucene-analyzers-stempel-${version}.jar"/>
-  <target name="check-analyzers-stempel-uptodate" unless="analyzers-stempel.uptodate">
-    <module-uptodate name="analysis/stempel" jarfile="${analyzers-stempel.jar}" property="analyzers-stempel.uptodate"/>
-  </target>
-  <target name="jar-analyzers-stempel" unless="analyzers-stempel.uptodate" depends="check-analyzers-stempel-uptodate">
-    <ant dir="${common.dir}/analysis/stempel" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-stempel.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-stempel-javadoc.jar" value="${common.dir}/build/analysis/stempel/lucene-analyzers-stempel-${version}-javadoc.jar"/>
-  <target name="check-analyzers-stempel-javadocs-uptodate" unless="analyzers-stempel-javadocs.uptodate">
-    <module-uptodate name="analysis/stempel" jarfile="${analyzers-stempel-javadoc.jar}" property="analyzers-stempel-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-analyzers-stempel" unless="analyzers-stempel-javadocs.uptodate" depends="check-analyzers-stempel-javadocs-uptodate">
-    <ant dir="${common.dir}/analysis/stempel" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-stempel-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-kuromoji.jar" value="${common.dir}/build/analysis/kuromoji/lucene-analyzers-kuromoji-${version}.jar"/>
-  <target name="check-analyzers-kuromoji-uptodate" unless="analyzers-kuromoji.uptodate">
-    <module-uptodate name="analysis/kuromoji" jarfile="${analyzers-kuromoji.jar}" property="analyzers-kuromoji.uptodate"/>
-  </target>
-  <target name="jar-analyzers-kuromoji" unless="analyzers-kuromoji.uptodate" depends="check-analyzers-kuromoji-uptodate">
-    <ant dir="${common.dir}/analysis/kuromoji" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-kuromoji.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-kuromoji-javadoc.jar" value="${common.dir}/build/analysis/kuromoji/lucene-analyzers-kuromoji-${version}-javadoc.jar"/>
-  <target name="check-analyzers-kuromoji-javadocs-uptodate" unless="analyzers-kuromoji-javadocs.uptodate">
-    <module-uptodate name="analysis/kuromoji" jarfile="${analyzers-kuromoji-javadoc.jar}" property="analyzers-kuromoji-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-analyzers-kuromoji" unless="analyzers-kuromoji-javadocs.uptodate" depends="check-analyzers-kuromoji-javadocs-uptodate">
-    <ant dir="${common.dir}/analysis/kuromoji" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-kuromoji-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-morfologik.jar" value="${common.dir}/build/analysis/morfologik/lucene-analyzers-morfologik-${version}.jar"/>
-  <fileset id="analyzers-morfologik.fileset" dir="${common.dir}">
-    <include name="build/analysis/morfologik/lucene-analyzers-morfologik-${version}.jar" />
-    <include name="analysis/morfologik/lib/morfologik-*.jar" />
-  </fileset>
-  <target name="check-analyzers-morfologik-uptodate" unless="analyzers-morfologik.uptodate">
-    <module-uptodate name="analysis/morfologik" jarfile="${analyzers-morfologik.jar}" property="analyzers-morfologik.uptodate"/>
-  </target>
-  <target name="jar-analyzers-morfologik" unless="analyzers-morfologik.uptodate" depends="check-analyzers-morfologik-uptodate">
-    <ant dir="${common.dir}/analysis/morfologik" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-morfologik.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-morfologik-javadoc.jar" value="${common.dir}/build/analysis/morfologik/lucene-analyzers-morfologik-${version}-javadoc.jar"/>
-  <target name="check-analyzers-morfologik-javadocs-uptodate" unless="analyzers-morfologik-javadocs.uptodate">
-    <module-uptodate name="analysis/morfologik" jarfile="${analyzers-morfologik-javadoc.jar}" property="analyzers-morfologik-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-analyzers-morfologik" unless="analyzers-morfologik-javadocs.uptodate" depends="check-analyzers-morfologik-javadocs-uptodate">
-    <ant dir="${common.dir}/analysis/morfologik" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-morfologik-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-nori.jar" value="${common.dir}/build/analysis/nori/lucene-analyzers-nori-${version}.jar"/>
-  <target name="check-analyzers-nori-uptodate" unless="analyzers-nori.uptodate">
-    <module-uptodate name="analysis/nori" jarfile="${analyzers-nori.jar}" property="analyzers-nori.uptodate"/>
-  </target>
-  <target name="jar-analyzers-nori" unless="analyzers-nori.uptodate" depends="check-analyzers-nori-uptodate">
-    <ant dir="${common.dir}/analysis/nori" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-nori.uptodate" value="true"/>
-  </target>
-
-  <property name="analyzers-nori-javadoc.jar" value="${common.dir}/build/analysis/nori/lucene-analyzers-nori-${version}-javadoc.jar"/>
-  <target name="check-analyzers-nori-javadocs-uptodate" unless="analyzers-nori-javadocs.uptodate">
-    <module-uptodate name="analysis/nori" jarfile="${analyzers-nori-javadoc.jar}" property="analyzers-nori-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-analyzers-nori" unless="analyzers-nori-javadocs.uptodate" depends="check-analyzers-nori-javadocs-uptodate">
-    <ant dir="${common.dir}/analysis/nori" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="analyzers-nori-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="codecs.jar" value="${common.dir}/build/codecs/lucene-codecs-${version}.jar"/>
-  <target name="check-codecs-uptodate" unless="codecs.uptodate">
-    <module-uptodate name="codecs" jarfile="${codecs.jar}" property="codecs.uptodate"/>
-  </target>
-  <target name="jar-codecs" unless="codecs.uptodate" depends="check-codecs-uptodate">
-    <ant dir="${common.dir}/codecs" target="jar-core" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="codecs.uptodate" value="true"/>
-  </target>
-
-  <property name="codecs-javadoc.jar" value="${common.dir}/build/codecs/lucene-codecs-${version}-javadoc.jar"/>
-  <target name="check-codecs-javadocs-uptodate" unless="codecs-javadocs.uptodate">
-    <module-uptodate name="codecs" jarfile="${codecs-javadoc.jar}" property="codecs-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-codecs" unless="codecs-javadocs.uptodate" depends="check-codecs-javadocs-uptodate">
-    <ant dir="${common.dir}/codecs" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="codecs-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="backward-codecs.jar" value="${common.dir}/build/backward-codecs/lucene-backward-codecs-${version}.jar"/>
-  <target name="check-backward-codecs-uptodate" unless="backward-codecs.uptodate">
-    <module-uptodate name="backward-codecs" jarfile="${backward-codecs.jar}" property="backward-codecs.uptodate"/>
-  </target>
-  <target name="jar-backward-codecs" unless="backward-codecs.uptodate" depends="check-backward-codecs-uptodate">
-    <ant dir="${common.dir}/backward-codecs" target="jar-core" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="backward-codecs.uptodate" value="true"/>
-  </target>
-
-  <property name="backward-codecs-javadoc.jar" value="${common.dir}/build/backward-codecs/lucene-backward-codecs-${version}-javadoc.jar"/>
-  <target name="check-backward-codecs-javadocs-uptodate" unless="backward-codecs-javadocs.uptodate">
-    <module-uptodate name="backward-codecs" jarfile="${backward-codecs-javadoc.jar}" property="backward-codecs-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-backward-codecs" unless="backward-codecs-javadocs.uptodate" depends="check-backward-codecs-javadocs-uptodate">
-    <ant dir="${common.dir}/backward-codecs" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="backward-codecs-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="expressions.jar" value="${common.dir}/build/expressions/lucene-expressions-${version}.jar"/>
-  <target name="check-expressions-uptodate" unless="expressions.uptodate">
-    <module-uptodate name="expressions" jarfile="${expressions.jar}" property="expressions.uptodate"/>
-  </target>
-  <target name="jar-expressions" unless="expressions.uptodate" depends="check-expressions-uptodate">
-    <ant dir="${common.dir}/expressions" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="expressions.uptodate" value="true"/>
-  </target>
-
-  <property name="expressions-javadoc.jar" value="${common.dir}/build/expressions/lucene-expressions-${version}-javadoc.jar"/>
-  <target name="check-expressions-javadocs-uptodate" unless="expressions-javadocs.uptodate">
-    <module-uptodate name="expressions" jarfile="${expressions-javadoc.jar}" property="expressions-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-expressions" unless="expressions-javadocs.uptodate" depends="check-expressions-javadocs-uptodate">
-    <ant dir="${common.dir}/expressions" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="expressions-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="grouping.jar" value="${common.dir}/build/grouping/lucene-grouping-${version}.jar"/>
-  <target name="check-grouping-uptodate" unless="grouping.uptodate">
-    <module-uptodate name="grouping" jarfile="${grouping.jar}" property="grouping.uptodate"/>
-  </target>
-  <target name="jar-grouping" unless="grouping.uptodate" depends="check-grouping-uptodate">
-    <ant dir="${common.dir}/grouping" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="grouping.uptodate" value="true"/>
-  </target>
-
-  <property name="grouping-javadoc.jar" value="${common.dir}/build/grouping/lucene-grouping-${version}-javadoc.jar"/>
-  <target name="check-grouping-javadocs-uptodate" unless="grouping-javadocs.uptodate">
-    <module-uptodate name="grouping" jarfile="${grouping-javadoc.jar}" property="grouping-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-grouping" unless="grouping-javadocs.uptodate" depends="check-grouping-javadocs-uptodate">
-    <ant dir="${common.dir}/grouping" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="grouping-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="highlighter.jar" value="${common.dir}/build/highlighter/lucene-highlighter-${version}.jar"/>
-  <target name="check-highlighter-uptodate" unless="highlighter.uptodate">
-    <module-uptodate name="highlighter" jarfile="${highlighter.jar}" property="highlighter.uptodate"/>
-  </target>
-  <target name="jar-highlighter" unless="highlighter.uptodate" depends="check-highlighter-uptodate">
-    <ant dir="${common.dir}/highlighter" target="jar-core" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="highlighter.uptodate" value="true"/>
-  </target>
-
-  <property name="highlighter-javadoc.jar" value="${common.dir}/build/highlighter/lucene-highlighter-${version}-javadoc.jar"/>
-  <target name="check-highlighter-javadocs-uptodate" unless="highlighter-javadocs.uptodate">
-    <module-uptodate name="highlighter" jarfile="${highlighter-javadoc.jar}" property="highlighter-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-highlighter" unless="highlighter-javadocs.uptodate" depends="check-highlighter-javadocs-uptodate">
-    <ant dir="${common.dir}/highlighter" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="highlighter-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="memory.jar" value="${common.dir}/build/memory/lucene-memory-${version}.jar"/>
-  <target name="check-memory-uptodate" unless="memory.uptodate">
-    <module-uptodate name="memory" jarfile="${memory.jar}" property="memory.uptodate"/>
-  </target>
-  <target name="jar-memory" unless="memory.uptodate" depends="check-memory-uptodate">
-    <ant dir="${common.dir}/memory" target="jar-core" inheritall="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="memory.uptodate" value="true"/>
-  </target>
-
-  <property name="memory-javadoc.jar" value="${common.dir}/build/memory/lucene-memory-${version}-javadoc.jar"/>
-  <target name="check-memory-javadocs-uptodate" unless="memory-javadocs.uptodate">
-    <module-uptodate name="memory" jarfile="${memory-javadoc.jar}" property="memory-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-memory" unless="memory-javadocs.uptodate" depends="check-memory-javadocs-uptodate">
-    <ant dir="${common.dir}/memory" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="memory-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="misc.jar" value="${common.dir}/build/misc/lucene-misc-${version}.jar"/>
-  <target name="check-misc-uptodate" unless="misc.uptodate">
-    <module-uptodate name="misc" jarfile="${misc.jar}" property="misc.uptodate"/>
-  </target>
-  <target name="jar-misc" unless="misc.uptodate" depends="check-misc-uptodate">
-    <ant dir="${common.dir}/misc" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="misc.uptodate" value="true"/>
-  </target>
-
-  <property name="misc-javadoc.jar" value="${common.dir}/build/misc/lucene-misc-${version}-javadoc.jar"/>
-  <target name="check-misc-javadocs-uptodate" unless="misc-javadocs.uptodate">
-    <module-uptodate name="misc" jarfile="${misc-javadoc.jar}" property="misc-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-misc" unless="misc-javadocs.uptodate" depends="check-misc-javadocs-uptodate">
-    <ant dir="${common.dir}/misc" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="misc-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="sandbox.jar" value="${common.dir}/build/sandbox/lucene-sandbox-${version}.jar"/>
-  <target name="check-sandbox-uptodate" unless="sandbox.uptodate">
-    <module-uptodate name="sandbox" jarfile="${sandbox.jar}" property="sandbox.uptodate"/>
-  </target>
-  <target name="jar-sandbox" unless="sandbox.uptodate" depends="check-sandbox-uptodate">
-    <ant dir="${common.dir}/sandbox" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="sandbox.uptodate" value="true"/>
-  </target>
-
-  <property name="sandbox-javadoc.jar" value="${common.dir}/build/sandbox/lucene-sandbox-${version}-javadoc.jar"/>
-  <target name="check-sandbox-javadocs-uptodate" unless="sandbox-javadocs.uptodate">
-    <module-uptodate name="sandbox" jarfile="${sandbox-javadoc.jar}" property="sandbox-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-sandbox" unless="sandbox-javadocs.uptodate" depends="check-sandbox-javadocs-uptodate">
-    <ant dir="${common.dir}/sandbox" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="sandbox-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="spatial3d.jar" value="${common.dir}/build/spatial3d/lucene-spatial3d-${version}.jar"/>
-  <target name="check-spatial3d-uptodate" unless="spatial3d.uptodate">
-    <module-uptodate name="spatial3d" jarfile="${spatial3d.jar}" property="spatial3d.uptodate"/>
-  </target>
-  <target name="jar-spatial3d" unless="spatial3d.uptodate" depends="check-spatial3d-uptodate">
-    <ant dir="${common.dir}/spatial3d" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="spatial3d.uptodate" value="true"/>
-  </target>
-
-  <property name="spatial3d-javadoc.jar" value="${common.dir}/build/spatial3d/lucene-spatial3d-${version}-javadoc.jar"/>
-  <target name="check-spatial3d-javadocs-uptodate" unless="spatial3d-javadocs.uptodate">
-    <module-uptodate name="spatial3d" jarfile="${spatial3d-javadoc.jar}" property="spatial3d-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-spatial3d" unless="spatial3d-javadocs.uptodate" depends="check-spatial3d-javadocs-uptodate">
-    <ant dir="${common.dir}/spatial3d" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="spatial3d-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="spatial-extras.jar" value="${common.dir}/build/spatial-extras/lucene-spatial-extras-${version}.jar"/>
-  <target name="check-spatial-extras-uptodate" unless="spatial-extras.uptodate">
-    <module-uptodate name="spatial-extras" jarfile="${spatial-extras.jar}" property="spatial-extras.uptodate"/>
-  </target>
-  <target name="jar-spatial-extras" unless="spatial-extras.uptodate" depends="check-spatial-extras-uptodate">
-    <ant dir="${common.dir}/spatial-extras" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="spatial-extras.uptodate" value="true"/>
-  </target>
-
-  <property name="spatial-extras-javadoc.jar" value="${common.dir}/build/spatial-extras/lucene-spatial-extras-${version}-javadoc.jar"/>
-  <target name="check-spatial-extras-javadocs-uptodate" unless="spatial-extras-javadocs.uptodate">
-    <module-uptodate name="spatial-extras" jarfile="${spatial-extras-javadoc.jar}" property="spatial-extras-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-spatial-extras" unless="spatial-extras-javadocs.uptodate" depends="check-spatial-extras-javadocs-uptodate">
-    <ant dir="${common.dir}/spatial-extras" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="spatial-extras-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="suggest.jar" value="${common.dir}/build/suggest/lucene-suggest-${version}.jar"/>
-  <target name="check-suggest-uptodate" unless="suggest.uptodate">
-    <module-uptodate name="suggest" jarfile="${suggest.jar}" property="suggest.uptodate"/>
-  </target>
-  <target name="jar-suggest" unless="suggest.uptodate" depends="check-suggest-uptodate">
-    <ant dir="${common.dir}/suggest" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="suggest.uptodate" value="true"/>
-  </target>
-
-  <property name="suggest-javadoc.jar" value="${common.dir}/build/suggest/lucene-suggest-${version}-javadoc.jar"/>
-  <target name="check-suggest-javadocs-uptodate" unless="suggest-javadocs.uptodate">
-    <module-uptodate name="suggest" jarfile="${suggest-javadoc.jar}" property="suggest-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-suggest" unless="suggest-javadocs.uptodate" depends="check-suggest-javadocs-uptodate">
-    <ant dir="${common.dir}/suggest" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="suggest-javadocs.uptodate" value="true"/>
-  </target>
-
-  <property name="luke.jar" value="${common.dir}/build/luke/lucene-luke-${version}.jar"/>
-  <target name="check-luke-uptodate" unless="luke.uptodate">
-    <module-uptodate name="luke" jarfile="${luke.jar}" property="luke.uptodate"/>
-  </target>
-  <target name="jar-luke" unless="luke.uptodate" depends="check-luke-uptodate">
-    <ant dir="${common.dir}/luke" target="jar-core" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="luke.uptodate" value="true"/>
-  </target>
-
-  <property name="luke-javadoc.jar" value="${common.dir}/build/luke/lucene-luke-${version}-javadoc.jar"/>
-  <target name="check-luke-javadocs-uptodate" unless="luke-javadocs.uptodate">
-    <module-uptodate name="luke" jarfile="${luke-javadoc.jar}" property="luke-javadocs.uptodate"/>
-  </target>
-  <target name="javadocs-luke" unless="luke-javadocs.uptodate" depends="check-luke-javadocs-uptodate">
-    <ant dir="${common.dir}/luke" target="javadocs" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-    <property name="luke-javadocs.uptodate" value="true"/>
-  </target>
-</project>
diff --git a/lucene/monitor/build.xml b/lucene/monitor/build.xml
deleted file mode 100644
index c378c1d..0000000
--- a/lucene/monitor/build.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="monitor" default="default">
-
-  <description>
-    Reverse-search implementation for monitoring and classification
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <path id="test.classpath">
-    <path refid="test.base.classpath"/>
-    <pathelement path="${memory.jar}"/>
-  </path>
-
-  <path id="classpath">
-    <pathelement path="${memory.jar}"/>
-    <pathelement path="${analyzers-common.jar}"/>
-    <pathelement path="${queryparser.jar}"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <target name="init" depends="module-build.init,jar-analyzers-common,jar-queryparser,jar-memory"/>
-
-  <target name="javadocs" depends="javadocs-memory,compile-core,check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../memory"/>
-        <link href="../analyzers-common"/>
-        <link href="../queryparser"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-
-</project>
diff --git a/lucene/monitor/ivy.xml b/lucene/monitor/ivy.xml
deleted file mode 100644
index 9485d48..0000000
--- a/lucene/monitor/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="luwak"/>
-</ivy-module>
diff --git a/lucene/queries/build.xml b/lucene/queries/build.xml
deleted file mode 100644
index 20f9c4f..0000000
--- a/lucene/queries/build.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  -->
-
-<project name="queries" default="default">
-  <description>
-    Filters and Queries that add to core Lucene
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <path id="test.classpath">
-    <pathelement path="${expressions.jar}"/>
-    <fileset dir="../expressions/lib"/>
-    <path refid="test.base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-expressions,common.compile-core" />
-</project>
diff --git a/lucene/queries/ivy.xml b/lucene/queries/ivy.xml
deleted file mode 100644
index 403c495..0000000
--- a/lucene/queries/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="queries"/>
-</ivy-module>
diff --git a/lucene/queryparser/build.xml b/lucene/queryparser/build.xml
deleted file mode 100644
index b6e43c2..0000000
--- a/lucene/queryparser/build.xml
+++ /dev/null
@@ -1,178 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  -->
-
-<project name="queryparser" default="default">
-  <description>
-    Query parsers and parsing framework
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <path id="classpath">
-    <pathelement path="${queries.jar}"/>
-    <pathelement path="${sandbox.jar}"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <target name="compile-core" depends="jar-queries,jar-sandbox,common.compile-core"/>
-
-  <target name="javadocs" depends="javadocs-queries,javadocs-sandbox,compile-core,check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../queries"/>
-        <link href="../sandbox"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-
-  <target name="javacc" depends="javacc-QueryParser,javacc-surround,javacc-flexible"/>
-  
-  <macrodef name="generalReplaces">
-    <attribute name="dir"/>
-    <sequential>
-      <!-- StringBuffer -> StringBuilder -->
-      <replace token="StringBuffer" value="StringBuilder" encoding="UTF-8">
-         <fileset dir="@{dir}" includes="ParseException.java TokenMgrError.java"/>
-      </replace>
-      <!-- Remove debug stream (violates forbidden-apis) -->
-      <replaceregexp match="/\*\* Debug.*debugStream\s*=\s*ds;\s*}" replace="" flags="s" encoding="UTF-8">
-         <fileset dir="@{dir}" includes="*TokenManager.java"/>
-      </replaceregexp>
-      <!-- Add warnings supression -->
-      <replaceregexp match="^\Qpublic class\E" replace="@SuppressWarnings(&quot;cast&quot;)${line.separator}\0" flags="m" encoding="UTF-8">
-         <fileset dir="@{dir}" includes="*TokenManager.java"/>
-      </replaceregexp>
-    </sequential>
-  </macrodef>
-  
-  <target name="javacc-QueryParser" depends="resolve-javacc">
-    <sequential>
-      <invoke-javacc target="src/java/org/apache/lucene/queryparser/classic/QueryParser.jj"
-                     outputDir="src/java/org/apache/lucene/queryparser/classic"/>
-
-      <!-- Change the incorrect public ctors for QueryParser to be protected instead -->
-      <replaceregexp file="src/java/org/apache/lucene/queryparser/classic/QueryParser.java"
-         byline="true"
-         match="public QueryParser\(CharStream "
-         replace="protected QueryParser(CharStream "/>
-      <replaceregexp file="src/java/org/apache/lucene/queryparser/classic/QueryParser.java"
-         byline="true"
-         match="public QueryParser\(QueryParserTokenManager "
-         replace="protected QueryParser(QueryParserTokenManager "/>
-      <generalReplaces dir="src/java/org/apache/lucene/queryparser/classic"/>
-    </sequential>
-  </target>
-
-  <target name="javacc-surround" depends="resolve-javacc" description="generate surround query parser">
-    <invoke-javacc target="src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj"
-                   outputDir="src/java/org/apache/lucene/queryparser/surround/parser"
-    />
-    <generalReplaces dir="src/java/org/apache/lucene/queryparser/surround/parser"/>
-  </target>
-
-  <target name="javacc-flexible" depends="resolve-javacc">
-    <invoke-javacc target="src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParser.jj"
-                   outputDir="src/java/org/apache/lucene/queryparser/flexible/standard/parser"
-    />
-        <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"
-                             match="public class ParseException extends Exception"
-                             replace="public class ParseException extends QueryNodeParseException"
-                             flags="g"
-                             byline="false"/>
-        <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"
-                             match="package org.apache.lucene.queryparser.flexible.standard.parser;"
-                             replace="package org.apache.lucene.queryparser.flexible.standard.parser;${line.separator}
-${line.separator}
-import org.apache.lucene.queryparser.flexible.messages.Message;${line.separator}
-import org.apache.lucene.queryparser.flexible.messages.MessageImpl;${line.separator}
-import org.apache.lucene.queryparser.flexible.core.*;${line.separator}
-import org.apache.lucene.queryparser.flexible.core.messages.*;"
-                             flags="g"
-                             byline="false"/>
-        <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"
-                             match="^  public ParseException\(Token currentTokenVal.*$(\s\s[^}].*\n)*  \}"
-                             replace="  public ParseException(Token currentTokenVal,${line.separator}
-    int[][] expectedTokenSequencesVal, String[] tokenImageVal) {${line.separator}
-    super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, initialise(${line.separator}
-    currentTokenVal, expectedTokenSequencesVal, tokenImageVal)));${line.separator}
-    this.currentToken = currentTokenVal;${line.separator}
-    this.expectedTokenSequences = expectedTokenSequencesVal;${line.separator}
-    this.tokenImage = tokenImageVal;${line.separator}
-  }"
-                             flags="gm"
-                             byline="false"/>
-        <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"
-                             match="^  public ParseException\(String message.*$(\s\s[^}].*\n)*  \}"
-                             replace="  public ParseException(Message message) {${line.separator}
-    super(message);${line.separator}
-  }"
-                             flags="gm"
-                             byline="false"/>
-        <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"
-                             match="^  public ParseException\(\).*$(\s\s[^}].*\n)*  \}"
-                             replace="  public ParseException() {${line.separator}
-    super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, &quot;Error&quot;));${line.separator}
-  }"
-                             flags="gm"
-                             byline="false"/>
-        <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"
-                             match="^  public String getMessage\(\).*$(\s\s\s\s[^}].*\n)*    \}"
-                             replace="  private static String initialise(Token currentToken, int[][] expectedTokenSequences, String[] tokenImage) {${line.separator}
-    String eol = System.getProperty(&quot;line.separator&quot;, &quot;\n&quot;);"
-                             flags="gm"
-                             byline="false"/>
-        <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"
-                             match="\s*protected String add_escapes.*"
-                             replace="  static private String add_escapes(String str) {"
-                             flags="g"
-                             byline="true"/>
-        <generalReplaces dir="src/java/org/apache/lucene/queryparser/flexible/standard/parser"/>
-  </target>
-
-  <target name="resolve-javacc" xmlns:ivy="antlib:org.apache.ivy.ant">
-    <!-- setup a "fake" JavaCC distribution folder in ${build.dir} to make JavaCC ANT task happy: -->
-    <ivy:retrieve organisation="net.java.dev.javacc" module="javacc" revision="5.0" symlink="${ivy.symlink}"
-      inline="true" conf="default" transitive="false" type="jar" sync="true"
-      pattern="${build.dir}/javacc/bin/lib/[artifact].[ext]"/>
-  </target>
-
-  <macrodef name="invoke-javacc">
-    <attribute name="target"/>
-    <attribute name="outputDir"/>
-    <sequential>
-      <mkdir dir="@{outputDir}"/>
-      <delete>
-        <fileset dir="@{outputDir}" includes="*.java">
-          <containsregexp expression="Generated.*By.*JavaCC"/>
-        </fileset>
-      </delete>
-      <javacc
-          target="@{target}"
-          outputDirectory="@{outputDir}"
-          javacchome="${build.dir}/javacc"
-          jdkversion="1.${javac.release}"
-      />
-      <fixcrlf srcdir="@{outputDir}" includes="*.java" encoding="UTF-8">
-        <containsregexp expression="Generated.*By.*JavaCC"/>
-      </fixcrlf>
-    </sequential>
-  </macrodef>
-
-  <target name="regenerate" depends="javacc"/>
-
-</project>
diff --git a/lucene/queryparser/ivy.xml b/lucene/queryparser/ivy.xml
deleted file mode 100644
index 9337401..0000000
--- a/lucene/queryparser/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="queryparser"/>
-</ivy-module>
diff --git a/lucene/queryparser/xmldtddocbuild.xml b/lucene/queryparser/xmldtddocbuild.xml
deleted file mode 100644
index c36a6ad..0000000
--- a/lucene/queryparser/xmldtddocbuild.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="DTDDocAnt" default="main">
-
-  <import file="../../lucene/module-build.xml"/>
-
-    <description>
-    This file generates DTDdocumentation
-    </description>
-
-    <!-- Tell ant where to find the code of the DTDDoc task.
-         Set dtddoc.home property to the directory where DTDdoc is installed on your system
-         -->
-
-    <taskdef name="DTDDoc"
-             classname="DTDDoc.DTDDocTask"
-             classpath="${dtddoc.home}/DTDDoc.jar"/>
-
-    <!-- Execute DTDDoc -->
-
-    <target name="main">
-
-
-        <DTDDoc showHiddenTags="false"
-                showFixmeTags="false"
-                sourceDir="."
-                destDir="docs"
-                docTitle = "Lucene XML Query syntax">
-                <include name="org/apache/lucene/queryparser/xml/*.dtd"/>
-        </DTDDoc>
-
-    </target>
-
-
-
-</project>
diff --git a/lucene/replicator/build.xml b/lucene/replicator/build.xml
deleted file mode 100644
index 796bf27..0000000
--- a/lucene/replicator/build.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0"?>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-<project name="replicator" default="default" xmlns:ivy="antlib:org.apache.ivy.ant">
-
-  <description>
-    Files replication utility
-  </description>
-
-  <!-- TODO: go fix this in jetty, its stupid -->
-  <property name="tests.policy" location="../tools/junit4/replicator-tests.policy"/>
-
-  <import file="../module-build.xml"/>
-
-  <path id="classpath">
-    <fileset dir="lib" />
-    <pathelement path="${facet.jar}"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <target name="resolve" depends="common.resolve">
-    <sequential>
-      <!-- javax.servlet jar -->
-      <ivy:retrieve conf="servlet" log="download-only" type="orbit" symlink="${ivy.symlink}"/>
-    </sequential>
-  </target>
-
-  <target name="init" depends="module-build.init,jar-facet"/>
-
-  <target name="javadocs" depends="javadocs-facet,compile-core,check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../facet"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-
-</project>
diff --git a/lucene/replicator/ivy.xml b/lucene/replicator/ivy.xml
deleted file mode 100644
index 24b053c..0000000
--- a/lucene/replicator/ivy.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="replicator"/>
-
-  <configurations defaultconfmapping="http->master;jetty->master;start->master;servlet->master;logging->master">
-    <conf name="http" description="httpclient jars" transitive="false"/>
-    <conf name="jetty" description="jetty jars" transitive="false"/>
-    <conf name="start" description="jetty start jar" transitive="false"/>
-    <conf name="servlet" description="servlet-api jar" transitive="false"/>
-    <conf name="logging" description="logging setup" transitive="false"/>
-  </configurations>
-
-  <dependencies>
-    <dependency org="org.apache.httpcomponents" name="httpclient" rev="${/org.apache.httpcomponents/httpclient}" conf="http"/>
-    <dependency org="org.apache.httpcomponents" name="httpcore" rev="${/org.apache.httpcomponents/httpcore}" conf="http"/>
-    
-    <dependency org="org.eclipse.jetty" name="jetty-server" rev="${/org.eclipse.jetty/jetty-server}" conf="jetty"/>
-    <dependency org="javax.servlet" name="javax.servlet-api" rev="${/javax.servlet/javax.servlet-api}" conf="jetty"/>
-    <dependency org="org.eclipse.jetty" name="jetty-servlet" rev="${/org.eclipse.jetty/jetty-servlet}" conf="jetty"/>
-    <dependency org="org.eclipse.jetty" name="jetty-util" rev="${/org.eclipse.jetty/jetty-util}" conf="jetty"/>
-    <dependency org="org.eclipse.jetty" name="jetty-io" rev="${/org.eclipse.jetty/jetty-io}" conf="jetty"/>
-    <dependency org="org.eclipse.jetty" name="jetty-continuation" rev="${/org.eclipse.jetty/jetty-continuation}" conf="jetty"/>
-    <dependency org="org.eclipse.jetty" name="jetty-http" rev="${/org.eclipse.jetty/jetty-http}" conf="jetty"/>
-
-    <dependency org="commons-logging" name="commons-logging" rev="${/commons-logging/commons-logging}" conf="logging"/>
-
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/>
-  </dependencies>
-
-</ivy-module>
diff --git a/lucene/sandbox/build.xml b/lucene/sandbox/build.xml
deleted file mode 100644
index 93bc275..0000000
--- a/lucene/sandbox/build.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  -->
-
-<project name="sandbox" default="default">
-
-  <description>
-    Various third party contributions and new ideas
-  </description>
-
-  <import file="../module-build.xml"/>
-
-</project>
diff --git a/lucene/sandbox/ivy.xml b/lucene/sandbox/ivy.xml
deleted file mode 100644
index 4c5a43e..0000000
--- a/lucene/sandbox/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="sandbox"/>
-</ivy-module>
diff --git a/lucene/spatial-extras/build.xml b/lucene/spatial-extras/build.xml
deleted file mode 100644
index d95d935..0000000
--- a/lucene/spatial-extras/build.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.
--->
-<project name="spatial-extras" default="default">
-  <description>
-    Geospatial search
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <path id="spatialjar">
-     <fileset dir="lib"/>
-  </path>
-
-  <path id="classpath">
-    <path refid="base.classpath"/>
-    <path refid="spatialjar"/>
-    <pathelement path="${spatial3d.jar}" />
-  </path>
-
-  <path id="test.classpath">
-    <path refid="test.base.classpath" />
-    <path refid="spatialjar"/>
-    <pathelement path="src/test-files" />
-    <pathelement path="${common.dir}/build/spatial3d/classes/test" />
-  </path>
-
-  <target name="compile-core" depends="jar-spatial3d,common.compile-core" />
-
-  <target name="compile-test" depends="compile-spatial3d-tests,common.compile-test" />
-
-  <target name="compile-spatial3d-tests">
-    <ant dir="${common.dir}/spatial3d" target="compile-test" inheritAll="false">
-      <propertyset refid="uptodate.and.compiled.properties"/>
-    </ant>
-  </target>
-
-  <target name="javadocs" depends="javadocs-spatial3d,compile-core,check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../spatial3d"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-</project>
diff --git a/lucene/spatial-extras/ivy.xml b/lucene/spatial-extras/ivy.xml
deleted file mode 100644
index f8dba4e..0000000
--- a/lucene/spatial-extras/ivy.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.
--->
-<ivy-module version="2.0"  xmlns:maven="http://ant.apache.org/ivy/maven">
-  <info organisation="org.apache.lucene" module="spatial-extras"/>
-  <configurations defaultconfmapping="compile->master;test->master">
-    <conf name="compile" transitive="false"/>
-    <conf name="test" transitive="false"/>
-  </configurations>
-  <dependencies>
-    <dependency org="org.locationtech.spatial4j" name="spatial4j" rev="${/org.locationtech.spatial4j/spatial4j}" conf="compile"/>
-
-    <dependency org="io.sgr" name="s2-geometry-library-java" rev="${/io.sgr/s2-geometry-library-java}" conf="compile"/>
-
-    <dependency org="org.locationtech.spatial4j" name="spatial4j" rev="${/org.locationtech.spatial4j/spatial4j}" conf="test">
-      <artifact name="spatial4j" type="test" ext="jar" maven:classifier="tests" />
-    </dependency>
-
-    <dependency org="org.locationtech.jts" name="jts-core" rev="${/org.locationtech.jts/jts-core}" conf="test" />
-
-    <!-- <dependency org="org.slf4j" name="slf4j-api" rev="${/org.slf4j/slf4j-api}" conf="test"/> -->
-
-    <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/>
-  </dependencies>
-</ivy-module>
diff --git a/lucene/spatial3d/build.xml b/lucene/spatial3d/build.xml
deleted file mode 100644
index fbe9e06..0000000
--- a/lucene/spatial3d/build.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.
--->
-<project name="spatial3d" default="default">
-  <description>
-    3D spatial planar geometry APIs
-  </description>
-
-  <import file="../module-build.xml"/>
-
-  <path id="classpath">
-    <path refid="base.classpath"/>
-  </path>
-</project>
diff --git a/lucene/spatial3d/ivy.xml b/lucene/spatial3d/ivy.xml
deleted file mode 100644
index e9d2ee7..0000000
--- a/lucene/spatial3d/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="spatial3d"/>
-</ivy-module>
diff --git a/lucene/suggest/build.xml b/lucene/suggest/build.xml
deleted file mode 100644
index 47d4a63..0000000
--- a/lucene/suggest/build.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="suggest" default="default">
-
-  <description>
-    Auto-suggest and Spellchecking support
-  </description>
-  
-  <!-- just a list of words for testing suggesters -->
-  <property name="rat.excludes" value="**/Top50KWiki.utf8,**/stop-snowball.txt"/>
-
-  <import file="../module-build.xml"/>
-
-  <path id="classpath">
-    <pathelement path="${analyzers-common.jar}"/>
-    <path refid="base.classpath"/>
-  </path>
-
-  <target name="javadocs" depends="compile-core,check-javadocs-uptodate"
-          unless="javadocs-uptodate-${name}">
-    <invoke-module-javadoc>
-      <links>
-        <link href="../analyzers-common"/>
-      </links>
-    </invoke-module-javadoc>
-  </target>
-
-  <target name="compile-core" depends="jar-expressions, jar-analyzers-common, common.compile-core" />
-
-</project>
diff --git a/lucene/suggest/ivy.xml b/lucene/suggest/ivy.xml
deleted file mode 100644
index 343853a..0000000
--- a/lucene/suggest/ivy.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-
-     http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License.    
--->
-<ivy-module version="2.0">
-  <info organisation="org.apache.lucene" module="suggest"/>
-</ivy-module>
diff --git a/lucene/test-framework/build.xml b/lucene/test-framework/build.xml
deleted file mode 100644
index 844c557..0000000
--- a/lucene/test-framework/build.xml
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
- 
-        http://www.apache.org/licenses/LICENSE-2.0
- 
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
- -->
-
-<project name="test-framework" default="default">
-  <description>Framework for testing Lucene-based applications</description>
-
-  <property name="build.dir" location="../build/test-framework"/>
-
-  <import file="../common-build.xml"/>
-
-  <path id="classpath">
-    <pathelement location="${common.dir}/build/core/classes/java"/>
-    <pathelement location="${common.dir}/build/codecs/classes/java"/>
-    <fileset dir="lib"/>
-  </path>
-
-  <path id="test.classpath"> 
-    <pathelement location="${build.dir}/classes/java"/>
-    <pathelement location="${build.dir}/classes/test"/>
-    <path refid="classpath"/>
-    <path refid="junit-path"/>
-  </path>
... 5616 lines suppressed ...