Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C6679200BC2 for ; Thu, 17 Nov 2016 23:39:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C4B6E160B0B; Thu, 17 Nov 2016 22:39:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1C0CF160AD8 for ; Thu, 17 Nov 2016 23:39:16 +0100 (CET) Received: (qmail 83481 invoked by uid 500); 17 Nov 2016 22:39:16 -0000 Mailing-List: contact repository-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: repository@apache.org List-Id: Delivered-To: mailing list repository@apache.org Received: (qmail 83471 invoked by uid 99); 17 Nov 2016 22:39:16 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2016 22:39:16 +0000 Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id EC9021A0046 for ; Thu, 17 Nov 2016 22:39:15 +0000 (UTC) Received: by mail-vk0-f46.google.com with SMTP id p9so154494142vkd.3 for ; Thu, 17 Nov 2016 14:39:15 -0800 (PST) X-Gm-Message-State: AKaTC02WBTEd1BwB96uy09AK84378NoNVstHCKbAomXKtTeeI00Zdmi0AnvKn7ue+/bpZttObpznj261vweL9A== X-Received: by 10.31.154.21 with SMTP id c21mr3685515vke.117.1479422354888; Thu, 17 Nov 2016 14:39:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.193.72 with HTTP; Thu, 17 Nov 2016 14:38:54 -0800 (PST) In-Reply-To: References: From: Lukasz Lenart Date: Thu, 17 Nov 2016 23:38:54 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Sharing common groupId To: "repository@apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Thu, 17 Nov 2016 22:39:18 -0000 2016-11-16 13:00 GMT+01:00 sebb : > On 16 November 2016 at 10:10, Lukasz Lenart wro= te: >> Hi, >> >> I would like to know if there is any problem if multiple different >> projects shares the same groupId? I meant, we would like to allow >> third parties to use common groupId as mentioned in the post below >> >> http://markmail.org/message/yruabvlfpfdfw6w5 >> >> Can this be a problem during publishing artifacts? > > Yes. It can cause severe problems. > > Maven uses the (groupId,artifactId) pair to determine which jars can > appear on the same classpath. > > Unless all the projects sharing the groupId ensure that they use > distinct artifact Ids this can result in jar hell. > > The simplest way to ensure distinct (groupId,artifactId) pairs is to > ensure each independent project uses different groupIds. > They can then maintain their own unique list of artifactIds. So this should work, it's just a manner of controlling who can use the shared groupId and artifactId. We (Struts PMC) can accept if a given external project can use the groupId or not and this will give us a way to control if (groupId,artifactId) is distinct. Does it make sense? Regards --=20 =C5=81ukasz + 48 606 323 122 http://www.lenart.org.pl/