Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DDE60200BEC for ; Thu, 29 Dec 2016 19:52:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DC7D0160B2D; Thu, 29 Dec 2016 18:52:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 32564160B23 for ; Thu, 29 Dec 2016 19:52:07 +0100 (CET) Received: (qmail 97343 invoked by uid 500); 29 Dec 2016 18:52:05 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 97330 invoked by uid 99); 29 Dec 2016 18:52:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2016 18:52:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C241E1A034E for ; Thu, 29 Dec 2016 18:52:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=sematext-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id zPT2ZD0h-OMP for ; Thu, 29 Dec 2016 18:52:02 +0000 (UTC) Received: from mail-wj0-f179.google.com (mail-wj0-f179.google.com [209.85.210.179]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 736715FB74 for ; Thu, 29 Dec 2016 18:52:01 +0000 (UTC) Received: by mail-wj0-f179.google.com with SMTP id c11so158986826wjx.3 for ; Thu, 29 Dec 2016 10:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sematext-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=179oY6FreTIvvBCxxDNqimjF8TOi+md4q+xVJGFiygs=; b=Zkw3yl5gA9zYhYToqWTsrqN0+YcAX0ZjWne/AklhHWsuN0XKLwUam+Wp1ta1G9r3iB udWqNuYJz+MEJk+xxpzscv73erWf8TG2sGrA3t7AHFFEaWIpyX86+P2omFgdQa+cgT8w WMsIFzBIh4dKZxJotUW7u26hVLYQmGeBoAU6j/y6vV+GXspexqiqfhI9cQ/RL4fJ+cSF DY+Hbj8YuVxtamzOMESjREe7xoFZ1l6HuOXFwlYH4Jsl+swKBlzvQquX9meIDrcigATT bFOqS0sGcamlAmK+vIflPK6sIVtzP8d2S+mORNZhqBOcG48Ik4WzYXHAletBEH6kASv4 pzyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=179oY6FreTIvvBCxxDNqimjF8TOi+md4q+xVJGFiygs=; b=YhODvC+g1BDRZjedvoYAFcADTisA+G1HZVmrLUYtZiPTfssEIagSm/+xNyJXyC4HUL W9ysP7W90lQtU0oPXgIdfshvtv5eym5f0scEhU3InwEEee0zrB10yD2hzem+oxySNvVq JAjWe5d7cfUG94U/bcAXsROPqecdiEPO0nPR0hu4DzfNTV6gvUNZQXGek3tfXs8k+bsv 9u5M5K0pmSaUS0azPTK8YVquAxYgfGeNBe9GXEO64cNkEb2c2mUU1/eySkPOPr+MbDs6 UmbdqypoXLYmGbYpFyda6ZtlrWrTZGnz9enwMWGdebkOe+VsQGeHW6J4My+Na5lsBwJw W8Gw== X-Gm-Message-State: AIkVDXJzcW4FM4ylGm9MYQd4zCiIEsuzbKgEMPEoY/BvRBtVi4pFQj2rduAJEKJo9KYxLw== X-Received: by 10.194.164.42 with SMTP id yn10mr37654589wjb.46.1483037520621; Thu, 29 Dec 2016 10:52:00 -0800 (PST) Received: from [192.168.0.105] (cable-77-77-238-192.dynamic.telemach.ba. [77.77.238.192]) by smtp.gmail.com with ESMTPSA id jm6sm69937989wjb.27.2016.12.29.10.51.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Dec 2016 10:51:59 -0800 (PST) Subject: Re: including dependency jars for SOLR plugins To: solr-user@lucene.apache.org References: From: Emir Arnautovic Message-ID: Date: Thu, 29 Dec 2016 19:51:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Thu, 29 Dec 2016 18:52:08 -0000 Hi Vinay, You need to include libs using lib directives in Solr config: https://cwiki.apache.org/confluence/display/solr/Lib+Directives+in+SolrConfig. Regrads, Emir On 29.12.2016 19:11, Vinay B, wrote: > I'm modifying out custom update handler and the modifications needs access > to a third party jar (microsoft azure). > > For what it's worth, I use mvn as my build / packaging tool. > > During runtime, I've been encountering class not found errors in the plugin > related to the azure library. > > 1. Is there something / some special place to place the azure jars so the > PLUGIN can access the azure classes? I tried putting the azure jar in the > tomcat/lib , WEB_INF/lib and also beside the plugin jar in the > updatehandler/lib directory . Just to be clear, the update handler itself > works fine. It's just the enhancements to support azure that result in > class not found errors > > 2. I managed to make things work by including all dependencies but that has > bloated the plugin size significantly to over 70 MB. Is this the only way? > > See an example of this approach at > https://leifproblems.wordpress.com/2015/04/16/loading-a-solr-plugin-with-all-maven-dependencies/ > -- Monitoring * Alerting * Anomaly Detection * Centralized Log Management Solr & Elasticsearch Support * http://sematext.com/