SOLR-2839: Maven configuration: added support for new langdetect implementation

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1186804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2011-10-20 13:46:53 +00:00
parent bc84eb4df2
commit 32866e48bf
2 changed files with 52 additions and 0 deletions

View File

@ -220,6 +220,16 @@
<artifactId>solr-commons-csv</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-jsonic</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-langdetect</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-noggit</artifactId>
@ -677,6 +687,35 @@
<file>solr/example/lib/jetty-util-${patched.jetty.version}.jar</file>
</configuration>
</execution>
<execution>
<id>install-jsonic</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<!-- jsonic v1.2.7 is in the central maven repo - remove this once upgraded. -->
<groupId>org.apache.solr</groupId>
<artifactId>solr-jsonic</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
<file>solr/contrib/langid/lib/jsonic-1.2.0.jar</file>
</configuration>
</execution>
<execution>
<id>install-langdetect</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.apache.solr</groupId>
<artifactId>solr-langdetect</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
<file>solr/contrib/langid/lib/langdetect-r111.jar</file>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

View File

@ -62,6 +62,14 @@
<artifactId>servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-jsonic</artifactId>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-langdetect</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
@ -78,6 +86,11 @@
<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>src/test-files</directory>