Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A08EF9A31 for ; Tue, 6 Mar 2012 15:40:20 +0000 (UTC) Received: (qmail 73194 invoked by uid 500); 6 Mar 2012 15:40:19 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 73135 invoked by uid 500); 6 Mar 2012 15:40:19 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 73123 invoked by uid 99); 6 Mar 2012 15:40:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 15:40:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 15:40:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D42EFBE20 for ; Tue, 6 Mar 2012 15:39:57 +0000 (UTC) Date: Tue, 6 Mar 2012 15:39:57 +0000 (UTC) From: "Sebb (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <21664986.27701.1331048397870.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1373623055.25363.1330997397011.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-3204) solr-commons-csv must not use the org.apache.commons.csv package MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-3204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223335#comment-13223335 ] Sebb commented on SOLR-3204: ---------------------------- This is a classpath issue - a class can be loaded only once in a given classpath. It's vitally important to ensure that each class has only a single definition in a classpath, otherwise all sorts of failures can occur. These failures can be extremely difficult to debug. Maven uses the groupId/artifactId to resolve multiple references to the same jar. It picks one copy of the most recent version. This only works properly if the Maven ids are unique for each package. It does not read the package names within the jar; it assumes that the POM is correct for the associated jar. In this case, the Solr pom uses its own unique groupId/artifactId, but the package names used within the jar (and indeed the pom inside the jar) are for an entirely different package. This is totally contrary to the way Maven is supposed to be used. The consequence is that Maven does not know that the renamed "solr" commons-csv jar uses the same package as the "real" commons-csv, so it cannot prevent duplicate classes on the classpath. > solr-commons-csv must not use the org.apache.commons.csv package > ---------------------------------------------------------------- > > Key: SOLR-3204 > URL: https://issues.apache.org/jira/browse/SOLR-3204 > Project: Solr > Issue Type: Bug > Components: Build > Affects Versions: 3.5 > Reporter: Emmanuel Bourg > Priority: Blocker > Fix For: 3.6 > > Attachments: solr-csv.patch > > > The solr-commons-csv artifact reused the code from the Apache Commons CSV project but the package wasn't changed to something else than org.apache.commons.csv in the process. This creates a compatibility issue as the Apache Commons team works toward an official release of Commons CSV. It prevents Commons CSV from using its own org.apache.commons.csv package, or forces the renaming of all the classes to avoid a classpath conflict. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org