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 6EE2310CF1 for ; Thu, 12 Dec 2013 10:08:34 +0000 (UTC) Received: (qmail 44741 invoked by uid 500); 12 Dec 2013 10:08:31 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 44363 invoked by uid 500); 12 Dec 2013 10:08:25 -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 44355 invoked by uid 99); 12 Dec 2013 10:08:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 10:08:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anders.g.hammar@gmail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-wg0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 10:08:18 +0000 Received: by mail-wg0-f47.google.com with SMTP id n12so178821wgh.26 for ; Thu, 12 Dec 2013 02:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=x68yWaPrkCtFLSvU+S+ycn3vPZvAd0jEzQQ+tIKqQmA=; b=vJ7IUCT5H42Aq73srEi8HYyoM/902WmYYhdQgve9hzGw+dqbrzLKjK0mji6og3hUPJ n9gxFmMO51UW5C3QUbFwh/Inp+FUlJGhOqtX41PVvA5f0Wz8Srh/abO23vizWlOiKcLW SA0YeoOMvX3y0US5+L5RA1q9X2lv33XUUfeP81kqgTw+O07nuDzM2NzzIw3p4+TuRQSi 9KTRtdm0Ylo4MgUmBjKiP7YN9tsitpo9kEQZzAHJPicic2dKXjGpFEBGFVluYVFyLNfk wJnv85vxA4KD0/WEnPzgBjw3KWrpZRLyQ7CcGjPb9JOMRBGwuRSxOpBxXC574Q/ouvxc qZ+g== MIME-Version: 1.0 X-Received: by 10.180.206.116 with SMTP id ln20mr16660887wic.35.1386842878243; Thu, 12 Dec 2013 02:07:58 -0800 (PST) Sender: anders.g.hammar@gmail.com Received: by 10.194.34.66 with HTTP; Thu, 12 Dec 2013 02:07:58 -0800 (PST) In-Reply-To: <651661248729403398d0d4e79a6072ec@DBXPR05MB237.eurprd05.prod.outlook.com> References: <651661248729403398d0d4e79a6072ec@DBXPR05MB237.eurprd05.prod.outlook.com> Date: Thu, 12 Dec 2013 11:07:58 +0100 X-Google-Sender-Auth: ERjT1ctr64Qd8lgg7TQKscZoyLc Message-ID: Subject: Re: Painless way to update a frameworks group id? From: Anders Hammar To: Maven Users List Content-Type: multipart/alternative; boundary=001a11c264681df86f04ed538526 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c264681df86f04ed538526 Content-Type: text/plain; charset=ISO-8859-1 AFAIK there is not painless way to solve this. What you could add to the docs is instructions on how to use an enforcer rule to ensure that no "bad" libs are pulled in by accident (if the miss some exclusion). Use the banned deps [1] rule. /Anders [1] http://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html On Wed, Dec 11, 2013 at 9:01 AM, Christofer Dutz wrote: > Hi, > > > > I am the current maintainer of the Flexmojos Maven Plugin and contributor > to the Apache Flex Project. > > Currently I am working on a new Version of Flexmojos which is able to work > with Flex SDKs that have a groupId of org.apache.flex instead of the old > com.adobe.flex. While building applications with the new groupId was no big > Problem, we are now facing a Problem, that I don't quite know how to > elegantly solve it. > > > > Assuming I am building a Project and I switched the groupId of the Flex > Framework to "org.apache.flex". As Long as I am building all artifacts in > the Project this is fine. But as soon as I am using a Flex library that was > built for com.apache.flex Maven correctly adds that artifacts dependencies > to the build. Unfortunately this way I have several artifacts in my build > twice ... once with com.adobe.flex and once with org.apache.flex groupId. > > > > Now I was suggesting to manually exclude Framework artifacts when using an > external lib, but I would like to automate this. Therefore I suggested to > add all the org.apache.flex artifacts as com.adobe.flex artifacts, but to > set the scope on These to "provided". But it still sort of doesn't feel > right. > > > > Any suggestions? Would be really happy to sort this out and make it less > painfull for my users. > > > > Chris > --001a11c264681df86f04ed538526--