Apache Lucene open-source search software
add missing files to RT branch
Michael Buscha7875a8228b2
diff --git a/dev-tools/maven/lucene/contrib/ant/pom.xml b/dev-tools/maven/lucene/contrib/ant/pom.xmlnew file mode 100644index 00000000000..3410b4f773f--- /dev/null+++ b/dev-tools/maven/lucene/contrib/ant/pom.xml@@ -0,0 +1,115 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-ant</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Contrib Ant</name>+ <description>Ant task to create Lucene indexes</description>+ <properties>+ <module-directory>lucene/contrib/ant</module-directory>+ <build-directory>../../build/contrib/ant</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>jtidy</groupId>+ <artifactId>jtidy</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.ant</groupId>+ <artifactId>ant</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.ant</groupId>+ <artifactId>ant-junit</artifactId>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <resources>+ <resource>+ <directory>src/resources</directory>+ </resource>+ </resources>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>org.apache.lucene.ant.HtmlDocument</mainClass>+ <name>HtmlDocument</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/db/bdb-je/pom.xml b/dev-tools/maven/lucene/contrib/db/bdb-je/pom.xmlnew file mode 100644index 00000000000..336ee7c2dc4--- /dev/null+++ b/dev-tools/maven/lucene/contrib/db/bdb-je/pom.xml@@ -0,0 +1,76 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-bdb-je</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Contrib bdb-je</name>+ <description>Berkeley DB based Directory implementation</description>+ <properties>+ <module-directory>lucene/contrib/db/bdb-je</module-directory>+ <build-directory>../../../build/contrib/db/bdb-je</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>com.sleepycat</groupId>+ <artifactId>berkeleydb-je</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/db/bdb/pom.xml b/dev-tools/maven/lucene/contrib/db/bdb/pom.xmlnew file mode 100644index 00000000000..4ff4ec2c799--- /dev/null+++ b/dev-tools/maven/lucene/contrib/db/bdb/pom.xml@@ -0,0 +1,87 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-bdb</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Contrib bdb</name>+ <description>Berkeley DB based Directory implementation</description>+ <properties>+ <module-directory>lucene/contrib/db/bdb</module-directory>+ <build-directory>../../../build/contrib/db/bdb</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>com.sleepycat</groupId>+ <artifactId>berkeleydb</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <!-- TODO: figure out how to conditionally turn on tests, -->+ <!-- depending on whether BDB is installed. -->+ <skipTests>true</skipTests>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/db/pom.xml b/dev-tools/maven/lucene/contrib/db/pom.xmlnew file mode 100644index 00000000000..a267ff9139e--- /dev/null+++ b/dev-tools/maven/lucene/contrib/db/pom.xml@@ -0,0 +1,49 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-db-aggregator</artifactId>+ <name>Lucene Database aggregator POM</name>+ <packaging>pom</packaging>+ <modules>+ <module>bdb</module>+ <module>bdb-je</module>+ </modules>+ <build>+ <directory>../../build/contrib/db/lucene-db-aggregator</directory>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-deploy-plugin</artifactId>+ <configuration>+ <skip>true</skip>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/demo/pom.xml b/dev-tools/maven/lucene/contrib/demo/pom.xmlnew file mode 100644index 00000000000..e2e61c46090--- /dev/null+++ b/dev-tools/maven/lucene/contrib/demo/pom.xml@@ -0,0 +1,124 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-demo</artifactId>+ <packaging>war</packaging>+ <name>Lucene Demos</name>+ <description>This is the demo for Apache Lucene Java</description>+ <properties>+ <module-directory>lucene/contrib/demo</module-directory>+ <build-directory>../../build/contrib/demo</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>javax.servlet</groupId>+ <artifactId>servlet-api</artifactId>+ <scope>provided</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-war-plugin</artifactId>+ <configuration>+ <warSourceDirectory>src/jsp</warSourceDirectory>+ <attachClasses>true</attachClasses>+ <classesClassifier/>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <assembleDirectory>${build-directory}</assembleDirectory>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>org.apache.lucene.demo.DeleteFiles</mainClass>+ <name>DeleteFiles</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.demo.IndexFiles</mainClass>+ <name>IndexFiles</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.demo.IndexHTML</mainClass>+ <name>IndexHTML</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.demo.SearchFiles</mainClass>+ <name>SearchFiles</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/highlighter/pom.xml b/dev-tools/maven/lucene/contrib/highlighter/pom.xmlnew file mode 100644index 00000000000..7df7e4affca--- /dev/null+++ b/dev-tools/maven/lucene/contrib/highlighter/pom.xml@@ -0,0 +1,84 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-highlighter</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Highlighter</name>+ <description>+ This is the highlighter for apache lucene java+ </description>+ <properties>+ <module-directory>lucene/contrib/highlighter</module-directory>+ <build-directory>../../build/contrib/highlighter</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-memory</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-queries</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/instantiated/pom.xml b/dev-tools/maven/lucene/contrib/instantiated/pom.xmlnew file mode 100644index 00000000000..f40c5544d16--- /dev/null+++ b/dev-tools/maven/lucene/contrib/instantiated/pom.xml@@ -0,0 +1,72 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-instantiated</artifactId>+ <packaging>jar</packaging>+ <name>Lucene InstantiatedIndex</name>+ <description>InstantiatedIndex, alternative RAM store for small corpora.</description>+ <properties>+ <module-directory>lucene/contrib/instantiated</module-directory>+ <build-directory>../../build/contrib/instantiated</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/lucli/pom.xml b/dev-tools/maven/lucene/contrib/lucli/pom.xmlnew file mode 100644index 00000000000..f6266f7caa2--- /dev/null+++ b/dev-tools/maven/lucene/contrib/lucli/pom.xml@@ -0,0 +1,108 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-lucli</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Lucli</name>+ <description>Lucene Command Line Interface</description>+ <properties>+ <module-directory>lucene/contrib/lucli</module-directory>+ <build-directory>../../build/contrib/lucli</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>jline</groupId>+ <artifactId>jline</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-javadoc-plugin</artifactId>+ <configuration>+ <skip>true</skip> <!-- There are no public or protected classes -->+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>lucli.Lucli</mainClass>+ <name>lucli</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/memory/pom.xml b/dev-tools/maven/lucene/contrib/memory/pom.xmlnew file mode 100644index 00000000000..940fdf1b34e--- /dev/null+++ b/dev-tools/maven/lucene/contrib/memory/pom.xml@@ -0,0 +1,74 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-memory</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Memory</name>+ <description>+ High-performance single-document index to compare against Query+ </description>+ <properties>+ <module-directory>lucene/contrib/memory</module-directory>+ <build-directory>../../build/contrib/memory</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/misc/pom.xml b/dev-tools/maven/lucene/contrib/misc/pom.xmlnew file mode 100644index 00000000000..62bf4577e53--- /dev/null+++ b/dev-tools/maven/lucene/contrib/misc/pom.xml@@ -0,0 +1,121 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-misc</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Miscellaneous</name>+ <description>Miscellaneous Lucene extensions</description>+ <properties>+ <module-directory>lucene/contrib/misc</module-directory>+ <build-directory>../../build/contrib/misc</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>org.apache.lucene.index.FieldNormModifier</mainClass>+ <name>FieldNormModifier</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.index.IndexSplitter</mainClass>+ <name>IndexSplitter</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.index.MultiPassIndexSplitter</mainClass>+ <name>MultiPassIndexSplitter</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.misc.GetTermInfo</mainClass>+ <name>GetTermInfo</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.misc.HighFreqTerms</mainClass>+ <name>HighFreqTerms</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.misc.IndexMergeTool</mainClass>+ <name>IndexMergeTool</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.misc.LengthNormModifier</mainClass>+ <name>LengthNormModifier</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/pom.xml b/dev-tools/maven/lucene/contrib/pom.xmlnew file mode 100644index 00000000000..039b87d80a7--- /dev/null+++ b/dev-tools/maven/lucene/contrib/pom.xml@@ -0,0 +1,62 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-contrib-aggregator</artifactId>+ <name>Lucene Contrib aggregator POM</name>+ <packaging>pom</packaging>+ <modules>+ <module>ant</module>+ <module>db</module>+ <module>demo</module>+ <module>highlighter</module>+ <module>instantiated</module>+ <module>lucli</module>+ <module>memory</module>+ <module>misc</module>+ <module>queries</module>+ <module>queryparser</module>+ <module>spatial</module>+ <module>spellchecker</module>+ <module>swing</module>+ <module>wordnet</module>+ <module>xml-query-parser</module>+ </modules>+ <build>+ <directory>build/lucene-contrib-aggregator</directory>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-deploy-plugin</artifactId>+ <configuration>+ <skip>true</skip>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/queries/pom.xml b/dev-tools/maven/lucene/contrib/queries/pom.xmlnew file mode 100644index 00000000000..4cef0b9fa3b--- /dev/null+++ b/dev-tools/maven/lucene/contrib/queries/pom.xml@@ -0,0 +1,78 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-queries</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Queries</name>+ <description>+ Queries - various query object exotica not in core+ </description>+ <properties>+ <module-directory>lucene/contrib/queries</module-directory>+ <build-directory>../../build/contrib/queries</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>jakarta-regexp</groupId>+ <artifactId>jakarta-regexp</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/queryparser/pom.xml b/dev-tools/maven/lucene/contrib/queryparser/pom.xmlnew file mode 100644index 00000000000..6f215fa962d--- /dev/null+++ b/dev-tools/maven/lucene/contrib/queryparser/pom.xml@@ -0,0 +1,79 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-queryparser</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Query Parser</name>+ <description>+ This is the Flexible Query Parser for apache lucene java+ </description>+ <properties>+ <module-directory>lucene/contrib/queryparser</module-directory>+ <build-directory>../../build/contrib/queryparser</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <resources>+ <resource>+ <directory>src/resources</directory>+ </resource>+ </resources>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/spatial/pom.xml b/dev-tools/maven/lucene/contrib/spatial/pom.xmlnew file mode 100644index 00000000000..6bac5c10a8f--- /dev/null+++ b/dev-tools/maven/lucene/contrib/spatial/pom.xml@@ -0,0 +1,77 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-spatial</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Spatial</name>+ <description>Spatial search package</description>+ <properties>+ <module-directory>lucene/contrib/spatial</module-directory>+ <build-directory>../../build/contrib/spatial</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-queries</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/spellchecker/pom.xml b/dev-tools/maven/lucene/contrib/spellchecker/pom.xmlnew file mode 100644index 00000000000..5be1474a734--- /dev/null+++ b/dev-tools/maven/lucene/contrib/spellchecker/pom.xml@@ -0,0 +1,77 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-spellchecker</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Spellchecker</name>+ <description>Spell Checker</description>+ <properties>+ <module-directory>lucene/contrib/spellchecker</module-directory>+ <build-directory>../../build/contrib/spellchecker</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/swing/pom.xml b/dev-tools/maven/lucene/contrib/swing/pom.xmlnew file mode 100644index 00000000000..1f2f4e5e424--- /dev/null+++ b/dev-tools/maven/lucene/contrib/swing/pom.xml@@ -0,0 +1,101 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-swing</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Swing</name>+ <description>Swing Models</description>+ <properties>+ <module-directory>lucene/contrib/swing</module-directory>+ <build-directory>../../build/contrib/swing</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>org.apache.lucene.swing.models.ListSearcherSimulator</mainClass>+ <name>ListSearchSimulator</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.swing.models.TableSearcherSimulator</mainClass>+ <name>TableSearchSimulator</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/wordnet/pom.xml b/dev-tools/maven/lucene/contrib/wordnet/pom.xmlnew file mode 100644index 00000000000..d55557322b6--- /dev/null+++ b/dev-tools/maven/lucene/contrib/wordnet/pom.xml@@ -0,0 +1,105 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-wordnet</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Wordnet</name>+ <description>WordNet</description>+ <properties>+ <module-directory>lucene/contrib/wordnet</module-directory>+ <build-directory>../../build/contrib/wordnet</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>org.apache.lucene.wordnet.SynExpand</mainClass>+ <name>SynExpand</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.wordnet.SynExpand</mainClass>+ <name>SynExpand</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.wordnet.Syns2Index</mainClass>+ <name>Syns2Index</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xml b/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xmlnew file mode 100644index 00000000000..f4c9aea1dd7--- /dev/null+++ b/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xml@@ -0,0 +1,82 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-xml-query-parser</artifactId>+ <packaging>jar</packaging>+ <name>Lucene XML Query Parser</name>+ <description>XML query parser</description>+ <properties>+ <module-directory>lucene/contrib/xml-query-parser</module-directory>+ <build-directory>../../build/contrib/xml-query-parser</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-queries</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>javax.servlet</groupId>+ <artifactId>servlet-api</artifactId>+ <scope>provided</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/lucene/pom.xml b/dev-tools/maven/lucene/pom.xmlnew file mode 100644index 00000000000..42b7c546157--- /dev/null+++ b/dev-tools/maven/lucene/pom.xml@@ -0,0 +1,41 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-solr-grandparent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <packaging>pom</packaging>+ <name>Lucene parent POM</name>+ <description>Lucene parent POM</description>+ <modules>+ <module>src</module>+ <module>contrib</module>+ </modules>+ <build>+ <directory>build/lucene-parent</directory>+ </build>+</project>diff --git a/dev-tools/maven/lucene/src/pom.xml b/dev-tools/maven/lucene/src/pom.xmlnew file mode 100644index 00000000000..43c83e76750--- /dev/null+++ b/dev-tools/maven/lucene/src/pom.xml@@ -0,0 +1,126 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Core</name>+ <description>Apache Lucene Java Core</description>+ <properties>+ <module-directory>lucene</module-directory>+ <build-directory>../build</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.apache.ant</groupId>+ <artifactId>ant</artifactId>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.apache.ant</groupId>+ <artifactId>ant-junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>java</sourceDirectory>+ <testSourceDirectory>test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-jar-plugin</artifactId>+ <executions>+ <execution>+ <goals>+ <goal>test-jar</goal>+ </goals>+ </execution>+ </executions>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <systemPropertyVariables>+ <lucene.version>${project.version}</lucene.version>+ </systemPropertyVariables>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>org.apache.lucene.index.CheckIndex</mainClass>+ <name>CheckIndex</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.index.IndexReader</mainClass>+ <name>IndexReader</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.store.LockStressTest</mainClass>+ <name>LockStressTest</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.store.LockVerifyServer</mainClass>+ <name>IndexReader</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.util.English</mainClass>+ <name>English</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/modules/analysis/common/pom.xml b/dev-tools/maven/modules/analysis/common/pom.xmlnew file mode 100644index 00000000000..8977178b874--- /dev/null+++ b/dev-tools/maven/modules/analysis/common/pom.xml@@ -0,0 +1,116 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../../lucene/pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Common Analyzers</name>+ <description>Additional Analyzers</description>+ <properties>+ <module-directory>modules/analysis/common</module-directory>+ <build-directory>../build/common</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <resources>+ <resource>+ <directory>src/resources</directory>+ </resource>+ </resources>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-jar-plugin</artifactId>+ <executions>+ <execution>+ <goals>+ <goal>test-jar</goal>+ </goals>+ </execution>+ </executions>+ </plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>org.apache.lucene.analysis.charfilter.HtmlStripCharFilter</mainClass>+ <name>HtmlStripCharFilter</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.analysis.en.PorterStemmer</mainClass>+ <name>EnglishPorterStemmer</name>+ </program>+ <program>+ <mainClass>org.tartarus.snowball.TestApp</mainClass>+ <name>SnowballTestApp</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/modules/analysis/icu/pom.xml b/dev-tools/maven/modules/analysis/icu/pom.xmlnew file mode 100644index 00000000000..1ce2183627e--- /dev/null+++ b/dev-tools/maven/modules/analysis/icu/pom.xml@@ -0,0 +1,96 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../../lucene/pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-icu</artifactId>+ <packaging>jar</packaging>+ <name>Lucene ICU Analysis Components</name>+ <description>+ Provides integration with ICU (International Components for Unicode) for+ stronger Unicode and internationalization support.+ </description>+ <properties>+ <module-directory>modules/analysis/icu</module-directory>+ <build-directory>../build/icu</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>com.ibm.icu</groupId>+ <artifactId>icu4j</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <resources>+ <resource>+ <directory>src/resources</directory>+ </resource>+ </resources>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/modules/analysis/phonetic/pom.xml b/dev-tools/maven/modules/analysis/phonetic/pom.xmlnew file mode 100644index 00000000000..665752e5300--- /dev/null+++ b/dev-tools/maven/modules/analysis/phonetic/pom.xml@@ -0,0 +1,90 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../../lucene/pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-phonetic</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Phonetic Filters</name>+ <description>+ Provides phonetic encoding via Commons Codec.+ </description>+ <properties>+ <module-directory>modules/analysis/phonetic</module-directory>+ <build-directory>../build/phonetic</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>commons-codec</groupId>+ <artifactId>commons-codec</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/modules/analysis/pom.xml b/dev-tools/maven/modules/analysis/pom.xmlnew file mode 100644index 00000000000..7829ed61b77--- /dev/null+++ b/dev-tools/maven/modules/analysis/pom.xml@@ -0,0 +1,52 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../lucene/pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analysis-modules-aggregator</artifactId>+ <name>Lucene Analysis Modules aggregator POM</name>+ <packaging>pom</packaging>+ <modules>+ <module>common</module>+ <module>icu</module>+ <module>phonetic</module>+ <module>smartcn</module>+ <module>stempel</module>+ </modules>+ <build>+ <directory>build/lucene-analysis-modules-aggregator</directory>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-deploy-plugin</artifactId>+ <configuration>+ <skip>true</skip>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/modules/analysis/smartcn/pom.xml b/dev-tools/maven/modules/analysis/smartcn/pom.xmlnew file mode 100644index 00000000000..10a1a013dea--- /dev/null+++ b/dev-tools/maven/modules/analysis/smartcn/pom.xml@@ -0,0 +1,82 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../../lucene/pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-smartcn</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Smart Chinese Analyzer</name>+ <description>Smart Chinese Analyzer</description>+ <properties>+ <module-directory>modules/analysis/smartcn</module-directory>+ <build-directory>../build/smartcn</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <resources>+ <resource>+ <directory>src/resources</directory>+ </resource>+ </resources>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/modules/analysis/stempel/pom.xml b/dev-tools/maven/modules/analysis/stempel/pom.xmlnew file mode 100644index 00000000000..19b6907e127--- /dev/null+++ b/dev-tools/maven/modules/analysis/stempel/pom.xml@@ -0,0 +1,82 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../../lucene/pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-stempel</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Stempel Analyzer</name>+ <description>Stempel Analyzer</description>+ <properties>+ <module-directory>modules/analysis/stempel</module-directory>+ <build-directory>../build/stempel</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <resources>+ <resource>+ <directory>src/resources</directory>+ </resource>+ </resources>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ </build>+</project>diff --git a/dev-tools/maven/modules/benchmark/pom.xml b/dev-tools/maven/modules/benchmark/pom.xmlnew file mode 100755index 00000000000..e4b35e338c4--- /dev/null+++ b/dev-tools/maven/modules/benchmark/pom.xml@@ -0,0 +1,157 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../lucene/pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-benchmark</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Benchmark</name>+ <description>Lucene Benchmarking Module</description>+ <properties>+ <module-directory>modules/benchmark</module-directory>+ <build-directory>build</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-demo</artifactId>+ <version>${project.version}</version>+ <classifier>classes</classifier>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-highlighter</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-memory</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>commons-beanutils</groupId>+ <artifactId>commons-beanutils</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-collections</groupId>+ <artifactId>commons-collections</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.commons</groupId>+ <artifactId>commons-compress</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-digester</groupId>+ <artifactId>commons-digester</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-logging</groupId>+ <artifactId>commons-logging</artifactId>+ </dependency>+ <dependency>+ <groupId>xerces</groupId>+ <artifactId>xercesImpl</artifactId>+ </dependency>+ <dependency>+ <groupId>xml-apis</groupId>+ <artifactId>xml-apis</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes/java</outputDirectory>+ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>org.apache.lucene.benchmark.byTask.Benchmark</mainClass>+ <name>Benchmark</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.benchmark.quality.trec.QueryDriver</mainClass>+ <name>QueryDriver</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.benchmark.quality.utils.QualityQueriesFinder</mainClass>+ <name>QualityQueriesFinder</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.benchmark.utils.ExtractReuters</mainClass>+ <name>ExtractReuters</name>+ </program>+ <program>+ <mainClass>org.apache.lucene.benchmark.utils.ExtractWikipedia</mainClass>+ <name>ExtractWikipedia</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/modules/pom.xml b/dev-tools/maven/modules/pom.xmlnew file mode 100644index 00000000000..1b60080c172--- /dev/null+++ b/dev-tools/maven/modules/pom.xml@@ -0,0 +1,49 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../lucene/pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-modules-aggregator</artifactId>+ <name>Lucene Modules aggregator POM</name>+ <packaging>pom</packaging>+ <modules>+ <module>analysis</module>+ <module>benchmark</module>+ </modules>+ <build>+ <directory>build/lucene-modules-aggregator</directory>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-deploy-plugin</artifactId>+ <configuration>+ <skip>true</skip>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/pom.xml b/dev-tools/maven/pom.xmlnew file mode 100644index 00000000000..c0c5ae7d812--- /dev/null+++ b/dev-tools/maven/pom.xml@@ -0,0 +1,690 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache</groupId>+ <artifactId>apache</artifactId>+ <version>8</version>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-solr-grandparent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <packaging>pom</packaging>+ <name>Grandparent POM for Apache Lucene Java and Apache Solr</name>+ <description>Parent POM for Apache Lucene Java and Apache Solr</description>+ <url>http://lucene.apache.org/java</url>+ <modules>+ <module>lucene</module>+ <module>modules</module>+ <module>solr</module>+ </modules>+ <properties>+ <base.specification.version>4.0.0</base.specification.version>+ <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>+ <java.compat.version>1.5</java.compat.version>+ </properties>+ <issueManagement>+ <system>JIRA</system>+ <url>http://issues.apache.org/jira/browse/LUCENE</url>+ </issueManagement>+ <ciManagement>+ <system>Hudson</system>+ <url>http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/</url>+ </ciManagement>+ <mailingLists>+ <mailingList>+ <name>General List</name>+ <subscribe>[email protected]</subscribe>+ <unsubscribe>[email protected]</unsubscribe>+ <archive>+ http://mail-archives.apache.org/mod_mbox/lucene-general/+ </archive>+ </mailingList>+ <mailingList>+ <name>Java User List</name>+ <subscribe>[email protected]</subscribe>+ <unsubscribe>[email protected]</unsubscribe>+ <archive>+ http://mail-archives.apache.org/mod_mbox/lucene-java-user/+ </archive>+ </mailingList>+ <mailingList>+ <name>Java Developer List</name>+ <subscribe>[email protected]</subscribe>+ <unsubscribe>[email protected]</unsubscribe>+ <archive>http://mail-archives.apache.org/mod_mbox/lucene-dev/</archive>+ </mailingList>+ <mailingList>+ <name>Java Commits List</name>+ <subscribe>[email protected]</subscribe>+ <unsubscribe>[email protected]</unsubscribe>+ <archive>+ http://mail-archives.apache.org/mod_mbox/lucene-java-commits/+ </archive>+ </mailingList>+ </mailingLists>+ <inceptionYear>2000</inceptionYear>+ <scm>+ <connection>+ scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}+ </connection>+ <developerConnection>+ scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}+ </developerConnection>+ <url>+ http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}+ </url>+ </scm>+ <licenses>+ <license>+ <name>Apache 2</name>+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>+ </license>+ </licenses>+ <repositories>+ <repository>+ <id>carrot2.org</id>+ <name>Carrot2 Maven2 repository</name>+ <url>http://download.carrot2.org/maven2/</url>+ <snapshots>+ <updatePolicy>never</updatePolicy>+ </snapshots>+ </repository>+ <repository>+ <id>apache.snapshots</id>+ <name>Apache Snapshot Repository</name>+ <url>http://repository.apache.org/snapshots</url>+ <releases>+ <enabled>false</enabled>+ </releases>+ <snapshots>+ <updatePolicy>never</updatePolicy>+ </snapshots>+ </repository>+ </repositories>+ <dependencyManagement>+ <dependencies>+ <dependency>+ <groupId>com.ibm.icu</groupId>+ <artifactId>icu4j</artifactId>+ <version>4.6</version>+ </dependency>+ <dependency>+ <groupId>com.sleepycat</groupId>+ <artifactId>berkeleydb</artifactId>+ <version>4.7.25</version>+ </dependency>+ <dependency>+ <groupId>com.sleepycat</groupId>+ <artifactId>berkeleydb-je</artifactId>+ <version>3.3.93</version>+ </dependency>+ <dependency>+ <groupId>commons-beanutils</groupId>+ <artifactId>commons-beanutils</artifactId>+ <version>1.7.0</version>+ </dependency>+ <dependency>+ <groupId>commons-codec</groupId>+ <artifactId>commons-codec</artifactId>+ <version>1.4</version>+ </dependency>+ <dependency>+ <groupId>commons-collections</groupId>+ <artifactId>commons-collections</artifactId>+ <version>3.2.1</version>+ </dependency>+ <dependency>+ <groupId>commons-digester</groupId>+ <artifactId>commons-digester</artifactId>+ <version>1.7</version>+ </dependency>+ <dependency>+ <groupId>commons-fileupload</groupId>+ <artifactId>commons-fileupload</artifactId>+ <version>1.2.1</version>+ </dependency>+ <dependency>+ <groupId>commons-io</groupId>+ <artifactId>commons-io</artifactId>+ <version>1.4</version>+ </dependency>+ <dependency>+ <groupId>commons-httpclient</groupId>+ <artifactId>commons-httpclient</artifactId>+ <version>3.1</version>+ </dependency>+ <dependency>+ <groupId>commons-lang</groupId>+ <artifactId>commons-lang</artifactId>+ <version>2.4</version>+ </dependency>+ <dependency>+ <groupId>commons-logging</groupId>+ <artifactId>commons-logging</artifactId>+ <version>1.1.1</version>+ </dependency>+ <dependency>+ <groupId>jakarta-regexp</groupId>+ <artifactId>jakarta-regexp</artifactId>+ <version>1.4</version>+ </dependency>+ <dependency>+ <groupId>javax.activation</groupId>+ <artifactId>activation</artifactId>+ <version>1.1</version>+ </dependency>+ <dependency>+ <groupId>javax.mail</groupId>+ <artifactId>mail</artifactId>+ <version>1.4.1</version>+ </dependency>+ <dependency>+ <groupId>jline</groupId>+ <artifactId>jline</artifactId>+ <version>0.9.1</version>+ </dependency>+ <dependency>+ <groupId>jtidy</groupId>+ <artifactId>jtidy</artifactId>+ <version>4aug2000r7-dev</version>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <version>4.7</version>+ </dependency>+ <dependency>+ <groupId>org.apache.ant</groupId>+ <artifactId>ant</artifactId>+ <version>1.7.1</version>+ </dependency>+ <dependency>+ <groupId>org.apache.ant</groupId>+ <artifactId>ant-junit</artifactId>+ <version>1.7.1</version>+ </dependency>+ <dependency>+ <groupId>org.apache.commons</groupId>+ <artifactId>commons-compress</artifactId>+ <version>1.1</version>+ </dependency>+ <dependency>+ <groupId>org.apache.geronimo.specs</groupId>+ <artifactId>geronimo-stax-api_1.0_spec</artifactId>+ <version>1.0.1</version>+ </dependency>+ <dependency>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-commons-csv</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-noggit</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.tika</groupId>+ <artifactId>tika-core</artifactId>+ <version>0.8</version>+ </dependency>+ <dependency>+ <groupId>org.apache.tika</groupId>+ <artifactId>tika-parsers</artifactId>+ <version>0.8</version>+ </dependency>+ <dependency>+ <groupId>org.apache.velocity</groupId>+ <artifactId>velocity</artifactId>+ <version>1.6.4</version>+ </dependency>+ <dependency>+ <groupId>org.apache.velocity</groupId>+ <artifactId>velocity-tools</artifactId>+ <version>2.0</version>+ </dependency>+ <dependency>+ <groupId>org.apache.zookeeper</groupId>+ <artifactId>zookeeper</artifactId>+ <version>3.3.1</version>+ </dependency>+ <dependency>+ <groupId>org.carrot2</groupId>+ <artifactId>carrot2-core</artifactId>+ <version>3.4.2</version>+ </dependency>+ <dependency>+ <groupId>org.codehaus.woodstox</groupId>+ <artifactId>wstx-asl</artifactId>+ <version>3.2.7</version>+ </dependency>+ <dependency>+ <groupId>org.easymock</groupId>+ <artifactId>easymock</artifactId>+ <version>2.2</version>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty</artifactId>+ <version>6.1.26</version>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty-util</artifactId>+ <version>6.1.26</version>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jsp-2.1-glassfish</artifactId>+ <version>2.1.v20091210</version>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jsp-2.1-jetty</artifactId>+ <version>6.1.26</version>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jsp-api-2.1-glassfish</artifactId>+ <version>2.1.v20091210</version>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>jcl-over-slf4j</artifactId>+ <version>1.5.5</version>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>log4j-over-slf4j</artifactId>+ <version>1.5.5</version>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>slf4j-api</artifactId>+ <version>1.5.5</version>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>slf4j-jdk14</artifactId>+ <version>1.5.5</version>+ </dependency>+ <dependency>+ <groupId>xerces</groupId>+ <artifactId>xercesImpl</artifactId>+ <version>2.10.0</version>+ </dependency>+ <dependency>+ <groupId>xml-apis</groupId>+ <artifactId>xml-apis</artifactId>+ <version>2.10.0</version>+ </dependency>+ <dependency>+ <groupId>javax.servlet</groupId>+ <artifactId>servlet-api</artifactId>+ <version>2.4</version>+ </dependency>+ </dependencies>+ </dependencyManagement>+ <build>+ <directory>lucene/build/lucene-parent</directory>+ <pluginManagement>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-antrun-plugin</artifactId>+ <version>1.6</version>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-clean-plugin</artifactId>+ <version>2.4.1</version>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-compiler-plugin</artifactId>+ <version>2.3.2</version>+ <configuration>+ <source>${java.compat.version}</source>+ <target>${java.compat.version}</target>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-deploy-plugin</artifactId>+ <version>2.5</version>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-enforcer-plugin</artifactId>+ <version>1.0</version>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-install-plugin</artifactId>+ <version>2.3.1</version>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-jar-plugin</artifactId>+ <version>2.3.1</version>+ <configuration>+ <archive>+ <!-- This section should be *exactly* the same under -->+ <!-- maven-jar-plugin and maven-war-plugin. -->+ <!-- If you make changes here, make the same changes -->+ <!-- in the other location as well. -->+ <manifestEntries>+ <Extension-Name>${project.groupId}</Extension-Name>+ <Implementation-Title>${project.groupId}</Implementation-Title>+ <Specification-Title>${project.name}</Specification-Title>+ <!-- spec version must match "digit+{.digit+}*" -->+ <Specification-Version>${base.specification.version}.${now.version}</Specification-Version>+ <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>+ <!-- impl version can be any string -->+ <Implementation-Version>${project.version} ${svn.revision} - ${user.name} - ${now.timestamp}</Implementation-Version>+ <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>+ <X-Compile-Source-JDK>${java.compat.version}</X-Compile-Source-JDK>+ <X-Compile-Target-JDK>${java.compat.version}</X-Compile-Target-JDK>+ </manifestEntries>+ </archive>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-resources-plugin</artifactId>+ <version>2.4.3</version>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <version>2.7.1</version>+ <configuration>+ <reportFormat>plain</reportFormat>+ <workingDirectory>${project.build.testOutputDirectory}</workingDirectory>+ <systemPropertyVariables>+ <tempDir>temp</tempDir>+ <jetty.testMode>1</jetty.testMode>+ <tests.codec>${tests.codec}</tests.codec>+ <tests.directory>${tests.directory}</tests.directory>+ <tests.iter>${tests.iter}</tests.iter>+ <tests.locale>${tests.locale}</tests.locale>+ <tests.luceneMatchVersion>${tests.luceneMatchVersion}</tests.luceneMatchVersion>+ <tests.multiplier>${tests.multiplier}</tests.multiplier>+ <tests.nightly>${tests.nightly}</tests.nightly>+ <tests.seed>${tests.seed}</tests.seed>+ <tests.timezone>${tests.timezone}</tests.timezone>+ </systemPropertyVariables>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-war-plugin</artifactId>+ <version>2.1.1</version>+ <configuration>+ <archive>+ <!-- This section should be *exactly* the same under -->+ <!-- maven-jar-plugin and maven-war-plugin. -->+ <!-- If you make changes here, make the same changes -->+ <!-- in the other location as well. -->+ <manifestEntries>+ <Extension-Name>${project.groupId}</Extension-Name>+ <Implementation-Title>${project.groupId}</Implementation-Title>+ <Specification-Title>${project.name}</Specification-Title>+ <!-- spec version must match "digit+{.digit+}*" -->+ <Specification-Version>${base.specification.version}.${now.version}</Specification-Version>+ <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>+ <!-- impl version can be any string -->+ <Implementation-Version>${project.version} ${svn.revision} - ${user.name} - ${now.timestamp}</Implementation-Version>+ <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>+ <X-Compile-Source-JDK>${java.compat.version}</X-Compile-Source-JDK>+ <X-Compile-Target-JDK>${java.compat.version}</X-Compile-Target-JDK>+ </manifestEntries>+ </archive>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <version>1.1</version>+ </plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>build-helper-maven-plugin</artifactId>+ <version>1.5</version>+ </plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>buildnumber-maven-plugin</artifactId>+ <version>1.0-beta-4</version>+ </plugin>+ <plugin>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>maven-jetty-plugin</artifactId>+ <version>6.1.26</version>+ </plugin>+ <plugin>+ <groupId>org.codehaus.gmaven</groupId>+ <artifactId>gmaven-plugin</artifactId>+ <version>1.3</version>+ </plugin>+ </plugins>+ </pluginManagement>+ <plugins>+ <plugin>+ <groupId>org.codehaus.gmaven</groupId>+ <artifactId>gmaven-plugin</artifactId>+ <executions>+ <execution>+ <id>generate-timestamps</id>+ <phase>validate</phase>+ <goals>+ <goal>execute</goal>+ </goals>+ <configuration>+ <source>+ project.properties['now.timestamp'] = "${maven.build.timestamp}"+ project.properties['now.version'] = ("${maven.build.timestamp}" =~ /[- :]/).replaceAll(".")+ project.properties['now.year'] = "${maven.build.timestamp}".substring(0, 4)+ </source>+ </configuration>+ </execution>+ </executions>+ </plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>buildnumber-maven-plugin</artifactId>+ <executions>+ <execution>+ <phase>validate</phase>+ <goals>+ <goal>create</goal>+ </goals>+ </execution>+ </executions>+ <configuration>+ <doCheck>false</doCheck>+ <doUpdate>false</doUpdate>+ <getRevisionOnlyOnce>true</getRevisionOnlyOnce>+ <buildNumberPropertyName>svn.revision</buildNumberPropertyName>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-enforcer-plugin</artifactId>+ <executions>+ <execution>+ <id>enforce-java-compat-version-and-maven-2.2.1</id>+ <goals>+ <goal>enforce</goal>+ </goals>+ <configuration>+ <rules>+ <requireJavaVersion>+ <message>Java ${java.compat.version}+ is required.</message>+ <version>[${java.compat.version},)</version>+ </requireJavaVersion>+ <requireMavenVersion>+ <message>Maven 2.2.1+ is required.</message>+ <version>[2.2.1,)</version>+ </requireMavenVersion>+ <requirePluginVersions/>+ </rules>+ </configuration>+ </execution>+ </executions>+ </plugin>+ </plugins>+ </build>+ <profiles>+ <profile>+ <id>bootstrap</id>+ <build>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-antrun-plugin</artifactId>+ <executions>+ <execution>+ <id>get-jars-and-poms</id>+ <phase>install</phase>+ <goals>+ <goal>run</goal>+ </goals>+ <configuration>+ <target>+ <ant dir="lucene/contrib/db/bdb" target="get-db-jar"/>+ <ant dir="lucene/contrib/db/bdb-je" target="get-je-jar"/>+ </target>+ </configuration>+ </execution>+ </executions>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-install-plugin</artifactId>+ <executions>+ <execution>+ <id>install-icu4j</id>+ <phase>install</phase>+ <goals>+ <goal>install-file</goal>+ </goals>+ <configuration>+ <groupId>com.ibm.icu</groupId>+ <artifactId>icu4j</artifactId>+ <version>4.6</version>+ <packaging>jar</packaging>+ <file>modules/analysis/icu/lib/icu4j-4_6.jar</file>+ </configuration>+ </execution>+ <execution>+ <id>install-xercesImpl</id>+ <phase>install</phase>+ <goals>+ <goal>install-file</goal>+ </goals>+ <configuration>+ <groupId>xerces</groupId>+ <artifactId>xercesImpl</artifactId>+ <version>2.10.0</version>+ <packaging>jar</packaging>+ <file>modules/benchmark/lib/xercesImpl-2.10.0.jar</file>+ </configuration>+ </execution>+ <execution>+ <id>install-xml-apis</id>+ <phase>install</phase>+ <goals>+ <goal>install-file</goal>+ </goals>+ <configuration>+ <groupId>xml-apis</groupId>+ <artifactId>xml-apis</artifactId>+ <version>2.10.0</version>+ <packaging>jar</packaging>+ <file>modules/benchmark/lib/xml-apis-2.10.0.jar</file>+ </configuration>+ </execution>+ <execution>+ <id>install-berkeleydb</id>+ <phase>install</phase>+ <goals>+ <goal>install-file</goal>+ </goals>+ <configuration>+ <groupId>com.sleepycat</groupId>+ <artifactId>berkeleydb</artifactId>+ <version>4.7.25</version>+ <packaging>jar</packaging>+ <file>lucene/contrib/db/bdb/lib/db-4.7.25.jar</file>+ </configuration>+ </execution>+ <execution>+ <id>install-berkeleydb-je</id>+ <phase>install</phase>+ <goals>+ <goal>install-file</goal>+ </goals>+ <configuration>+ <groupId>com.sleepycat</groupId>+ <artifactId>berkeleydb-je</artifactId>+ <version>3.3.93</version>+ <packaging>jar</packaging>+ <file>lucene/contrib/db/bdb-je/lib/je-3.3.93.jar</file>+ </configuration>+ </execution>+ <execution>+ <id>install-solr-commons-csv</id>+ <phase>install</phase>+ <goals>+ <goal>install-file</goal>+ </goals>+ <configuration>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-commons-csv</artifactId>+ <version>${project.version}</version>+ <packaging>jar</packaging>+ <file>solr/lib/commons-csv-1.0-SNAPSHOT-r966014.jar</file>+ </configuration>+ </execution>+ <execution>+ <id>install-solr-noggit</id>+ <phase>install</phase>+ <goals>+ <goal>install-file</goal>+ </goals>+ <configuration>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-noggit</artifactId>+ <version>${project.version}</version>+ <packaging>jar</packaging>+ <file>solr/lib/apache-solr-noggit-r944541.jar</file>+ </configuration>+ </execution>+ </executions>+ </plugin>+ </plugins>+ </build>+ </profile>+ </profiles>+</project>diff --git a/dev-tools/maven/solr/contrib/analysis-extras/pom.xml b/dev-tools/maven/solr/contrib/analysis-extras/pom.xmlnew file mode 100644index 00000000000..ce67bbaf22e--- /dev/null+++ b/dev-tools/maven/solr/contrib/analysis-extras/pom.xml@@ -0,0 +1,116 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-analysis-extras</artifactId>+ <packaging>jar</packaging>+ <name>Apache Solr Analysis Extras</name>+ <description>Apache Solr Analysis Extras</description>+ <properties>+ <module-directory>solr/contrib/analysis-extras</module-directory>+ <build-directory>build</build-directory>+ <tests.luceneMatchVersion>4.0</tests.luceneMatchVersion>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-icu</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-smartcn</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-stempel</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes</outputDirectory>+ <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>test-files</directory>+ </testResource>+ <testResource>+ <directory>../../src/test-files</directory>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <systemPropertyVariables>+ <java.util.logging.config.file>../../../../testlogging.properties</java.util.logging.config.file>+ </systemPropertyVariables>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/solr/contrib/clustering/pom.xml b/dev-tools/maven/solr/contrib/clustering/pom.xmlnew file mode 100644index 00000000000..81266fd9cda--- /dev/null+++ b/dev-tools/maven/solr/contrib/clustering/pom.xml@@ -0,0 +1,103 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-clustering</artifactId>+ <packaging>jar</packaging>+ <name>Apache Solr Clustering</name>+ <description>Apache Solr Clustering</description>+ <properties>+ <module-directory>solr/contrib/clustering</module-directory>+ <build-directory>build</build-directory>+ <tests.luceneMatchVersion>4.0</tests.luceneMatchVersion>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-solrj</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.carrot2</groupId>+ <artifactId>carrot2-core</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes</outputDirectory>+ <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>+ <testResources>+ <testResource>+ <directory>src/test/resources</directory>+ </testResource>+ <testResource>+ <directory>../../src/test-files</directory>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <systemPropertyVariables>+ <java.util.logging.config.file>../../../../testlogging.properties</java.util.logging.config.file>+ </systemPropertyVariables>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/solr/contrib/dataimporthandler/pom.xml b/dev-tools/maven/solr/contrib/dataimporthandler/pom.xmlnew file mode 100644index 00000000000..a90b1dec722--- /dev/null+++ b/dev-tools/maven/solr/contrib/dataimporthandler/pom.xml@@ -0,0 +1,50 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-dataimporthandler-aggregator</artifactId>+ <packaging>pom</packaging>+ <name>Apache Solr DataImportHandler aggregator POM</name>+ <description>Apache Solr DataImportHandler aggregator POM</description>+ <modules>+ <module>src</module>+ <module>src/extras</module>+ </modules>+ <build>+ <directory>target/solr-dataimporthandler-aggregator</directory>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-deploy-plugin</artifactId>+ <configuration>+ <skip>true</skip>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/solr/contrib/dataimporthandler/src/extras/pom.xml b/dev-tools/maven/solr/contrib/dataimporthandler/src/extras/pom.xmlnew file mode 100644index 00000000000..bae3817983f--- /dev/null+++ b/dev-tools/maven/solr/contrib/dataimporthandler/src/extras/pom.xml@@ -0,0 +1,132 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-dataimporthandler-extras</artifactId>+ <packaging>jar</packaging>+ <name>Apache Solr DataImportHandler Extras</name>+ <description>Apache Solr DataImportHandler Extras</description>+ <properties>+ <module-directory>solr/contrib/dataimporthandler/src/extras</module-directory>+ <build-directory>../../target/extras</build-directory>+ <tests.luceneMatchVersion>4.0</tests.luceneMatchVersion>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-dataimporthandler</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-dataimporthandler</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-solrj</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>commons-io</groupId>+ <artifactId>commons-io</artifactId>+ </dependency>+ <dependency>+ <groupId>javax.activation</groupId>+ <artifactId>activation</artifactId>+ </dependency>+ <dependency>+ <groupId>javax.mail</groupId>+ <artifactId>mail</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.tika</groupId>+ <artifactId>tika-parsers</artifactId>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>slf4j-api</artifactId>+ </dependency>+ <dependency>+ <groupId>xerces</groupId>+ <artifactId>xercesImpl</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/extras/classes</outputDirectory>+ <testOutputDirectory>${build-directory}/extras/test-classes</testOutputDirectory>+ <sourceDirectory>main/java</sourceDirectory>+ <testSourceDirectory>test/java</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>test/resources</directory>+ </testResource>+ <testResource>+ <directory>../../../../src/test-files</directory>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <systemPropertyVariables>+ <java.util.logging.config.file>../../../../../../testlogging.properties</java.util.logging.config.file>+ </systemPropertyVariables>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/solr/contrib/dataimporthandler/src/pom.xml b/dev-tools/maven/solr/contrib/dataimporthandler/src/pom.xmlnew file mode 100644index 00000000000..0745d2e5417--- /dev/null+++ b/dev-tools/maven/solr/contrib/dataimporthandler/src/pom.xml@@ -0,0 +1,129 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-dataimporthandler</artifactId>+ <packaging>jar</packaging>+ <name>Apache Solr DataImportHandler</name>+ <description>Apache Solr DataImportHandler</description>+ <properties>+ <module-directory>solr/contrib/dataimporthandler</module-directory>+ <build-directory>../target</build-directory>+ <tests.luceneMatchVersion>4.0</tests.luceneMatchVersion>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-solrj</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.apache.geronimo.specs</groupId>+ <artifactId>geronimo-stax-api_1.0_spec</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-io</groupId>+ <artifactId>commons-io</artifactId>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>slf4j-api</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.easymock</groupId>+ <artifactId>easymock</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes</outputDirectory>+ <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>+ <sourceDirectory>main/java</sourceDirectory>+ <testSourceDirectory>test/java</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>test/resources</directory>+ </testResource>+ <testResource>+ <directory>../../../src/test-files</directory>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-jar-plugin</artifactId>+ <executions>+ <execution>+ <goals>+ <goal>test-jar</goal>+ </goals>+ </execution>+ </executions>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <systemPropertyVariables>+ <java.util.logging.config.file>../../../../../testlogging.properties</java.util.logging.config.file>+ </systemPropertyVariables>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/solr/contrib/extraction/pom.xml b/dev-tools/maven/solr/contrib/extraction/pom.xmlnew file mode 100644index 00000000000..75d1f2316c9--- /dev/null+++ b/dev-tools/maven/solr/contrib/extraction/pom.xml@@ -0,0 +1,114 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-cell</artifactId>+ <packaging>jar</packaging>+ <name>Apache Solr Content Extraction Library</name>+ <description>+ Apache Solr Content Extraction Library integrates Apache Tika+ content extraction framework into Solr+ </description>+ <properties>+ <module-directory>solr/contrib/extraction</module-directory>+ <build-directory>build</build-directory>+ <tests.luceneMatchVersion>4.0</tests.luceneMatchVersion>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-solrj</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>com.ibm.icu</groupId>+ <artifactId>icu4j</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.tika</groupId>+ <artifactId>tika-parsers</artifactId>+ </dependency>+ <dependency>+ <groupId>xerces</groupId>+ <artifactId>xercesImpl</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/classes</outputDirectory>+ <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>+ <testResources>+ <testResource>+ <directory>src/test/resources</directory>+ </testResource>+ <testResource>+ <directory>../../src/test-files</directory>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <systemPropertyVariables>+ <java.util.logging.config.file>../../../../testlogging.properties</java.util.logging.config.file>+ </systemPropertyVariables>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/solr/contrib/pom.xml b/dev-tools/maven/solr/contrib/pom.xmlnew file mode 100644index 00000000000..fff3350f474--- /dev/null+++ b/dev-tools/maven/solr/contrib/pom.xml@@ -0,0 +1,51 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-contrib-aggregator</artifactId>+ <name>Apache Solr Contrib aggregator POM</name>+ <packaging>pom</packaging>+ <modules>+ <module>analysis-extras</module>+ <module>clustering</module>+ <module>dataimporthandler</module>+ <module>extraction</module>+ </modules>+ <build>+ <directory>../build/solr-contrib-aggregator</directory>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-deploy-plugin</artifactId>+ <configuration>+ <skip>true</skip>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/solr/pom.xml b/dev-tools/maven/solr/pom.xmlnew file mode 100644index 00000000000..465af72a1a0--- /dev/null+++ b/dev-tools/maven/solr/pom.xml@@ -0,0 +1,94 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-solr-grandparent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <packaging>pom</packaging>+ <name>Apache Solr parent POM</name>+ <description>Apache Solr parent POM</description>+ <modules>+ <module>src</module>+ <module>src/solrj</module>+ <module>src/webapp</module>+ <module>contrib</module>+ </modules>+ <properties>+ <java.compat.version>1.6</java.compat.version>+ </properties>+ <issueManagement>+ <system>JIRA</system>+ <url>http://issues.apache.org/jira/browse/SOLR</url>+ </issueManagement>+ <ciManagement>+ <system>Hudson</system>+ <url>+ http://lucene.zones.apache.org:8080/hudson/job/Solr-Nightly/+ </url>+ </ciManagement>+ <mailingLists>+ <mailingList>+ <name>Solr User List</name>+ <subscribe>[email protected]</subscribe>+ <unsubscribe>[email protected]</unsubscribe>+ <archive>+ http://mail-archives.apache.org/mod_mbox/solr-user/+ </archive>+ </mailingList>+ <mailingList>+ <name>Java Developer List</name>+ <subscribe>[email protected]</subscribe>+ <unsubscribe>[email protected]</unsubscribe>+ <archive>http://mail-archives.apache.org/mod_mbox/lucene-dev/</archive>+ </mailingList>+ <mailingList>+ <name>Java Commits List</name>+ <subscribe>[email protected]</subscribe>+ <unsubscribe>[email protected]</unsubscribe>+ <archive>+ http://mail-archives.apache.org/mod_mbox/lucene-java-commits/+ </archive>+ </mailingList>+ </mailingLists>+ <inceptionYear>2006</inceptionYear>+ <build>+ <directory>build/solr-parent</directory>+ <pluginManagement>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-javadoc-plugin</artifactId>+ <configuration>+ <overview/>+ <windowtitle>${project.name} ${project.version} API (${now.version})</windowtitle>+ <doctitle>${project.name} ${project.version} API (${now.version})</doctitle>+ </configuration>+ </plugin>+ </plugins>+ </pluginManagement>+ </build>+</project>diff --git a/dev-tools/maven/solr/src/pom.xml b/dev-tools/maven/solr/src/pom.xmlnew file mode 100644index 00000000000..0014b38bfd1--- /dev/null+++ b/dev-tools/maven/solr/src/pom.xml@@ -0,0 +1,252 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-core</artifactId>+ <packaging>jar</packaging>+ <name>Apache Solr Core</name>+ <description>Apache Solr Core</description>+ <properties>+ <module-directory>solr</module-directory>+ <build-directory>../build</build-directory>+ <tests.luceneMatchVersion>4.0</tests.luceneMatchVersion>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-solrj</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-noggit</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-phonetic</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-highlighter</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-memory</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-misc</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-queries</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-spatial</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-spellchecker</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-commons-csv</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.geronimo.specs</groupId>+ <artifactId>geronimo-stax-api_1.0_spec</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-codec</groupId>+ <artifactId>commons-codec</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-fileupload</groupId>+ <artifactId>commons-fileupload</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-httpclient</groupId>+ <artifactId>commons-httpclient</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-io</groupId>+ <artifactId>commons-io</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-lang</groupId>+ <artifactId>commons-lang</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.velocity</groupId>+ <artifactId>velocity</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.velocity</groupId>+ <artifactId>velocity-tools</artifactId>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty</artifactId>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty-util</artifactId>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jsp-2.1-jetty</artifactId>+ <scope>provided</scope>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>slf4j-api</artifactId>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>slf4j-jdk14</artifactId>+ </dependency>+ <dependency>+ <groupId>javax.servlet</groupId>+ <artifactId>servlet-api</artifactId>+ <scope>provided</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.easymock</groupId>+ <artifactId>easymock</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}/solr</outputDirectory>+ <testOutputDirectory>${build-directory}/tests</testOutputDirectory>+ <sourceDirectory>java</sourceDirectory>+ <testSourceDirectory>test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>test-files</directory>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>build-helper-maven-plugin</artifactId>+ <executions>+ <execution>+ <id>add-source</id>+ <phase>generate-sources</phase>+ <goals>+ <goal>add-source</goal>+ </goals>+ <configuration>+ <sources>+ <source>webapp/src</source>+ </sources>+ </configuration>+ </execution>+ </executions>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-jar-plugin</artifactId>+ <executions>+ <execution>+ <goals>+ <goal>test-jar</goal>+ </goals>+ </execution>+ </executions>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <systemPropertyVariables>+ <java.util.logging.config.file>../../../testlogging.properties</java.util.logging.config.file>+ </systemPropertyVariables>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>appassembler-maven-plugin</artifactId>+ <configuration>+ <extraJvmArguments>-Xmx128M</extraJvmArguments>+ <repositoryLayout>flat</repositoryLayout>+ <platforms>+ <platform>windows</platform>+ <platform>unix</platform>+ </platforms>+ <programs>+ <program>+ <mainClass>org.apache.solr.client.solrj.embedded.JettySolrRunner</mainClass>+ <name>JettySolrRunner</name>+ </program>+ <program>+ <mainClass>org.apache.solr.util.BitSetPerf</mainClass>+ <name>BitSetPerf</name>+ <extraJvmArguments>-Xms128m -Xbatch</extraJvmArguments>+ </program>+ <program>+ <mainClass>org.apache.solr.util.SimplePostTool</mainClass>+ <name>SimplePostTool</name>+ </program>+ <program>+ <mainClass>org.apache.solr.util.SuggestMissingFactories</mainClass>+ <name>SuggestMissingFactories</name>+ </program>+ </programs>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/solr/src/solrj/pom.xml b/dev-tools/maven/solr/src/solrj/pom.xmlnew file mode 100644index 00000000000..262793a6dbe--- /dev/null+++ b/dev-tools/maven/solr/src/solrj/pom.xml@@ -0,0 +1,135 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-solrj</artifactId>+ <packaging>jar</packaging>+ <name>Apache Solr Solrj</name>+ <description>Apache Solr Solrj</description>+ <properties>+ <module-directory>solr/src/solrj</module-directory>+ <build-directory>../../build/solrj</build-directory>+ <tests.luceneMatchVersion>4.0</tests.luceneMatchVersion>+ </properties>+ <dependencies>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.apache.geronimo.specs</groupId>+ <artifactId>geronimo-stax-api_1.0_spec</artifactId>+ </dependency>+ <dependency>+ <groupId>org.apache.zookeeper</groupId>+ <artifactId>zookeeper</artifactId>+ <exclusions>+ <exclusion>+ <groupId>javax.jms</groupId>+ <artifactId>jms</artifactId>+ </exclusion>+ <exclusion>+ <groupId>com.sun.jmx</groupId>+ <artifactId>jmxri</artifactId>+ </exclusion>+ <exclusion>+ <groupId>com.sun.jdmk</groupId>+ <artifactId>jmxtools</artifactId>+ </exclusion>+ </exclusions>+ </dependency>+ <dependency>+ <groupId>commons-httpclient</groupId>+ <artifactId>commons-httpclient</artifactId>+ </dependency>+ <dependency>+ <groupId>commons-io</groupId>+ <artifactId>commons-io</artifactId>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>slf4j-api</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <outputDirectory>${build-directory}</outputDirectory>+ <sourceDirectory>.</sourceDirectory>+ <testResources/>+ <plugins>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>build-helper-maven-plugin</artifactId>+ <executions>+ <execution>+ <id>add-source</id>+ <phase>generate-sources</phase>+ <goals>+ <goal>add-source</goal>+ </goals>+ <configuration>+ <sources>+ <source>../common</source>+ </sources>+ </configuration>+ </execution>+ </executions>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <!-- Solrj tests are run from the solr-core build; -->+ <!-- otherwise there would be a cyclic dependency, -->+ <!-- since Solrj's tests depend on solr-core, and -->+ <!-- solr-core depends on Solrj. -->+ <skipTests>true</skipTests>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/solr/src/webapp/pom.xml b/dev-tools/maven/solr/src/webapp/pom.xmlnew file mode 100644index 00000000000..af914c5a94a--- /dev/null+++ b/dev-tools/maven/solr/src/webapp/pom.xml@@ -0,0 +1,191 @@+<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">+ <!--+ 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.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-parent</artifactId>+ <version>4.0-SNAPSHOT</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr</artifactId>+ <packaging>war</packaging>+ <name>Apache Solr Search Server</name>+ <description>Apache Solr Search Server</description>+ <properties>+ <module-directory>solr/src/webapp</module-directory>+ <build-directory>../../build/web</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ <exclusions>+ <exclusion>+ <groupId>commons-chain</groupId>+ <artifactId>commons-chain</artifactId>+ </exclusion>+ <exclusion>+ <groupId>commons-digester</groupId>+ <artifactId>commons-digester</artifactId>+ </exclusion>+ <exclusion>+ <groupId>commons-logging</groupId>+ <artifactId>commons-logging</artifactId>+ </exclusion>+ <exclusion>+ <groupId>commons-validator</groupId>+ <artifactId>commons-validator</artifactId>+ </exclusion>+ <exclusion>+ <groupId>jakarta-regexp</groupId>+ <artifactId>jakarta-regexp</artifactId>+ </exclusion>+ <exclusion>+ <groupId>dom4j</groupId>+ <artifactId>dom4j</artifactId>+ </exclusion>+ <exclusion>+ <groupId>log4j</groupId>+ <artifactId>log4j</artifactId>+ </exclusion>+ <exclusion>+ <groupId>javax.activation</groupId>+ <artifactId>activation</artifactId>+ </exclusion>+ <exclusion>+ <groupId>javax.mail</groupId>+ <artifactId>mail</artifactId>+ </exclusion>+ <exclusion>+ <groupId>jline</groupId>+ <artifactId>jline</artifactId>+ </exclusion>+ <exclusion>+ <groupId>org.apache.struts</groupId>+ <artifactId>struts-core</artifactId>+ </exclusion>+ <exclusion>+ <groupId>org.apache.struts</groupId>+ <artifactId>struts-taglib</artifactId>+ </exclusion>+ <exclusion>+ <groupId>org.apache.struts</groupId>+ <artifactId>struts-tiles</artifactId>+ </exclusion>+ <exclusion>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty</artifactId>+ </exclusion>+ <exclusion>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty-util</artifactId>+ </exclusion>+ <exclusion>+ <groupId>oro</groupId>+ <artifactId>oro</artifactId>+ </exclusion>+ <exclusion>+ <groupId>sslext</groupId>+ <artifactId>sslext</artifactId>+ </exclusion>+ <exclusion>+ <groupId>xml-apis</groupId>+ <artifactId>xml-apis</artifactId>+ </exclusion>+ </exclusions>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-dataimporthandler</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.codehaus.woodstox</groupId>+ <artifactId>wstx-asl</artifactId>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>jcl-over-slf4j</artifactId>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>log4j-over-slf4j</artifactId>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}</directory>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-javadoc-plugin</artifactId>+ <configuration>+ <skip>true</skip> <!-- There are no public or protected classes -->+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-source-plugin</artifactId>+ <configuration>+ <!-- There are no sources for the Solr WAR, but -->+ <!-- the maven-source-plugin has no "skip" option. -->+ <!-- Setting attach=false prevents the built jar -->+ <!-- from being installed or deployed. -->+ <attach>false</attach>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-war-plugin</artifactId>+ <configuration>+ <warSourceDirectory>web</warSourceDirectory>+ <webXml>web/WEB-INF/web.xml</webXml>+ <webResources>+ <resource>+ <directory>../../contrib/dataimporthandler/src/main/webapp</directory>+ </resource>+ </webResources>+ </configuration>+ </plugin>+ <plugin>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>maven-jetty-plugin</artifactId>+ <configuration>+ <scanIntervalSeconds>10</scanIntervalSeconds>+ <connectors>+ <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">+ <port>8080</port>+ <maxIdleTime>60000</maxIdleTime>+ </connector>+ </connectors>+ <webAppConfig>+ <contextPath>/</contextPath>+ <baseResource implementation="org.mortbay.resource.ResourceCollection">+ <resources>web,../../contrib/dataimporthandler/src/main/webapp</resources>+ </baseResource>+ </webAppConfig>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/lucene/contrib/highlighter/src/test/org/apache/lucene/search/highlight/TokenSourcesTest.java b/lucene/contrib/highlighter/src/test/org/apache/lucene/search/highlight/TokenSourcesTest.javanew file mode 100644index 00000000000..3fcaa10b535--- /dev/null+++ b/lucene/contrib/highlighter/src/test/org/apache/lucene/search/highlight/TokenSourcesTest.java@@ -0,0 +1,191 @@+package org.apache.lucene.search.highlight;++/**+ * 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.+ */++import java.io.IOException;+import java.io.Reader;++import org.apache.lucene.analysis.Analyzer;+import org.apache.lucene.analysis.Token;+import org.apache.lucene.analysis.TokenStream;+import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;+import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;+import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;+import org.apache.lucene.document.Document;+import org.apache.lucene.document.Field;+import org.apache.lucene.document.Field.TermVector;+import org.apache.lucene.index.CorruptIndexException;+import org.apache.lucene.index.IndexReader;+import org.apache.lucene.index.IndexWriter;+import org.apache.lucene.index.Term;+import org.apache.lucene.index.TermPositionVector;+import org.apache.lucene.search.DisjunctionMaxQuery;+import org.apache.lucene.search.IndexSearcher;+import org.apache.lucene.search.TopDocs;+import org.apache.lucene.search.spans.SpanTermQuery;+import org.apache.lucene.store.Directory;+import org.apache.lucene.store.LockObtainFailedException;+import org.apache.lucene.util.LuceneTestCase;++// LUCENE-2874+public class TokenSourcesTest extends LuceneTestCase {+ private static final String FIELD = "text";++ private static final class OverlapAnalyzer extends Analyzer {++ @Override+ public TokenStream tokenStream(String fieldName, Reader reader) {+ return new TokenStreamOverlap();+ }+ }++ private static final class TokenStreamOverlap extends TokenStream {+ private Token[] tokens;++ private int i = -1;++ private final CharTermAttribute termAttribute = addAttribute(CharTermAttribute.class);+ private final OffsetAttribute offsetAttribute = addAttribute(OffsetAttribute.class);+ private final PositionIncrementAttribute positionIncrementAttribute = addAttribute(PositionIncrementAttribute.class);++ public TokenStreamOverlap() {+ reset();+ }++ @Override+ public boolean incrementToken() throws IOException {+ this.i++;+ if (this.i >= this.tokens.length) {+ return false;+ }+ clearAttributes();+ termAttribute.setEmpty().append(this.tokens[i]);+ offsetAttribute.setOffset(this.tokens[i].startOffset(),+ this.tokens[i].endOffset());+ positionIncrementAttribute.setPositionIncrement(this.tokens[i]+ .getPositionIncrement());+ return true;+ }++ @Override+ public void reset() {+ this.i = -1;+ this.tokens = new Token[] {+ new Token(new char[] { 't', 'h', 'e' }, 0, 3, 0, 3),+ new Token(new char[] { '{', 'f', 'o', 'x', '}' }, 0, 5, 0, 7),+ new Token(new char[] { 'f', 'o', 'x' }, 0, 3, 4, 7),+ new Token(new char[] { 'd', 'i', 'd' }, 0, 3, 8, 11),+ new Token(new char[] { 'n', 'o', 't' }, 0, 3, 12, 15),+ new Token(new char[] { 'j', 'u', 'm', 'p' }, 0, 4, 16, 20) };+ this.tokens[1].setPositionIncrement(0);+ }+ }++ public void testOverlapWithOffset() throws CorruptIndexException,+ LockObtainFailedException, IOException, InvalidTokenOffsetsException {+ final String TEXT = "the fox did not jump";+ final Directory directory = newDirectory();+ final IndexWriter indexWriter = new IndexWriter(directory,+ newIndexWriterConfig(TEST_VERSION_CURRENT, new OverlapAnalyzer()));+ try {+ final Document document = new Document();+ document.add(new Field(FIELD, new TokenStreamOverlap(),+ TermVector.WITH_OFFSETS));+ indexWriter.addDocument(document);+ } finally {+ indexWriter.close();+ }+ final IndexReader indexReader = IndexReader.open(directory, true);+ try {+ assertEquals(1, indexReader.numDocs());+ final IndexSearcher indexSearcher = new IndexSearcher(indexReader);+ try {+ final DisjunctionMaxQuery query = new DisjunctionMaxQuery(1);+ query.add(new SpanTermQuery(new Term(FIELD, "{fox}")));+ query.add(new SpanTermQuery(new Term(FIELD, "fox")));+ // final Query phraseQuery = new SpanNearQuery(new SpanQuery[] {+ // new SpanTermQuery(new Term(FIELD, "{fox}")),+ // new SpanTermQuery(new Term(FIELD, "fox")) }, 0, true);++ TopDocs hits = indexSearcher.search(query, 1);+ assertEquals(1, hits.totalHits);+ final Highlighter highlighter = new Highlighter(+ new SimpleHTMLFormatter(), new SimpleHTMLEncoder(),+ new QueryScorer(query));+ final TokenStream tokenStream = TokenSources+ .getTokenStream(+ (TermPositionVector) indexReader.getTermFreqVector(0, FIELD),+ false);+ assertEquals("<B>the fox</B> did not jump",+ highlighter.getBestFragment(tokenStream, TEXT));+ } finally {+ indexSearcher.close();+ }+ } finally {+ indexReader.close();+ directory.close();+ }+ }++ public void testOverlapWithPositionsAndOffset() throws CorruptIndexException,+ LockObtainFailedException, IOException, InvalidTokenOffsetsException {+ final String TEXT = "the fox did not jump";+ final Directory directory = newDirectory();+ final IndexWriter indexWriter = new IndexWriter(directory,+ newIndexWriterConfig(TEST_VERSION_CURRENT, new OverlapAnalyzer()));+ try {+ final Document document = new Document();+ document.add(new Field(FIELD, new TokenStreamOverlap(),+ TermVector.WITH_POSITIONS_OFFSETS));+ indexWriter.addDocument(document);+ } finally {+ indexWriter.close();+ }+ final IndexReader indexReader = IndexReader.open(directory, true);+ try {+ assertEquals(1, indexReader.numDocs());+ final IndexSearcher indexSearcher = new IndexSearcher(indexReader);+ try {+ final DisjunctionMaxQuery query = new DisjunctionMaxQuery(1);+ query.add(new SpanTermQuery(new Term(FIELD, "{fox}")));+ query.add(new SpanTermQuery(new Term(FIELD, "fox")));+ // final Query phraseQuery = new SpanNearQuery(new SpanQuery[] {+ // new SpanTermQuery(new Term(FIELD, "{fox}")),+ // new SpanTermQuery(new Term(FIELD, "fox")) }, 0, true);++ TopDocs hits = indexSearcher.search(query, 1);+ assertEquals(1, hits.totalHits);+ final Highlighter highlighter = new Highlighter(+ new SimpleHTMLFormatter(), new SimpleHTMLEncoder(),+ new QueryScorer(query));+ final TokenStream tokenStream = TokenSources+ .getTokenStream(+ (TermPositionVector) indexReader.getTermFreqVector(0, FIELD),+ false);+ assertEquals("<B>the fox</B> did not jump",+ highlighter.getBestFragment(tokenStream, TEXT));+ } finally {+ indexSearcher.close();+ }+ } finally {+ indexReader.close();+ directory.close();+ }+ }++}diff --git a/lucene/src/java/org/apache/lucene/index/codecs/BlockTermState.java b/lucene/src/java/org/apache/lucene/index/codecs/BlockTermState.javanew file mode 100644index 00000000000..4ab22aef72f--- /dev/null+++ b/lucene/src/java/org/apache/lucene/index/codecs/BlockTermState.java@@ -0,0 +1,55 @@+package org.apache.lucene.index.codecs;+/**+ * 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.+ */++import org.apache.lucene.index.OrdTermState;+import org.apache.lucene.index.TermState;++/**+ * Holds all state required for {@link PostingsReaderBase}+ * to produce a {@link DocsEnum} without re-seeking the+ * terms dict.+ */+public class BlockTermState extends OrdTermState {+ public int docFreq; // how many docs have this term+ public long totalTermFreq; // total number of occurrences of this term++ public int termCount; // term ord are in the current block+ public long blockFilePointer; // fp into the terms dict primary file (_X.tib) that holds this term++ public int blockTermCount; // how many terms in current block++ @Override+ public void copyFrom(TermState _other) {+ assert _other instanceof BlockTermState : "can not copy from " + _other.getClass().getName();+ BlockTermState other = (BlockTermState) _other;+ super.copyFrom(_other);+ docFreq = other.docFreq;+ totalTermFreq = other.totalTermFreq;+ termCount = other.termCount;+ blockFilePointer = other.blockFilePointer;++ // NOTE: don't copy blockTermCount;+ // it's "transient": used only by the "primary"+ // termState, and regenerated on seek by TermState+ }++ @Override+ public String toString() {+ return super.toString() + "ord=" + ord + " docFreq=" + docFreq + " totalTermFreq=" + totalTermFreq + " termCount=" + termCount + " blockFP=" + blockFilePointer;+ }+}diff --git a/lucene/src/java/org/apache/lucene/index/codecs/BlockTermsReader.java b/lucene/src/java/org/apache/lucene/index/codecs/BlockTermsReader.javanew file mode 100644index 00000000000..1ea93a04495--- /dev/null+++ b/lucene/src/java/org/apache/lucene/index/codecs/BlockTermsReader.java@@ -0,0 +1,741 @@+package org.apache.lucene.index.codecs;++/**+ * 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.+ */++import java.io.Closeable;+import java.io.IOException;+import java.util.Collection;+import java.util.Comparator;+import java.util.Iterator;+import java.util.TreeMap;++import org.apache.lucene.index.DocsAndPositionsEnum;+import org.apache.lucene.index.DocsEnum;+import org.apache.lucene.index.FieldInfo;+import org.apache.lucene.index.FieldInfos;+import org.apache.lucene.index.FieldsEnum;+import org.apache.lucene.index.IndexFileNames;+import org.apache.lucene.index.SegmentInfo;+import org.apache.lucene.index.TermState;+import org.apache.lucene.index.Terms;+import org.apache.lucene.index.TermsEnum;+import org.apache.lucene.index.codecs.standard.StandardPostingsReader; // javadocs+import org.apache.lucene.store.ByteArrayDataInput;+import org.apache.lucene.store.Directory;+import org.apache.lucene.store.IndexInput;+import org.apache.lucene.util.ArrayUtil;+import org.apache.lucene.util.Bits;+import org.apache.lucene.util.BytesRef;+import org.apache.lucene.util.CodecUtil;+import org.apache.lucene.util.DoubleBarrelLRUCache;++/** Handles a terms dict, but decouples all details of+ * doc/freqs/positions reading to an instance of {@link+ * PostingsReaderBase}. This class is reusable for+ * codecs that use a different format for+ * docs/freqs/positions (though codecs are also free to+ * make their own terms dict impl).+ *+ * <p>This class also interacts with an instance of {@link+ * TermsIndexReaderBase}, to abstract away the specific+ * implementation of the terms dict index.+ * @lucene.experimental */++public class BlockTermsReader extends FieldsProducer {+ // Open input to the main terms dict file (_X.tis)+ private final IndexInput in;++ // Reads the terms dict entries, to gather state to+ // produce DocsEnum on demand+ private final PostingsReaderBase postingsReader;++ private final TreeMap<String,FieldReader> fields = new TreeMap<String,FieldReader>();++ // Comparator that orders our terms+ private final Comparator<BytesRef> termComp;++ // Caches the most recently looked-up field + terms:+ private final DoubleBarrelLRUCache<FieldAndTerm,BlockTermState> termsCache;++ // Reads the terms index+ private TermsIndexReaderBase indexReader;++ // keeps the dirStart offset+ protected long dirOffset;++ // Used as key for the terms cache+ private static class FieldAndTerm extends DoubleBarrelLRUCache.CloneableKey {+ String field;+ BytesRef term;++ public FieldAndTerm() {+ }++ public FieldAndTerm(FieldAndTerm other) {+ field = other.field;+ term = new BytesRef(other.term);+ }++ @Override+ public boolean equals(Object _other) {+ FieldAndTerm other = (FieldAndTerm) _other;+ return other.field == field && term.bytesEquals(other.term);+ }++ @Override+ public Object clone() {+ return new FieldAndTerm(this);+ }++ @Override+ public int hashCode() {+ return field.hashCode() * 31 + term.hashCode();+ }+ }++ private String segment;++ public BlockTermsReader(TermsIndexReaderBase indexReader, Directory dir, FieldInfos fieldInfos, String segment, PostingsReaderBase postingsReader, int readBufferSize,+ Comparator<BytesRef> termComp, int termsCacheSize, String codecId)+ throws IOException {++ this.postingsReader = postingsReader;+ termsCache = new DoubleBarrelLRUCache<FieldAndTerm,BlockTermState>(termsCacheSize);++ this.termComp = termComp;+ this.segment = segment;+ in = dir.openInput(IndexFileNames.segmentFileName(segment, codecId, BlockTermsWriter.TERMS_EXTENSION),+ readBufferSize);++ boolean success = false;+ try {+ readHeader(in);++ // Have PostingsReader init itself+ postingsReader.init(in);++ // Read per-field details+ seekDir(in, dirOffset);++ final int numFields = in.readVInt();++ for(int i=0;i<numFields;i++) {+ final int field = in.readVInt();+ final long numTerms = in.readVLong();+ assert numTerms >= 0;+ final long termsStartPointer = in.readVLong();+ final FieldInfo fieldInfo = fieldInfos.fieldInfo(field);+ final long sumTotalTermFreq = fieldInfo.omitTermFreqAndPositions ? -1 : in.readVLong();+ assert !fields.containsKey(fieldInfo.name);+ fields.put(fieldInfo.name, new FieldReader(fieldInfo, numTerms, termsStartPointer, sumTotalTermFreq));+ }+ success = true;+ } finally {+ if (!success) {+ in.close();+ }+ }++ this.indexReader = indexReader;+ }++ protected void readHeader(IndexInput input) throws IOException {+ CodecUtil.checkHeader(in, BlockTermsWriter.CODEC_NAME,+ BlockTermsWriter.VERSION_START,+ BlockTermsWriter.VERSION_CURRENT);+ dirOffset = in.readLong();+ }++ protected void seekDir(IndexInput input, long dirOffset)+ throws IOException {+ input.seek(dirOffset);+ }++ @Override+ public void loadTermsIndex(int indexDivisor) throws IOException {+ indexReader.loadTermsIndex(indexDivisor);+ }++ @Override+ public void close() throws IOException {+ try {+ try {+ if (indexReader != null) {+ indexReader.close();+ }+ } finally {+ // null so if an app hangs on to us (ie, we are not+ // GCable, despite being closed) we still free most+ // ram+ indexReader = null;+ if (in != null) {+ in.close();+ }+ }+ } finally {+ try {+ if (postingsReader != null) {+ postingsReader.close();+ }+ } finally {+ for(FieldReader field : fields.values()) {+ field.close();+ }+ }+ }+ }++ public static void files(Directory dir, SegmentInfo segmentInfo, String id, Collection<String> files) {+ files.add(IndexFileNames.segmentFileName(segmentInfo.name, id, BlockTermsWriter.TERMS_EXTENSION));+ }++ public static void getExtensions(Collection<String> extensions) {+ extensions.add(BlockTermsWriter.TERMS_EXTENSION);+ }++ @Override+ public FieldsEnum iterator() {+ return new TermFieldsEnum();+ }++ @Override+ public Terms terms(String field) throws IOException {+ return fields.get(field);+ }++ // Iterates through all fields+ private class TermFieldsEnum extends FieldsEnum {+ final Iterator<FieldReader> it;+ FieldReader current;++ TermFieldsEnum() {+ it = fields.values().iterator();+ }++ @Override+ public String next() {+ if (it.hasNext()) {+ current = it.next();+ return current.fieldInfo.name;+ } else {+ current = null;+ return null;+ }+ }++ @Override+ public TermsEnum terms() throws IOException {+ return current.iterator();+ }+ }++ private class FieldReader extends Terms implements Closeable {+ final long numTerms;+ final FieldInfo fieldInfo;+ final long termsStartPointer;+ final long sumTotalTermFreq;++ FieldReader(FieldInfo fieldInfo, long numTerms, long termsStartPointer, long sumTotalTermFreq) {+ assert numTerms > 0;+ this.fieldInfo = fieldInfo;+ this.numTerms = numTerms;+ this.termsStartPointer = termsStartPointer;+ this.sumTotalTermFreq = sumTotalTermFreq;+ }++ @Override+ public Comparator<BytesRef> getComparator() {+ return termComp;+ }++ @Override+ public void close() {+ super.close();+ }++ @Override+ public TermsEnum iterator() throws IOException {+ return new SegmentTermsEnum();+ }++ @Override+ public long getUniqueTermCount() {+ return numTerms;+ }++ @Override+ public long getSumTotalTermFreq() {+ return sumTotalTermFreq;+ }++ // Iterates through terms in this field+ private final class SegmentTermsEnum extends TermsEnum {+ private final IndexInput in;+ private final BlockTermState state;+ private final boolean doOrd;+ private final FieldAndTerm fieldTerm = new FieldAndTerm();+ private final TermsIndexReaderBase.FieldIndexEnum indexEnum;+ private final BytesRef term = new BytesRef();++ /* This is true if indexEnum is "still" seek'd to the index term+ for the current term. We set it to true on seeking, and then it+ remains valid until next() is called enough times to load another+ terms block: */+ private boolean indexIsCurrent;++ /* True if we've already called .next() on the indexEnum, to "bracket"+ the current block of terms: */+ private boolean didIndexNext;++ /* Next index term, bracketing the current block of terms; this is+ only valid if didIndexNext is true: */+ private BytesRef nextIndexTerm;++ /* True after seek(TermState), do defer seeking. If the app then+ calls next() (which is not "typical"), then we'll do the real seek */+ private boolean seekPending;++ /* How many blocks we've read since last seek. Once this+ is >= indexEnum.getDivisor() we set indexIsCurrent to false (since+ the index can no long bracket seek-within-block). */+ private int blocksSinceSeek;++ private byte[] termSuffixes;+ private ByteArrayDataInput termSuffixesReader = new ByteArrayDataInput(null);++ /* Common prefix used for all terms in this block. */+ private int termBlockPrefix;++ private byte[] docFreqBytes;+ private final ByteArrayDataInput freqReader = new ByteArrayDataInput(null);+ private int metaDataUpto;++ public SegmentTermsEnum() throws IOException {+ in = (IndexInput) BlockTermsReader.this.in.clone();+ in.seek(termsStartPointer);+ indexEnum = indexReader.getFieldEnum(fieldInfo);+ doOrd = indexReader.supportsOrd();+ fieldTerm.field = fieldInfo.name;+ state = postingsReader.newTermState();+ state.totalTermFreq = -1;+ state.ord = -1;++ termSuffixes = new byte[128];+ docFreqBytes = new byte[64];+ //System.out.println("BTR.enum init this=" + this + " postingsReader=" + postingsReader);+ }++ @Override+ public Comparator<BytesRef> getComparator() {+ return termComp;+ }++ @Override+ public SeekStatus seek(final BytesRef target, final boolean useCache) throws IOException {++ if (indexEnum == null) {+ throw new IllegalStateException("terms index was not loaded");+ }++ //System.out.println("BTR.seek seg=" + segment + " target=" + fieldInfo.name + ":" + target.utf8ToString() + " " + target + " current=" + term().utf8ToString() + " " + term() + " useCache=" + useCache + " indexIsCurrent=" + indexIsCurrent + " didIndexNext=" + didIndexNext + " seekPending=" + seekPending + " divisor=" + indexReader.getDivisor() + " this=" + this);+ /*+ if (didIndexNext) {+ if (nextIndexTerm == null) {+ //System.out.println(" nextIndexTerm=null");+ } else {+ //System.out.println(" nextIndexTerm=" + nextIndexTerm.utf8ToString());+ }+ }+ */++ // Check cache+ if (useCache) {+ fieldTerm.term = target;+ // TODO: should we differentiate "frozen"+ // TermState (ie one that was cloned and+ // cached/returned by termState()) from the+ // malleable (primary) one?+ final TermState cachedState = termsCache.get(fieldTerm);+ if (cachedState != null) {+ seekPending = true;+ //System.out.println(" cached!");+ seek(target, cachedState);+ //System.out.println(" term=" + term.utf8ToString());+ return SeekStatus.FOUND;+ }+ }++ boolean doSeek = true;++ // See if we can avoid seeking, because target term+ // is after current term but before next index term:+ if (indexIsCurrent) {++ final int cmp = termComp.compare(term, target);++ if (cmp == 0) {+ // Already at the requested term+ return SeekStatus.FOUND;+ } else if (cmp < 0) {++ // Target term is after current term+ if (!didIndexNext) {+ if (indexEnum.next() == -1) {+ nextIndexTerm = null;+ } else {+ nextIndexTerm = indexEnum.term();+ }+ //System.out.println(" now do index next() nextIndexTerm=" + (nextIndexTerm == null ? "null" : nextIndexTerm.utf8ToString()));+ didIndexNext = true;+ }++ if (nextIndexTerm == null || termComp.compare(target, nextIndexTerm) < 0) {+ // Optimization: requested term is within the+ // same term block we are now in; skip seeking+ // (but do scanning):+ doSeek = false;+ //System.out.println(" skip seek: nextIndexTerm=" + (nextIndexTerm == null ? "null" : nextIndexTerm.utf8ToString()));+ }+ }+ }++ if (doSeek) {+ //System.out.println(" seek");++ // Ask terms index to find biggest indexed term (=+ // first term in a block) that's <= our text:+ in.seek(indexEnum.seek(target));+ boolean result = nextBlock();++ // Block must exist since, at least, the indexed term+ // is in the block:+ assert result;++ indexIsCurrent = true;+ didIndexNext = false;+ blocksSinceSeek = 0;++ if (doOrd) {+ state.ord = indexEnum.ord()-1;+ }++ // NOTE: the first _next() after an index seek is+ // a bit wasteful, since it redundantly reads some+ // suffix bytes into the buffer. We could avoid storing+ // those bytes in the primary file, but then when+ // next()ing over an index term we'd have to+ // special case it:+ term.copy(indexEnum.term());+ //System.out.println(" seek: term=" + term.utf8ToString());+ } else {+ ////System.out.println(" skip seek");+ }++ seekPending = false;++ // Now scan:+ while (_next() != null) {+ final int cmp = termComp.compare(term, target);+ if (cmp == 0) {+ // Match!+ if (useCache) {+ // Store in cache+ decodeMetaData();+ termsCache.put(new FieldAndTerm(fieldTerm), (BlockTermState) state.clone());+ }+ //System.out.println(" FOUND");+ return SeekStatus.FOUND;+ } else if (cmp > 0) {+ //System.out.println(" NOT_FOUND term=" + term.utf8ToString());+ return SeekStatus.NOT_FOUND;+ }++ // The purpose of the terms dict index is to seek+ // the enum to the closest index term before the+ // term we are looking for. So, we should never+ // cross another index term (besides the first+ // one) while we are scanning:+ assert indexIsCurrent;+ }++ indexIsCurrent = false;+ //System.out.println(" END");+ return SeekStatus.END;+ }++ @Override+ public BytesRef next() throws IOException {+ //System.out.println("BTR.next() seekPending=" + seekPending + " pendingSeekCount=" + state.termCount);++ // If seek was previously called and the term was cached,+ // usually caller is just going to pull a D/&PEnum or get+ // docFreq, etc. But, if they then call next(),+ // this method catches up all internal state so next()+ // works properly:+ if (seekPending) {+ assert !indexIsCurrent;+ in.seek(state.blockFilePointer);+ final int pendingSeekCount = state.termCount;+ boolean result = nextBlock();++ final long savOrd = state.ord;++ // Block must exist since seek(TermState) was called w/ a+ // TermState previously returned by this enum when positioned+ // on a real term:+ assert result;++ while(state.termCount < pendingSeekCount) {+ BytesRef nextResult = _next();+ assert nextResult != null;+ }+ seekPending = false;+ state.ord = savOrd;+ }+ return _next();+ }++ /* Decodes only the term bytes of the next term. If caller then asks for+ metadata, ie docFreq, totalTermFreq or pulls a D/&PEnum, we then (lazily)+ decode all metadata up to the current term. */+ private BytesRef _next() throws IOException {+ //System.out.println("BTR._next this=" + this + " termCount=" + state.termCount + " (vs " + state.blockTermCount + ")");+ if (state.termCount == state.blockTermCount) {+ if (!nextBlock()) {+ //System.out.println(" eof");+ indexIsCurrent = false;+ return null;+ }+ }++ // TODO: cutover to something better for these ints! simple64?+ final int suffix = termSuffixesReader.readVInt();+ //System.out.println(" suffix=" + suffix);++ term.length = termBlockPrefix + suffix;+ if (term.bytes.length < term.length) {+ term.grow(term.length);+ }+ termSuffixesReader.readBytes(term.bytes, termBlockPrefix, suffix);+ state.termCount++;++ // NOTE: meaningless in the non-ord case+ state.ord++;++ //System.out.println(" return term=" + fieldInfo.name + ":" + term.utf8ToString() + " " + term);+ return term;+ }++ @Override+ public BytesRef term() {+ return term;+ }++ @Override+ public int docFreq() throws IOException {+ //System.out.println("BTR.docFreq");+ decodeMetaData();+ //System.out.println(" return " + state.docFreq);+ return state.docFreq;+ }++ @Override+ public long totalTermFreq() throws IOException {+ decodeMetaData();+ return state.totalTermFreq;+ }++ @Override+ public DocsEnum docs(Bits skipDocs, DocsEnum reuse) throws IOException {+ //System.out.println("BTR.docs this=" + this);+ decodeMetaData();+ //System.out.println(" state.docFreq=" + state.docFreq);+ final DocsEnum docsEnum = postingsReader.docs(fieldInfo, state, skipDocs, reuse);+ assert docsEnum != null;+ return docsEnum;+ }++ @Override+ public DocsAndPositionsEnum docsAndPositions(Bits skipDocs, DocsAndPositionsEnum reuse) throws IOException {+ //System.out.println("BTR.d&p this=" + this);+ decodeMetaData();+ if (fieldInfo.omitTermFreqAndPositions) {+ return null;+ } else {+ DocsAndPositionsEnum dpe = postingsReader.docsAndPositions(fieldInfo, state, skipDocs, reuse);+ //System.out.println(" return d&pe=" + dpe);+ return dpe;+ }+ }++ @Override+ public void seek(BytesRef target, TermState otherState) throws IOException {+ //System.out.println("BTR.seek termState target=" + target.utf8ToString() + " " + target + " this=" + this);+ assert otherState != null && otherState instanceof BlockTermState;+ assert !doOrd || ((BlockTermState) otherState).ord < numTerms;+ state.copyFrom(otherState);+ seekPending = true;+ indexIsCurrent = false;+ term.copy(target);+ }++ @Override+ public TermState termState() throws IOException {+ //System.out.println("BTR.termState this=" + this);+ decodeMetaData();+ TermState ts = (TermState) state.clone();+ //System.out.println(" return ts=" + ts);+ return ts;+ }++ @Override+ public SeekStatus seek(long ord) throws IOException {+ //System.out.println("BTR.seek by ord ord=" + ord);+ if (indexEnum == null) {+ throw new IllegalStateException("terms index was not loaded");+ }++ if (ord >= numTerms) {+ state.ord = numTerms-1;+ return SeekStatus.END;+ }++ // TODO: if ord is in same terms block and+ // after current ord, we should avoid this seek just+ // like we do in the seek(BytesRef) case+ in.seek(indexEnum.seek(ord));+ boolean result = nextBlock();++ // Block must exist since ord < numTerms:+ assert result;++ indexIsCurrent = true;+ didIndexNext = false;+ blocksSinceSeek = 0;+ seekPending = false;++ state.ord = indexEnum.ord()-1;+ assert state.ord >= -1: "ord=" + state.ord;+ term.copy(indexEnum.term());++ // Now, scan:+ int left = (int) (ord - state.ord);+ while(left > 0) {+ final BytesRef term = _next();+ assert term != null;+ left--;+ assert indexIsCurrent;+ }++ // always found+ return SeekStatus.FOUND;+ }++ public long ord() {+ if (!doOrd) {+ throw new UnsupportedOperationException();+ }+ return state.ord;+ }++ private void doPendingSeek() {+ }++ /* Does initial decode of next block of terms; this+ doesn't actually decode the docFreq, totalTermFreq,+ postings details (frq/prx offset, etc.) metadata;+ it just loads them as byte[] blobs which are then+ decoded on-demand if the metadata is ever requested+ for any term in this block. This enables terms-only+ intensive consumes (eg certain MTQs, respelling) to+ not pay the price of decoding metadata they won't+ use. */+ private boolean nextBlock() throws IOException {++ // TODO: we still lazy-decode the byte[] for each+ // term (the suffix), but, if we decoded+ // all N terms up front then seeking could do a fast+ // bsearch w/in the block...++ //System.out.println("BTR.nextBlock() fp=" + in.getFilePointer() + " this=" + this);+ state.blockFilePointer = in.getFilePointer();+ state.blockTermCount = in.readVInt();+ //System.out.println(" blockTermCount=" + state.blockTermCount);+ if (state.blockTermCount == 0) {+ return false;+ }+ termBlockPrefix = in.readVInt();++ // term suffixes:+ int len = in.readVInt();+ if (termSuffixes.length < len) {+ termSuffixes = new byte[ArrayUtil.oversize(len, 1)];+ }+ //System.out.println(" termSuffixes len=" + len);+ in.readBytes(termSuffixes, 0, len);+ termSuffixesReader.reset(termSuffixes);++ // docFreq, totalTermFreq+ len = in.readVInt();+ if (docFreqBytes.length < len) {+ docFreqBytes = new byte[ArrayUtil.oversize(len, 1)];+ }+ //System.out.println(" freq bytes len=" + len);+ in.readBytes(docFreqBytes, 0, len);+ freqReader.reset(docFreqBytes);+ metaDataUpto = 0;++ state.termCount = 0;++ postingsReader.readTermsBlock(in, fieldInfo, state);++ blocksSinceSeek++;+ indexIsCurrent &= (blocksSinceSeek < indexReader.getDivisor());+ //System.out.println(" indexIsCurrent=" + indexIsCurrent);++ return true;+ }++ private void decodeMetaData() throws IOException {+ //System.out.println("BTR.decodeMetadata mdUpto=" + metaDataUpto + " vs termCount=" + state.termCount + " state=" + state);+ if (!seekPending) {+ // lazily catch up on metadata decode:+ final int limit = state.termCount;+ state.termCount = metaDataUpto;+ while (metaDataUpto < limit) {+ //System.out.println(" decode");+ // TODO: we could make "tiers" of metadata, ie,+ // decode docFreq/totalTF but don't decode postings+ // metadata; this way caller could get+ // docFreq/totalTF w/o paying decode cost for+ // postings+ state.docFreq = freqReader.readVInt();+ if (!fieldInfo.omitTermFreqAndPositions) {+ state.totalTermFreq = state.docFreq + freqReader.readVLong();+ }+ postingsReader.nextTerm(fieldInfo, state);+ metaDataUpto++;+ state.termCount++;+ }+ } else {+ //System.out.println(" skip! seekPending");+ }+ }+ }+ }+}diff --git a/lucene/src/java/org/apache/lucene/index/codecs/BlockTermsWriter.java b/lucene/src/java/org/apache/lucene/index/codecs/BlockTermsWriter.javanew file mode 100644index 00000000000..c60b42506ed--- /dev/null+++ b/lucene/src/java/org/apache/lucene/index/codecs/BlockTermsWriter.java@@ -0,0 +1,316 @@+package org.apache.lucene.index.codecs;++/**+ * 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.+ */++import java.io.IOException;+import java.util.ArrayList;+import java.util.Comparator;+import java.util.List;++import org.apache.lucene.index.FieldInfo;+import org.apache.lucene.index.FieldInfos;+import org.apache.lucene.index.IndexFileNames;+import org.apache.lucene.index.SegmentWriteState;+import org.apache.lucene.store.IndexOutput;+import org.apache.lucene.store.RAMOutputStream;+import org.apache.lucene.util.ArrayUtil;+import org.apache.lucene.util.BytesRef;+import org.apache.lucene.util.CodecUtil;+import org.apache.lucene.util.RamUsageEstimator;++// TODO: currently we encode all terms between two indexed+// terms as a block; but, we could decouple the two, ie+// allow several blocks in between two indexed terms++/**+ * Writes terms dict, block-encoding (column stride) each+ * term's metadata for each set of terms between two+ * index terms.+ *+ * @lucene.experimental+ */++public class BlockTermsWriter extends FieldsConsumer {++ final static String CODEC_NAME = "BLOCK_TERMS_DICT";++ // Initial format+ public static final int VERSION_START = 0;++ public static final int VERSION_CURRENT = VERSION_START;++ /** Extension of terms file */+ static final String TERMS_EXTENSION = "tib";++ protected final IndexOutput out;+ final PostingsWriterBase postingsWriter;+ final FieldInfos fieldInfos;+ FieldInfo currentField;+ private final TermsIndexWriterBase termsIndexWriter;+ private final List<TermsWriter> fields = new ArrayList<TermsWriter>();+ private final Comparator<BytesRef> termComp;+ private final String segment;++ public BlockTermsWriter(+ TermsIndexWriterBase termsIndexWriter,+ SegmentWriteState state,+ PostingsWriterBase postingsWriter,+ Comparator<BytesRef> termComp) throws IOException+ {+ final String termsFileName = IndexFileNames.segmentFileName(state.segmentName, state.codecId, TERMS_EXTENSION);+ this.termsIndexWriter = termsIndexWriter;+ this.termComp = termComp;+ out = state.directory.createOutput(termsFileName);+ fieldInfos = state.fieldInfos;+ writeHeader(out);+ currentField = null;+ this.postingsWriter = postingsWriter;+ segment = state.segmentName;++ //System.out.println("BTW.init seg=" + state.segmentName);++ postingsWriter.start(out); // have consumer write its format/header+ }++ protected void writeHeader(IndexOutput out) throws IOException {+ CodecUtil.writeHeader(out, CODEC_NAME, VERSION_CURRENT);++ out.writeLong(0); // leave space for end index pointer+ }++ @Override+ public TermsConsumer addField(FieldInfo field) throws IOException {+ //System.out.println("\nBTW.addField seg=" + segment + " field=" + field.name);+ assert currentField == null || currentField.name.compareTo(field.name) < 0;+ currentField = field;+ TermsIndexWriterBase.FieldWriter fieldIndexWriter = termsIndexWriter.addField(field, out.getFilePointer());+ final TermsWriter terms = new TermsWriter(fieldIndexWriter, field, postingsWriter);+ fields.add(terms);+ return terms;+ }++ @Override+ public void close() throws IOException {++ try {++ int nonZeroCount = 0;+ for(TermsWriter field : fields) {+ if (field.numTerms > 0) {+ nonZeroCount++;+ }+ }++ final long dirStart = out.getFilePointer();++ out.writeVInt(nonZeroCount);+ for(TermsWriter field : fields) {+ if (field.numTerms > 0) {+ out.writeVInt(field.fieldInfo.number);+ out.writeVLong(field.numTerms);+ out.writeVLong(field.termsStartPointer);+ if (!field.fieldInfo.omitTermFreqAndPositions) {+ out.writeVLong(field.sumTotalTermFreq);+ }+ }+ }+ writeTrailer(dirStart);+ } finally {+ try {+ out.close();+ } finally {+ try {+ postingsWriter.close();+ } finally {+ termsIndexWriter.close();+ }+ }+ }+ }++ protected void writeTrailer(long dirStart) throws IOException {+ // TODO Auto-generated method stub+ out.seek(CodecUtil.headerLength(CODEC_NAME));+ out.writeLong(dirStart);+ }++ private static class TermEntry {+ public final BytesRef term = new BytesRef();+ public TermStats stats;+ }++ class TermsWriter extends TermsConsumer {+ private final FieldInfo fieldInfo;+ private final PostingsWriterBase postingsWriter;+ private final long termsStartPointer;+ private long numTerms;+ private final TermsIndexWriterBase.FieldWriter fieldIndexWriter;+ long sumTotalTermFreq;+ private final BytesRef lastTerm = new BytesRef();++ private TermEntry[] pendingTerms;++ private int pendingCount;++ TermsWriter(+ TermsIndexWriterBase.FieldWriter fieldIndexWriter,+ FieldInfo fieldInfo,+ PostingsWriterBase postingsWriter)+ {+ this.fieldInfo = fieldInfo;+ this.fieldIndexWriter = fieldIndexWriter;+ pendingTerms = new TermEntry[32];+ for(int i=0;i<pendingTerms.length;i++) {+ pendingTerms[i] = new TermEntry();+ }+ termsStartPointer = out.getFilePointer();+ postingsWriter.setField(fieldInfo);+ this.postingsWriter = postingsWriter;+ }++ @Override+ public Comparator<BytesRef> getComparator() {+ return termComp;+ }++ @Override+ public PostingsConsumer startTerm(BytesRef text) throws IOException {+ //System.out.println("BTW.startTerm seg=" + segment + " term=" + fieldInfo.name + ":" + text.utf8ToString() + " " + text);+ postingsWriter.startTerm();+ return postingsWriter;+ }++ private final BytesRef lastPrevTerm = new BytesRef();++ @Override+ public void finishTerm(BytesRef text, TermStats stats) throws IOException {++ assert stats.docFreq > 0;+ //System.out.println("BTW.finishTerm seg=" + segment + " term=" + fieldInfo.name + ":" + text.utf8ToString() + " " + text + " df=" + stats.docFreq);++ final boolean isIndexTerm = fieldIndexWriter.checkIndexTerm(text, stats);++ if (isIndexTerm) {+ if (pendingCount > 0) {+ // Instead of writing each term, live, we gather terms+ // in RAM in a pending buffer, and then write the+ // entire block in between index terms:+ flushBlock();+ }+ fieldIndexWriter.add(text, stats, out.getFilePointer());+ }++ if (pendingTerms.length == pendingCount) {+ final TermEntry[] newArray = new TermEntry[ArrayUtil.oversize(pendingCount+1, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];+ System.arraycopy(pendingTerms, 0, newArray, 0, pendingCount);+ for(int i=pendingCount;i<newArray.length;i++) {+ newArray[i] = new TermEntry();+ }+ pendingTerms = newArray;+ }+ final TermEntry te = pendingTerms[pendingCount];+ te.term.copy(text);+ te.stats = stats;++ pendingCount++;++ postingsWriter.finishTerm(stats);+ numTerms++;+ }++ // Finishes all terms in this field+ @Override+ public void finish(long sumTotalTermFreq) throws IOException {+ if (pendingCount > 0) {+ flushBlock();+ }+ // EOF marker:+ out.writeVInt(0);++ this.sumTotalTermFreq = sumTotalTermFreq;+ fieldIndexWriter.finish(out.getFilePointer());+ }++ private int sharedPrefix(BytesRef term1, BytesRef term2) {+ assert term1.offset == 0;+ assert term2.offset == 0;+ int pos1 = 0;+ int pos1End = pos1 + Math.min(term1.length, term2.length);+ int pos2 = 0;+ while(pos1 < pos1End) {+ if (term1.bytes[pos1] != term2.bytes[pos2]) {+ return pos1;+ }+ pos1++;+ pos2++;+ }+ return pos1;+ }++ private final RAMOutputStream bytesWriter = new RAMOutputStream();++ private void flushBlock() throws IOException {+ //System.out.println("BTW.flushBlock pendingCount=" + pendingCount);++ // First pass: compute common prefix for all terms+ // in the block, against term before first term in+ // this block:+ int commonPrefix = sharedPrefix(lastPrevTerm, pendingTerms[0].term);+ for(int termCount=1;termCount<pendingCount;termCount++) {+ commonPrefix = Math.min(commonPrefix,+ sharedPrefix(lastPrevTerm,+ pendingTerms[termCount].term));+ }++ out.writeVInt(pendingCount);+ out.writeVInt(commonPrefix);++ // 2nd pass: write suffixes, as separate byte[] blob+ for(int termCount=0;termCount<pendingCount;termCount++) {+ final int suffix = pendingTerms[termCount].term.length - commonPrefix;+ // TODO: cutover to better intblock codec, instead+ // of interleaving here:+ bytesWriter.writeVInt(suffix);+ bytesWriter.writeBytes(pendingTerms[termCount].term.bytes, commonPrefix, suffix);+ }+ out.writeVInt((int) bytesWriter.getFilePointer());+ bytesWriter.writeTo(out);+ bytesWriter.reset();++ // 3rd pass: write the freqs as byte[] blob+ // TODO: cutover to better intblock codec. simple64?+ // write prefix, suffix first:+ for(int termCount=0;termCount<pendingCount;termCount++) {+ final TermStats stats = pendingTerms[termCount].stats;+ assert stats != null;+ bytesWriter.writeVInt(stats.docFreq);+ if (!fieldInfo.omitTermFreqAndPositions) {+ bytesWriter.writeVLong(stats.totalTermFreq-stats.docFreq);+ }+ }++ out.writeVInt((int) bytesWriter.getFilePointer());+ bytesWriter.writeTo(out);+ bytesWriter.reset();++ postingsWriter.flushTermsBlock();+ lastPrevTerm.copy(pendingTerms[pendingCount-1].term);+ pendingCount = 0;+ }+ }+}diff --git a/lucene/src/java/org/apache/lucene/util/AttributeReflector.java b/lucene/src/java/org/apache/lucene/util/AttributeReflector.javanew file mode 100644index 00000000000..c64d04cbc9f--- /dev/null+++ b/lucene/src/java/org/apache/lucene/util/AttributeReflector.java@@ -0,0 +1,34 @@+package org.apache.lucene.util;++/**+ * 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.+ */++/**+ * This interface is used to reflect contents of {@link AttributeSource} or {@link AttributeImpl}.+ */+public interface AttributeReflector {++ /**+ * This method gets called for every property in an {@link AttributeImpl}/{@link AttributeSource}+ * passing the class name of the {@link Attribute}, a key and the actual value.+ * E.g., an invocation of {@link org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl#reflectWith}+ * would call this method once using {@code org.apache.lucene.analysis.tokenattributes.CharTermAttribute.class}+ * as attribute class, {@code "term"} as key and the actual value as a String.+ */+ public void reflect(Class<? extends Attribute> attClass, String key, Object value);++}diff --git a/lucene/src/test/org/apache/lucene/analysis/tokenattributes/TestSimpleAttributeImpl.java b/lucene/src/test/org/apache/lucene/analysis/tokenattributes/TestSimpleAttributeImpl.javanew file mode 100644index 00000000000..b8e9a0df7e2--- /dev/null+++ b/lucene/src/test/org/apache/lucene/analysis/tokenattributes/TestSimpleAttributeImpl.java@@ -0,0 +1,46 @@+package org.apache.lucene.analysis.tokenattributes;++/**+ * 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.+ */++import org.apache.lucene.util._TestUtil;+import org.apache.lucene.util.LuceneTestCase;++import java.util.Collections;+import java.util.HashMap;++public class TestSimpleAttributeImpl extends LuceneTestCase {++ // this checks using reflection API if the defaults are correct+ public void testAttributes() {+ _TestUtil.assertAttributeReflection(new PositionIncrementAttributeImpl(),+ Collections.singletonMap(PositionIncrementAttribute.class.getName()+"#positionIncrement", 1));+ _TestUtil.assertAttributeReflection(new FlagsAttributeImpl(),+ Collections.singletonMap(FlagsAttribute.class.getName()+"#flags", 0));+ _TestUtil.assertAttributeReflection(new TypeAttributeImpl(),+ Collections.singletonMap(TypeAttribute.class.getName()+"#type", TypeAttribute.DEFAULT_TYPE));+ _TestUtil.assertAttributeReflection(new PayloadAttributeImpl(),+ Collections.singletonMap(PayloadAttribute.class.getName()+"#payload", null));+ _TestUtil.assertAttributeReflection(new KeywordAttributeImpl(),+ Collections.singletonMap(KeywordAttribute.class.getName()+"#keyword", false));+ _TestUtil.assertAttributeReflection(new OffsetAttributeImpl(), new HashMap<String,Object>() {{+ put(OffsetAttribute.class.getName()+"#startOffset", 0);+ put(OffsetAttribute.class.getName()+"#endOffset", 0);+ }});+ }++}diff --git a/solr/contrib/analysis-extras/CHANGES.txt b/solr/contrib/analysis-extras/CHANGES.txtnew file mode 100644index 00000000000..e512decaa99--- /dev/null+++ b/solr/contrib/analysis-extras/CHANGES.txt@@ -0,0 +1,30 @@+ Apache Solr - Analysis Extras+ Release Notes++Introduction+------------+The analysis-extras plugin provides additional analyzers that rely+upon large dependencies/dictionaries.++It includes integration with ICU for multilingual support, and+analyzers for Chinese and Polish.+++$Id$+================== Release 4.0-dev ==================++(No Changes)++================== Release 3.1-dev ==================++* SOLR-2210: Add icu-based tokenizer and filters to contrib/analysis-extras (rmuir)++* SOLR-1336: Add SmartChinese (word segmentation for Simplified Chinese)+ tokenizer and filters to contrib/analysis-extras (rmuir)++* SOLR-2211,LUCENE-2763: Added UAX29URLEmailTokenizerFactory, which implements+ UAX#29, a unicode algorithm with good results for most languages, as well as+ URL and E-mail tokenization according to the relevant RFCs.+ (Tom Burton-West via rmuir)++* SOLR-2237: Added StempelPolishStemFilterFactory to contrib/analysis-extras (rmuir)diff --git a/solr/src/java/org/apache/solr/search/SolrSortField.java b/solr/src/java/org/apache/solr/search/SolrSortField.javanew file mode 100644index 00000000000..8b21e4357bd--- /dev/null+++ b/solr/src/java/org/apache/solr/search/SolrSortField.java@@ -0,0 +1,31 @@+/**+ * 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.+ */+++package org.apache.solr.search;++import org.apache.lucene.search.IndexSearcher;+import org.apache.lucene.search.SortField;++import java.io.IOException;++/**@lucene.internal+ *+ */+public interface SolrSortField {+ public SortField weight(IndexSearcher searcher) throws IOException;+}diff --git a/solr/src/test/org/apache/solr/response/TestPHPSerializedResponseWriter.java b/solr/src/test/org/apache/solr/response/TestPHPSerializedResponseWriter.javanew file mode 100644index 00000000000..d67e1fb8cb8--- /dev/null+++ b/solr/src/test/org/apache/solr/response/TestPHPSerializedResponseWriter.java@@ -0,0 +1,107 @@+/**+ * 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.+ */++package org.apache.solr.response;++import java.io.IOException;+import java.io.StringWriter;+import java.util.Arrays;+import java.util.LinkedHashMap;++import org.apache.solr.SolrTestCaseJ4;+import org.apache.solr.common.util.NamedList;+import org.apache.solr.response.PHPSerializedResponseWriter;+import org.apache.solr.request.SolrQueryRequest;+import org.apache.solr.response.QueryResponseWriter;+import org.apache.solr.response.SolrQueryResponse;+import org.apache.solr.common.SolrDocument;+import org.apache.solr.common.SolrDocumentList;+import org.junit.BeforeClass;+import org.junit.Test;++/**+ * Basic PHPS tests based on JSONWriterTest+ *+ */+public class TestPHPSerializedResponseWriter extends SolrTestCaseJ4 {+ @BeforeClass+ public static void beforeClass() throws Exception {+ initCore("solrconfig.xml","schema.xml");+ }++ @Test+ public void testSimple() throws IOException {+ SolrQueryRequest req = req("dummy");+ SolrQueryResponse rsp = new SolrQueryResponse();+ QueryResponseWriter w = new PHPSerializedResponseWriter();++ StringWriter buf = new StringWriter();+ rsp.add("data1", "hello");+ rsp.add("data2", 42);+ rsp.add("data3", true);+ w.write(buf, req, rsp);+ assertEquals("a:3:{s:5:\"data1\";s:5:\"hello\";s:5:\"data2\";i:42;s:5:\"data3\";b:1;}",+ buf.toString());+ req.close();+ }+++ @Test+ public void testSolrDocuments() throws IOException {+ SolrQueryRequest req = req("q","*:*");+ SolrQueryResponse rsp = new SolrQueryResponse();+ QueryResponseWriter w = new PHPSerializedResponseWriter();+ StringWriter buf = new StringWriter();++ SolrDocument d = new SolrDocument();++ SolrDocument d1 = d;+ d.addField("id","1");+ d.addField("data1","hello");+ d.addField("data2",42);+ d.addField("data3",true);++ // multivalued fields:++ // extremely odd edge case: value is a map++ // we use LinkedHashMap because we are doing a string comparison+ // later and we need predictible ordering+ LinkedHashMap<String,String> nl = new LinkedHashMap<String,String>();+ nl.put("data4.1", "hashmap");+ nl.put("data4.2", "hello");+ d.addField("data4",nl);+ // array value+ d.addField("data5",Arrays.asList("data5.1", "data5.2", "data5.3"));++ // adding one more document to test array indexes+ d = new SolrDocument();+ SolrDocument d2 = d;+ d.addField("id","2");++ SolrDocumentList sdl = new SolrDocumentList();+ sdl.add(d1);+ sdl.add(d2);+ rsp.add("response", sdl);++ w.write(buf, req, rsp);+ assertEquals("a:1:{s:8:\"response\";a:3:{s:8:\"numFound\";i:0;s:5:\"start\";i:0;s:4:\"docs\";a:2:{i:0;a:6:{s:2:\"id\";s:1:\"1\";s:5:\"data1\";s:5:\"hello\";s:5:\"data2\";i:42;s:5:\"data3\";b:1;s:5:\"data4\";a:2:{s:7:\"data4.1\";s:7:\"hashmap\";s:7:\"data4.2\";s:5:\"hello\";}s:5:\"data5\";a:3:{i:0;s:7:\"data5.1\";i:1;s:7:\"data5.2\";i:2;s:7:\"data5.3\";}}i:1;a:1:{s:2:\"id\";s:1:\"2\";}}}}",+ buf.toString());+ req.close();+ }++}