Skip to content

Apache Lucene open-source search software

SOLR-3308: nuke the solr-jsonic maven packaging

Robert Muird219d119e2de
diff --git a/dev-tools/eclipse/dot.classpath b/dev-tools/eclipse/dot.classpath
index dbc4e7890a4..46c0f418e3f 100644
--- a/dev-tools/eclipse/dot.classpath
+++ b/dev-tools/eclipse/dot.classpath
@@ -157,7 +157,7 @@
<classpathentry kind="lib" path="solr/contrib/extraction/lib/tika-parsers-1.0.jar"/>
<classpathentry kind="lib" path="solr/contrib/extraction/lib/xmlbeans-2.3.0.jar"/>
<classpathentry kind="lib" path="solr/contrib/langid/lib/langdetect-c51112119be53a81e59706ce57bacaa90c052284.jar"/>
- <classpathentry kind="lib" path="solr/contrib/langid/lib/jsonic-1.2.0.jar"/>
+ <classpathentry kind="lib" path="solr/contrib/langid/lib/jsonic-1.2.7.jar"/>
<classpathentry kind="lib" path="solr/contrib/uima/lib/commons-digester-2.0.jar"/>
<classpathentry kind="lib" path="solr/contrib/uima/lib/AlchemyAPIAnnotator-2.3.1.jar"/>
<classpathentry kind="lib" path="solr/contrib/uima/lib/OpenCalaisAnnotator-2.3.1.jar"/>
diff --git a/dev-tools/maven/pom.xml.template b/dev-tools/maven/pom.xml.template
index 0a4bac5ec96..b86b77b61af 100644
--- a/dev-tools/maven/pom.xml.template
+++ b/dev-tools/maven/pom.xml.template
@@ -211,9 +211,9 @@
<version>1.2</version>
</dependency>
<dependency>
- <groupId>org.apache.solr</groupId>
- <artifactId>solr-jsonic</artifactId>
- <version>${project.version}</version>
+ <groupId>net.arnx</groupId>
+ <artifactId>jsonic</artifactId>
+ <version>1.2.7</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
@@ -625,21 +625,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<executions>
- <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>
diff --git a/dev-tools/maven/solr/contrib/langid/pom.xml.template b/dev-tools/maven/solr/contrib/langid/pom.xml.template
index 65326069d1b..fc5a8130a1c 100644
--- a/dev-tools/maven/solr/contrib/langid/pom.xml.template
+++ b/dev-tools/maven/solr/contrib/langid/pom.xml.template
@@ -72,8 +72,8 @@
<scope>test</scope>
</dependency>
<dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>solr-jsonic</artifactId>
+ <groupId>net.arnx</groupId>
+ <artifactId>jsonic</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
diff --git a/solr/contrib/langid/build.xml b/solr/contrib/langid/build.xml
index dbb8b5a0e44..16683c5c1e9 100644
--- a/solr/contrib/langid/build.xml
+++ b/solr/contrib/langid/build.xml
@@ -33,9 +33,6 @@
<dirname file="${ant.file.solr-langid}" property="solr-langid.dir"/>
<target name="dist-maven" depends="jar-core,javadocs,jar-src,common.dist-maven">
- <m2-deploy-with-pom-template pom.xml="${solr-langid.dir}/lib/jsonic-pom.xml.template"
- jar.file="${solr-langid.dir}/lib/jsonic-1.2.0.jar" />
-
<m2-deploy-with-pom-template pom.xml="${solr-langid.dir}/lib/langdetect-pom.xml.template"
jar.file="${solr-langid.dir}/lib/langdetect-c51112119be53a81e59706ce57bacaa90c052284.jar" />
</target>
diff --git a/solr/contrib/langid/ivy.xml b/solr/contrib/langid/ivy.xml
index 03a75cb5d66..a9375065bf6 100644
--- a/solr/contrib/langid/ivy.xml
+++ b/solr/contrib/langid/ivy.xml
@@ -22,8 +22,7 @@
<dependency org="langdetect" name="langdetect" rev="c51112119be53a81e59706ce57bacaa90c052284">
<artifact name="langdetect" type="jar" url="http://language-detection.googlecode.com/git-history/c51112119be53a81e59706ce57bacaa90c052284/lib/langdetect.jar"/>
</dependency>
- <dependency org="jsonic" name="jsonic" rev="1.2.0">
- <artifact name="jsonic" type="jar" url="http://language-detection.googlecode.com/git-history/c51112119be53a81e59706ce57bacaa90c052284/lib/jsonic-1.2.0.jar"/>
- </dependency>
+ <dependency org="net.arnx" name="jsonic" rev="1.2.7" transitive="false"/>
+ <exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/>
</dependencies>
</ivy-module>
diff --git a/solr/contrib/langid/lib/jsonic-pom.xml.template b/solr/contrib/langid/lib/jsonic-pom.xml.template
index 3f0bb2f58a7..e69de29bb2d 100644
--- a/solr/contrib/langid/lib/jsonic-pom.xml.template
+++ b/solr/contrib/langid/lib/jsonic-pom.xml.template
@@ -1,36 +0,0 @@
-<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.
- -->
-
- <parent>
- <groupId>org.apache.solr</groupId>
- <artifactId>solr-parent</artifactId>
- <version>@version@</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.solr</groupId>
- <artifactId>solr-jsonic</artifactId>
- <name>Solr Specific JSONIC</name>
- <version>@version@</version>
- <description>Solr Specific JSONIC v1.2.0</description>
- <packaging>jar</packaging>
-</project>