Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2D2117E8E for ; Sun, 5 Apr 2015 18:59:51 +0000 (UTC) Received: (qmail 67906 invoked by uid 500); 5 Apr 2015 18:59:50 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 67826 invoked by uid 500); 5 Apr 2015 18:59:50 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 67814 invoked by uid 99); 5 Apr 2015 18:59:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Apr 2015 18:59:50 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_IMAGE_ONLY_32,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of burtonator2011@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-ob0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Apr 2015 18:59:25 +0000 Received: by obbgh1 with SMTP id gh1so17260398obb.1 for ; Sun, 05 Apr 2015 11:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=20uF1PxV+j3DmrkWZUwgErFa2/JkerpYy8L53D0gSk8=; b=KoSc8MeKuIrcCBNxAcrPByHREg5ukDFtKZrRy8dopMpvvMbXhvc6tre5bNy0aTdTkF dQFj754MQ2Ngfmzgb3O0+gV26+mVbETI05JHbqnVwWrgyIP09UKbIoQMxBgx7xbsLU95 P8oVIVuqewwxWDaQ/U2Oonnelgr8EmZVNrCz2hIvRXLrGXxw/JnRUGwmEjHF/cSHxDrS JS5v5VBAFMUY6MNj1FUzwmpeeYK8ttj3JaW8GO4sJZ18KgG80bCH9PIt6d/mTOeGqWov GAC9KDUaoP5++zzbO9XatWJCAoqtfmeXYhSfnPAUpeUKrC+2hwYUGbP7/LXeQgLLEqM4 OmQg== X-Received: by 10.60.158.202 with SMTP id ww10mr14786906oeb.18.1428260363297; Sun, 05 Apr 2015 11:59:23 -0700 (PDT) MIME-Version: 1.0 Sender: burtonator2011@gmail.com Received: by 10.183.6.227 with HTTP; Sun, 5 Apr 2015 11:59:03 -0700 (PDT) In-Reply-To: References: From: Kevin Burton Date: Sun, 5 Apr 2015 11:59:03 -0700 X-Google-Sender-Auth: LJF6dzlo7AiqeX5GcmvJB8_G1eU Message-ID: Subject: Re: Easy way to tell if I have .class file conflicts between two jars? To: Maven Users List Content-Type: multipart/alternative; boundary=047d7bd6aaf299ea860512fec75b X-Virus-Checked: Checked by ClamAV on apache.org --047d7bd6aaf299ea860512fec75b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Looks like it works but it=E2=80=99s a little too strict. I just manually r= esolved some of the dependencies for one of my projects and it=E2=80=99s complainin= g about conflicts even though the effective class path doesn=E2=80=99t have those c= lass conflicts. hm. On Sun, Apr 5, 2015 at 11:11 AM, Robert Scholte wrote: > Hi, > > take a look at this enforcer rule: > http://mojo.codehaus.org/extra-enforcer-rules/banDuplicateClasses.html > > Robert > > Op Sun, 05 Apr 2015 19:57:07 +0200 schreef Kevin Burton < > burton@spinn3r.com>: > > Im looking for a somewhat easy way to tell if a directory of .jar files >> contains class reference which conflict. >> >> For example,org/xml/sax/XMLReader.class from two incompatible versions. >> >> I wrote a simple command that does a find and then a "jar tf" to list th= e >> contents, then I sort by the filename, but this creates false positives = in >> the case where the files are actually the same .class file version. >> >> I think I could just use SHA1 to detect this =E2=80=A6 if the SHA1 is id= entical I >> can just ignore it. >> >> Of course a WAY better way to do this would be some sort of maven plugin >> that looked at all dependencies and generated errors/warnings if you add= a >> dependency with class conflicts. That would be sweet. >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --=20 Founder/CEO Spinn3r.com Location: *San Francisco, CA* blog: http://burtonator.wordpress.com =E2=80=A6 or check out my Google+ profile --047d7bd6aaf299ea860512fec75b--