Apache Lucene open-source search software
SOLR-3204: The packaged pre-release artifact of Commons CSV used the original package name (org.apache.commons.csv). This created a compatibility issue as the Apache Commons team works toward an official release of Commons CSV. JARJAR (http://code.google.com/p/jarjar/) was used to change the package name to org.apache.solr.internal.csv
Uwe Schindler7ef0b53961b2
diff --git a/dev-tools/eclipse/dot.classpath b/dev-tools/eclipse/dot.classpathindex 0f123e6a3f6..a2f1a221ea4 100644--- a/dev-tools/eclipse/dot.classpath+++ b/dev-tools/eclipse/dot.classpath@@ -100,7 +100,7 @@<classpathentry kind="lib" path="modules/benchmark/lib/commons-compress-1.2.jar"/><classpathentry kind="lib" path="modules/benchmark/lib/xercesImpl-2.9.1-patched-XERCESJ-1257.jar"/><classpathentry kind="lib" path="solr/lib/apache-solr-noggit-r1211150.jar"/>- <classpathentry kind="lib" path="solr/lib/commons-csv-1.0-SNAPSHOT-r966014.jar"/>+ <classpathentry kind="lib" path="solr/lib/apache-solr-commons-csv-1.0-SNAPSHOT-r966014.jar"/><classpathentry kind="lib" path="solr/lib/commons-fileupload-1.2.1.jar"/><classpathentry kind="lib" path="solr/lib/commons-httpclient-3.1.jar"/><classpathentry kind="lib" path="solr/lib/commons-io-2.1.jar"/>diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex e7331d9249a..2eeb489c49a 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -642,6 +642,12 @@ Bug Fixes* SOLR-3195: timeAllowed is ignored for grouping queries(Russell Black via Martijn van Groningen)+* SOLR-3204: The packaged pre-release artifact of Commons CSV used the original+ package name (org.apache.commons.csv). This created a compatibility issue as+ the Apache Commons team works toward an official release of Commons CSV.+ JARJAR (http://code.google.com/p/jarjar/) was used to change the package name+ to org.apache.solr.internal.csv. (Uwe Schindler, Emmanuel Bourg)+Other Changes----------------------* SOLR-2922: Upgrade commons-io and commons-lang to 2.1 and 2.6, respectively. (koji)diff --git a/solr/core/build.xml b/solr/core/build.xmlindex 895c8abedff..bcee88f3b71 100644--- a/solr/core/build.xml+++ b/solr/core/build.xml@@ -23,8 +23,8 @@<target name="compile-core" depends="compile-solrj,common-solr.compile-core"/><target name="dist-maven" depends="jar-core,javadocs,jar-src,common.dist-maven">- <m2-deploy-with-pom-template pom.xml="${common-solr.dir}/lib/solr-commons-csv-pom.xml.template"- jar.file="${common-solr.dir}/lib/commons-csv-1.0-SNAPSHOT-r966014.jar" />+ <m2-deploy-with-pom-template pom.xml="${common-solr.dir}/lib/apache-solr-commons-csv-pom.xml.template"+ jar.file="${common-solr.dir}/lib/apache-solr-commons-csv-1.0-SNAPSHOT-r966014.jar" /><m2-deploy-with-pom-template pom.xml="${common-solr.dir}/lib/apache-solr-noggit-pom.xml.template"jar.file="${common-solr.dir}/lib/apache-solr-noggit-r1211150.jar" />diff --git a/solr/core/src/java/org/apache/solr/handler/CSVRequestHandler.java b/solr/core/src/java/org/apache/solr/handler/CSVRequestHandler.javaindex 1318ed46dc9..b294e98997e 100755--- a/solr/core/src/java/org/apache/solr/handler/CSVRequestHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/CSVRequestHandler.java@@ -29,8 +29,8 @@ import org.apache.solr.schema.IndexSchema;import org.apache.solr.schema.SchemaField;import org.apache.solr.update.*;import org.apache.solr.update.processor.UpdateRequestProcessor;-import org.apache.commons.csv.CSVStrategy;-import org.apache.commons.csv.CSVParser;+import org.apache.solr.internal.csv.CSVStrategy;+import org.apache.solr.internal.csv.CSVParser;import org.apache.commons.io.IOUtils;import java.util.regex.Pattern;diff --git a/solr/core/src/java/org/apache/solr/response/CSVResponseWriter.java b/solr/core/src/java/org/apache/solr/response/CSVResponseWriter.javaindex 6049dc87b4c..d3e4f3ea789 100755--- a/solr/core/src/java/org/apache/solr/response/CSVResponseWriter.java+++ b/solr/core/src/java/org/apache/solr/response/CSVResponseWriter.java@@ -17,8 +17,8 @@package org.apache.solr.response;-import org.apache.commons.csv.CSVPrinter;-import org.apache.commons.csv.CSVStrategy;+import org.apache.solr.internal.csv.CSVPrinter;+import org.apache.solr.internal.csv.CSVStrategy;import org.apache.lucene.index.IndexableField;import org.apache.solr.common.SolrDocument;import org.apache.solr.common.SolrDocumentList;diff --git a/solr/lib/apache-solr-commons-csv-1.0-SNAPSHOT-r966014.jar b/solr/lib/apache-solr-commons-csv-1.0-SNAPSHOT-r966014.jarnew file mode 100644index 00000000000..f1974bb0529--- /dev/null+++ b/solr/lib/apache-solr-commons-csv-1.0-SNAPSHOT-r966014.jar@@ -0,0 +1,2 @@+AnyObjectId[bab8b31fb99256e13fc6010701db560243c47fa7] was removed in git history.+Apache SVN contains full history.\ No newline at end of filediff --git a/solr/lib/commons-csv-LICENSE-ASL.txt b/solr/lib/apache-solr-commons-csv-LICENSE-ASL.txtsimilarity index 100%rename from solr/lib/commons-csv-LICENSE-ASL.txtrename to solr/lib/apache-solr-commons-csv-LICENSE-ASL.txtdiff --git a/solr/lib/commons-csv-NOTICE.txt b/solr/lib/apache-solr-commons-csv-NOTICE.txtsimilarity index 51%rename from solr/lib/commons-csv-NOTICE.txtrename to solr/lib/apache-solr-commons-csv-NOTICE.txtindex 5f1f5c07616..d81b8ff8db2 100644--- a/solr/lib/commons-csv-NOTICE.txt+++ b/solr/lib/apache-solr-commons-csv-NOTICE.txt@@ -3,3 +3,7 @@ Copyright 2005-2006 The Apache Software FoundationThis product includes software developed byThe Apache Software Foundation (http://www.apache.org/).++This JAR artifact contains a pre-release version of+Apache Commons CSV, that was jarjar'ed to have a Solr+private package name. Don't use it outside of Solr.diff --git a/solr/lib/solr-commons-csv-pom.xml.template b/solr/lib/apache-solr-commons-csv-pom.xml.templatesimilarity index 100%rename from solr/lib/solr-commons-csv-pom.xml.templaterename to solr/lib/apache-solr-commons-csv-pom.xml.templatediff --git a/solr/lib/commons-csv-1.0-SNAPSHOT-r966014.jar b/solr/lib/commons-csv-1.0-SNAPSHOT-r966014.jardeleted file mode 100644index c048f95eac3..00000000000--- a/solr/lib/commons-csv-1.0-SNAPSHOT-r966014.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[8439e6f1a8b1d82943f84688b8086869255eda86] was removed in git history.-Apache SVN contains full history.\ No newline at end of file