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 6AB8A10D9E for ; Thu, 12 Dec 2013 10:37:42 +0000 (UTC) Received: (qmail 6592 invoked by uid 500); 12 Dec 2013 10:37:38 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 6513 invoked by uid 500); 12 Dec 2013 10:37:37 -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 6505 invoked by uid 99); 12 Dec 2013 10:37:36 -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:37:36 +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.182 as permitted sender) Received: from [74.125.82.182] (HELO mail-we0-f182.google.com) (74.125.82.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 10:37:30 +0000 Received: by mail-we0-f182.google.com with SMTP id q59so221027wes.13 for ; Thu, 12 Dec 2013 02:37:10 -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=8LOuYsv9eGovSqb3dROuVTUK6VTx8THgNWAJaWINz6Y=; b=T6XkjvOZS68DiuHn4aQHq4/uK0gy18yb2VJDVNPOPQ0nBOXSjeUCTu126SkDhBjZtw 0+ew220uFt5Fp9o3hIGRhlR0jqqHN85On7GYJy90hzVPO7QI6okRZNT0jRy2lGx6mK0T 84qmj/j1vHyIGsjfPTRAdjLVRLwcFDJevEmAtjVT0MIrczIssanAv3LUN2nr/Q4DrGqU fL1UwG5Ad1gPuOydm7lcgrgqXqkVSY8CkCKXMQlbOCTAmmzBl1glbOVZZjhZWom91xhL uEK9aX41MCt1XibMDZ1PMenPcBZZ1AbUovV6sNULOTnN+sj7uGnOkLNlwNnEo47MSz96 kKTg== MIME-Version: 1.0 X-Received: by 10.194.240.197 with SMTP id wc5mr5664676wjc.23.1386844630224; Thu, 12 Dec 2013 02:37:10 -0800 (PST) Sender: anders.g.hammar@gmail.com Received: by 10.194.34.66 with HTTP; Thu, 12 Dec 2013 02:37:10 -0800 (PST) In-Reply-To: <9c3a81fc916047bba4d80269ae044bc0@DBXPR05MB237.eurprd05.prod.outlook.com> References: <651661248729403398d0d4e79a6072ec@DBXPR05MB237.eurprd05.prod.outlook.com> <9c3a81fc916047bba4d80269ae044bc0@DBXPR05MB237.eurprd05.prod.outlook.com> Date: Thu, 12 Dec 2013 11:37:10 +0100 X-Google-Sender-Auth: bMjPWHlO9JkmW9elBUEwS-84CSE Message-ID: Subject: Re: Painless way to update a frameworks group id? From: Anders Hammar To: Maven Users List Content-Type: multipart/alternative; boundary=089e013d19cc8b950804ed53edca X-Virus-Checked: Checked by ClamAV on apache.org --089e013d19cc8b950804ed53edca Content-Type: text/plain; charset=ISO-8859-1 I don't think that will work. The "bad" deps are still used in compile time and only not used in runtime. The correct solution (until there are new releases that don't pull in the "bad" transitive deps) is to excluded them. And that probably can't be automated in any other way than providing means to detect them (the enforcer rule). What you could do is try this and release a beta or something and see what sort of problems people run into. Changing coordinates is always a problem. My two cents, /Anders On Thu, Dec 12, 2013 at 11:24 AM, Christofer Dutz wrote: > What do you think about this Option? > > I created a tool that mavenizes a non-maven Flex SDK and genereates all > sorts of maven artifacts ... one artifact that is generated is a Special > pom that contains only a dependency Management section that can be used to > automatically configure the Versions of dependencies in the Flex SDK ... I > could automatically generate dependency manangement entries for the old > Group id that set the dependencies to "provided". So as soon as someone > imports that pom containing the dependencyManagement entries for the good > artifacts, the "exclude" entries are automatically in place. > > Chris > > > ________________________________________ > Von: anders.g.hammar@gmail.com im Auftrag von > Anders Hammar > Gesendet: Donnerstag, 12. Dezember 2013 11:07 > An: Maven Users List > Betreff: Re: Painless way to update a frameworks group id? > > 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 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --089e013d19cc8b950804ed53edca--