You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2023/01/29 15:15:02 UTC
[couchdb] 01/02: created shaded lucene jars
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch import-nouveau-multilucene
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 44efbbcd14dae86e1d7658ce04d4a728228b3510
Author: Robert Newson <rn...@apache.org>
AuthorDate: Sun Jan 29 15:05:47 2023 +0000
created shaded lucene jars
---
java/nouveau/pom.xml | 38 +++++++++++
java/nouveau/shaded-lucene-4/pom.xml | 126 ++++++++++++++++++++++++++++++++++
java/nouveau/shaded-lucene-9/pom.xml | 129 +++++++++++++++++++++++++++++++++++
3 files changed, 293 insertions(+)
diff --git a/java/nouveau/pom.xml b/java/nouveau/pom.xml
new file mode 100644
index 000000000..f0c0efe4b
--- /dev/null
+++ b/java/nouveau/pom.xml
@@ -0,0 +1,38 @@
+<!--
+ 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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.couchdb.nouveau</groupId>
+ <artifactId>parent</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>${project.artifactId}</name>
+ <description>Full-text indexing for CouchDB</description>
+ <inceptionYear>2022</inceptionYear>
+
+ <properties>
+ <argLine>-Duser.language=en -Duser.region=US -Duser.timezone=UTC</argLine>
+ <maven.compiler.source>11</maven.compiler.source>
+ <maven.compiler.target>11</maven.compiler.target>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
+
+ <modules>
+ <module>shaded-lucene-4</module>
+ <module>shaded-lucene-9</module>
+ <module>server</module>
+ </modules>
+
+</project>
diff --git a/java/nouveau/shaded-lucene-4/pom.xml b/java/nouveau/shaded-lucene-4/pom.xml
new file mode 100644
index 000000000..7a1d074b7
--- /dev/null
+++ b/java/nouveau/shaded-lucene-4/pom.xml
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.couchdb.nouveau</groupId>
+ <artifactId>shaded-lucene-4</artifactId>
+ <name>${project.artifactId}</name>
+ <version>1.0-SNAPSHOT</version>
+ <description>Relocated Lucene 4 classes</description>
+ <inceptionYear>2023</inceptionYear>
+
+ <properties>
+ <lucene.version>4.6.1</lucene.version>
+ </properties>
+
+ <dependencies>
+ <!-- Lucene -->
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-core</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-grouping</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-queryparser</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-analyzers-common</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-analyzers-stempel</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-analyzers-smartcn</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-analyzers-kuromoji</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-facet</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-misc</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <plugins>
+ <plugin>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.4.1</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>module-info.class</exclude>
+ <exclude>module-info.java</exclude>
+ <exclude>META-INF/LICENSE.txt</exclude>
+ <exclude>META-INF/NOTICE.txt</exclude>
+ <exclude>META-INF/MANIFEST.MF</exclude>
+ <exclude>overview.html</exclude>
+ <exclude>**/package.html</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <artifactSet>
+ <includes>
+ <include>org.apache.lucene:*</include>
+ <include>com.carrotsearch:hppc</include>
+ </includes>
+ </artifactSet>
+ <createSourcesJar>true</createSourcesJar>
+ <shadeSourcesContent>true</shadeSourcesContent>
+ <relocations>
+ <relocation>
+ <pattern>org.apache.lucene</pattern>
+ <shadedPattern>org.apache.couchdb.nouveau.l9x.lucene</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>com.carrotsearch</pattern>
+ <shadedPattern>org.apache.couchdb.nouveau.l9x.carrotsearch</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.tartarus</pattern>
+ <shadedPattern>org.apache.couchdb.nouveau.l9x.tartarus</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.egothor</pattern>
+ <shadedPattern>org.apache.couchdb.nouveau.l9x.egothor</shadedPattern>
+ </relocation>
+ </relocations>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/java/nouveau/shaded-lucene-9/pom.xml b/java/nouveau/shaded-lucene-9/pom.xml
new file mode 100644
index 000000000..a83e44ae2
--- /dev/null
+++ b/java/nouveau/shaded-lucene-9/pom.xml
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.couchdb.nouveau</groupId>
+ <artifactId>shaded-lucene-9</artifactId>
+ <name>${project.artifactId}</name>
+ <version>1.0-SNAPSHOT</version>
+ <description>Relocated Lucene 9 classes</description>
+ <inceptionYear>2023</inceptionYear>
+
+ <properties>
+ <lucene.version>9.4.2</lucene.version>
+ </properties>
+
+ <dependencies>
+ <!-- Lucene -->
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-core</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-grouping</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-queryparser</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-analysis-common</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-analysis-stempel</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-analysis-smartcn</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-analysis-kuromoji</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-facet</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-spatial-extras</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.lucene</groupId>
+ <artifactId>lucene-misc</artifactId>
+ <version>${lucene.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <plugins>
+ <plugin>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.4.1</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>module-info.class</exclude>
+ <exclude>module-info.java</exclude>
+ <exclude>META-INF/LICENSE.txt</exclude>
+ <exclude>META-INF/NOTICE.txt</exclude>
+ <exclude>META-INF/MANIFEST.MF</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <artifactSet>
+ <includes>
+ <include>org.apache.lucene:*</include>
+ <include>com.carrotsearch:hppc</include>
+ </includes>
+ </artifactSet>
+ <createSourcesJar>true</createSourcesJar>
+ <shadeSourcesContent>true</shadeSourcesContent>
+ <relocations>
+ <relocation>
+ <pattern>org.apache.lucene</pattern>
+ <shadedPattern>org.apache.couchdb.nouveau.l9x.lucene</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>com.carrotsearch</pattern>
+ <shadedPattern>org.apache.couchdb.nouveau.l9x.carrotsearch</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.tartarus</pattern>
+ <shadedPattern>org.apache.couchdb.nouveau.l9x.tartarus</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.egothor</pattern>
+ <shadedPattern>org.apache.couchdb.nouveau.l9x.egothor</shadedPattern>
+ </relocation>
+ </relocations>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>