Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-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 3574C1890A for ; Mon, 14 Mar 2016 14:49:34 +0000 (UTC) Received: (qmail 91450 invoked by uid 500); 14 Mar 2016 14:49:33 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 91277 invoked by uid 500); 14 Mar 2016 14:49:33 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 91232 invoked by uid 99); 14 Mar 2016 14:49:33 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Mar 2016 14:49:33 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 93DB72C1F5D for ; Mon, 14 Mar 2016 14:49:33 +0000 (UTC) Date: Mon, 14 Mar 2016 14:49:33 +0000 (UTC) From: "Aled Sage (JIRA)" To: dev@brooklyn.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BROOKLYN-223) The dist contains duplicate classes in different jars 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/BROOKLYN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15193390#comment-15193390 ] Aled Sage commented on BROOKLYN-223: ------------------------------------ Perhaps we should use this to detect duplicate classes, and fail the build if there are any?! https://github.com/basepom/duplicate-finder-maven-plugin But first step is to fix the duplicates we do have. > The dist contains duplicate classes in different jars > ----------------------------------------------------- > > Key: BROOKLYN-223 > URL: https://issues.apache.org/jira/browse/BROOKLYN-223 > Project: Brooklyn > Issue Type: Bug > Reporter: Svetoslav Neykov > > Various jars in the dist contain conflicting class implementations. > Need to check and confirm whether duplicate classes are expected or address possible conflicts. > Sample duplicates: > * org.xmlpull.v1.XmlPullParserException > * org.objectweb.asm.signature.SignatureWriter > * io.swagger.util.Yaml > * com.jcraft.jsch.agentproxy.USocketFactory > For example asm jars with different groupIds are included. Aspectj is included with two jars one of which is subset of the other (aspectjrt-1.7.4.jar and aspectjweaver-1.7.4.jar). Swagger is bundled in our brooklyn-utils-rest-swagger project jar, but still included as a separate dependency. > Reproducing: > * get all (potentially) conflicting classes: {{find . -name "*.jar" | xargs -n1 unzip -Z -1 | grep "\.class$" | sort | uniq -c | sort -nr | awk '$1 > 1'}} > * list jars including specific class: {{for i in `find . -name '*.jar'`; do if unzip -Z -1 $i | grep -q '^org/xmlpull/v1/XmlPullParserException.class'; then echo $i; fi; done}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)