From dev-return-13308-apmail-karaf-dev-archive=karaf.apache.org@karaf.apache.org Tue Jan 8 12:34:34 2019 Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5169D18C47 for ; Tue, 8 Jan 2019 12:34:34 +0000 (UTC) Received: (qmail 53922 invoked by uid 500); 8 Jan 2019 12:34:34 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 53882 invoked by uid 500); 8 Jan 2019 12:34:34 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 53870 invoked by uid 99); 8 Jan 2019 12:34:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2019 12:34:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 07C34C7B20 for ; Tue, 8 Jan 2019 12:34:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ZmW8lP1poM2C for ; Tue, 8 Jan 2019 12:34:31 +0000 (UTC) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2B8AC5F232 for ; Tue, 8 Jan 2019 12:34:31 +0000 (UTC) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.110] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id A15E91BF207 for ; Tue, 8 Jan 2019 12:34:25 +0000 (UTC) Subject: Re: Version alignment report for Karaf 4.2.3-SNAPSHOT - 1/2 To: dev@karaf.apache.org References: From: =?UTF-8?Q?Jean-Baptiste_Onofr=c3=a9?= Message-ID: <7b38e655-712d-82d2-7bf1-627320e694c7@nanthrax.net> Date: Tue, 8 Jan 2019 13:34:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Nice Greg. What do you think about enabling this report via Jenkins (using a profile) ? Regards JB On 08/01/2019 13:28, Grzegorz Grzybek wrote: > Hello > > For any custom Karaf distro we can enable generation of "consistency > report" - check sample here: > http://people.apache.org/~ggrzybek/bundle-report-full-karaf.xml (requires > browser that can do XSLT transformation using ) > > it can be configured using: > > > org.apache.karaf.tooling > karaf-maven-plugin > > > ${project.build.directory}/assembly > .... > > karaf-maven-plugin:assembly then generates: > - bundle-report.xslt - stylesheet to transform XMLs > - bundle-report-full.xml - full report, including blacklisted > repos/features/bundles > - bundle-report.xml - a report without blacklisted items > > The idea behind this report is to show _duplicates_ - bundles that appear > with the same groupId and artifactId (maven) but with different version. > The report also shows the features the bundles are declared in and feature > repositories the features come from. > > Entire closure of bundles → features → repositories is taken into account. > > It's most important when creating custom Karaf distribution - we can check > if some features declare conflicting bundles - we (usually) don't want to > have two versions of servlet-api JAR installed (though it's not a problem > with guava - it's even a must). > > When a _duplicate_ is found or even duplicate repositories are referenced > (directly or transitively) usually there's a need to _blacklist_ something. > > With https://issues.apache.org/jira/browse/KARAF-5376 I've introduced a way > (documentation is still being written...) to blacklist > bundles/features/repositories or override bundles/features/repositories. > > Blacklisting/overriding is done using etc/org.apache.karaf.features.xml > file. Short summary of the mechanism is here: > https://issues.apache.org/jira/browse/KARAF-5376?focusedCommentId=16431939&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16431939 > > In next email, I'll show what should/could be aligned in master branch for > Karaf 4.2.3-SNAPSHOT. > > regards > Grzegorz Grzybek > -- Jean-Baptiste Onofré jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com