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 9044BDFD3 for ; Fri, 14 Sep 2012 09:11:10 +0000 (UTC) Received: (qmail 44708 invoked by uid 500); 14 Sep 2012 09:11:09 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 44654 invoked by uid 500); 14 Sep 2012 09:11:08 -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 44484 invoked by uid 99); 14 Sep 2012 09:11:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2012 09:11:08 +0000 Date: Fri, 14 Sep 2012 20:11:07 +1100 (NCT) From: "Lance Norskog (JIRA)" To: dev@lucene.apache.org Message-ID: <1659204621.79592.1347613868001.JavaMail.jiratomcat@arcas> In-Reply-To: <1891777400.43.1346015167609.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (SOLR-3760) Build packaging of complex contrib packages just plain does not work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455683#comment-13455683 ] Lance Norskog commented on SOLR-3760: ------------------------------------- A more detailed explanation of the problem: * lucene/analysis/X code in a jar. * Lucene jar depends on third-party jar. * lucene/analysis/X/ivy.xml downloads third-party jar. * lucene/analysis/X build works. * Solr factory in contrib/X depends on Lucene jar which depends on third-party jar. * Third-party jar is downloaded in Solr contrib/X/ivy.xml ** Thus, contrib/X build works because classpath is factory->lucene jar->third-party jar. However! * Lucene jar is packed into Solr war. * Lucene third-party jar is not packed into Solr war. * Solr factory jar is not packed into Solr war. * example/solr/collection1/conf/solrconfig.xml refers to ** ....../contrib/X/lib ** ....../dist/apache-solr-X-..... *** both are in the same classloader- order of declarations is not a problem. * solrconfig.xml classloader can find Solr factory in apache-solr-X-.....jar * Solr factory classloader supplied by solrconfig.xml can find lucene jar in solr.war * Lucene jar uses solr.war classloader ** solr.war classloader cannot see third-party jar ** _solr/contrib/X factory for lucene/analysis/X fails to load_ (I think I got that right.) > Build packaging of complex contrib packages just plain does not work > -------------------------------------------------------------------- > > Key: SOLR-3760 > URL: https://issues.apache.org/jira/browse/SOLR-3760 > Project: Solr > Issue Type: Improvement > Components: Build > Reporter: Lance Norskog > > The build system packages Lucene libraries in the Solr war, but they do not pack libraries required by the Lucene libraries. The UIMA and analysis-extras contrib packages have factories for the Lucene libraries. > The net effect is that when solrconfig.xml include directives for dist/xxx-contribX-xxx.jar and solr/contrib/contribX/lib, this fails because the lucene analyzer file inside the solr war cannot find the library files in solr/contrib/contribX/lib because the classloader for the war does not find the libraries from the directives. > Two alternative fixes are presented below. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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