Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C0F6106F9 for ; Thu, 19 Feb 2015 11:45:45 +0000 (UTC) Received: (qmail 38729 invoked by uid 500); 19 Feb 2015 11:45:45 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 38674 invoked by uid 500); 19 Feb 2015 11:45:44 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 38649 invoked by uid 99); 19 Feb 2015 11:45:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2015 11:45:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [199.193.192.100] (HELO codehaus01.managed.contegix.com) (199.193.192.100) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2015 11:45:20 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 43FABB1180 for ; Thu, 19 Feb 2015 05:45:18 -0600 (CST) Date: Thu, 19 Feb 2015 05:45:18 -0600 (CST) From: "Karl-Heinz Marbaise (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MEAR-180) Artifacts with same artifactId/version are ignored in packaging MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/MEAR-180?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D363605#comm= ent-363605 ]=20 Karl-Heinz Marbaise commented on MEAR-180: ------------------------------------------ Hi Reto, if you had identified a situaion where you expect to have at least= a warning please create a new fire ticket and describe the situation may b= e with an example project which reproduces the wrong behaviour. ATM i have = created only warnings no flag...but this does not work correctly....Would b= e great...Apart from that thanks for you feedback anyway. > Artifacts with same artifactId/version are ignored in packaging > --------------------------------------------------------------- > > Key: MEAR-180 > URL: https://jira.codehaus.org/browse/MEAR-180 > Project: Maven Ear Plugin > Issue Type: Bug > Affects Versions: 2.9 > Reporter: Reto Habl=FCtzel > Assignee: Karl-Heinz Marbaise > Fix For: 2.10 > > Attachments: ear-silent-ignore.zip > > > The attached sample consists of an ear that references two other projects= , both of which have the *same artifactId and the same versionId*, but *not= the same groupId*. > Both are to be packaged in the lib folder, but only the first will make i= t in, because the maven ear plugin identifies them only by their artifactId= and version. This means that when it sees the second dependency, it thinks= it was already in there. > Note that I already brought this up on the mailing list: https://mail-arc= hives.apache.org/mod_mbox/maven-users/201402.mbox/browser > Follow these steps to recreate the issue based on the attached sample: > {quote} > Install 'utilities' project in 'collections': > collections/utilities> mvn install > Install 'utilities' project in 'email': > email/utilities> mvn install > Package 'ear' project: > ear> mvn package > Look at contents of ear and notice how only one jar is included: > ear> unzip -v target/ear-1.0.0.ear > Now use the debug flag to see why only one gets included: > ear> mvn --debug clean package > Partial output: > \[INFO\] Copying artifact \[jar:ch.rethab.email:utilities:1.0.0\] to \[= utilities-1.0.0.jar\] > \[DEBUG\] Skipping artifact \[jar:ch.rethab.collections:utilities:1.0.0= \], as it is already up to date at \[utilities-1.0.0.jar\] > {quote} > Note that this sample shows how dependent libraries are ignored, but I th= ink it is also an issue if you have two ejbs with the same name and version= - though that is probably far less likely. -- This message was sent by Atlassian JIRA (v6.1.6#6162)