Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DECCB10320 for ; Mon, 23 Dec 2013 14:35:20 +0000 (UTC) Received: (qmail 70045 invoked by uid 500); 23 Dec 2013 14:35:06 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 69900 invoked by uid 500); 23 Dec 2013 14:34:57 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 69889 invoked by uid 99); 23 Dec 2013 14:34:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Dec 2013 14:34:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of david.bosschaert@gmail.com designates 74.125.82.46 as permitted sender) Received: from [74.125.82.46] (HELO mail-wg0-f46.google.com) (74.125.82.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Dec 2013 14:34:49 +0000 Received: by mail-wg0-f46.google.com with SMTP id m15so4878283wgh.25 for ; Mon, 23 Dec 2013 06:34:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Lqaeq4Go84GiuGUKywbDhNysqTtqLMWNDEhXmxXy5Ag=; b=fwXZNMW80rJar4+e9OHw/qnllzI8iEgmXIO81WZjG+7Ddi1oJPZVbeU9GGDfQzTLWb mhxRjX8bU+XBQtLY0KNDjaxN8KJoKQLN2C2rfJW+rbRqfWow58OzrHR447px++xZKcsA 99q2ufoBvBAwPVvuTPzj3lMvCLN8un03RK5izYEAbMyjbYSFas9/Mv1eV2S0jLl+RqY2 ay3QsSi5UUcv+Ovz8u+jNKA+9yEqGNrYk3kl3hMZetzYvNL6bBNZnsNXCDC11SnUPl79 RG7nv+hDFS7L3RsMFXuCc7WHC8Jldk55LmxEk4GdbFSBnMEQxQDtZL4pp/aDbBqwIMlB 8xKg== X-Received: by 10.194.5.7 with SMTP id o7mr18513015wjo.17.1387809269488; Mon, 23 Dec 2013 06:34:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.71.194 with HTTP; Mon, 23 Dec 2013 06:34:09 -0800 (PST) In-Reply-To: References: From: David Bosschaert Date: Mon, 23 Dec 2013 14:34:09 +0000 Message-ID: Subject: Re: Maven Felix bundle / merge of files META-INF/Services To: users@felix.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Charles, If these files are just for use with ServiceLoader you might not want to export the packages at all and look at the OSGi Service Loader Mediator spec [1] or the Apache Aries SPI-Fly project [2] (which implements that spec) for a solution? Cheers, David [1] Chapter 133 in OSGi Enterprise R5 http://www.osgi.org/Download/Release5 [2] http://aries.apache.org/modules/spi-fly.html On 23 December 2013 14:20, Charles Moulliard wrote: > Hi, > > I'm facing issues to generate a bundle (= merge of ElasticSearch + Lucene > artifacts). Why : They both share same files under this directory > META-INF/services : > > org.apache.lucene.codecs.Codec > org.apache.lucene.codecs.DocValuesFormat > org.apache.lucene.codecs.PostingsFormat > > and org.apache.lucene.codecs.PostingsFormat file content diverges > > Lucene > > org.apache.lucene.codecs.lucene40.Lucene40PostingsFormat > org.apache.lucene.codecs.lucene41.Lucene41PostingsFormat > > ElasticSearch > > org.elasticsearch.index.codec.postingsformat.BloomFilterPostingsFormat > org.elasticsearch.index.codec.postingsformat.ElasticSearch090PostingsFormat > org.elasticsearch.search.suggest.completion.Completion090PostingsFormat > > I'm using split-package / maven-shade but the result generated > (merge-first, merge-last, first or last) does not allow to merge both > files. Is there a trick/solution ? > The pom file that I use to generate the elasticsearch bundle is available > here : https://gist.github.com/8097375 > > Regards, > > -- > Charles Moulliard > Apache Committer / Architect @RedHat > Twitter : @cmoulliard | Blog : http://cmoulliard.github.io --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org