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 D116EFE84 for ; Fri, 5 Apr 2013 11:30:03 +0000 (UTC) Received: (qmail 35282 invoked by uid 500); 5 Apr 2013 11:30:01 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 35222 invoked by uid 500); 5 Apr 2013 11:30:01 -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 35212 invoked by uid 99); 5 Apr 2013 11:30:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 11:30:01 +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 stephen.alan.connolly@gmail.com designates 74.125.82.181 as permitted sender) Received: from [74.125.82.181] (HELO mail-we0-f181.google.com) (74.125.82.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 11:29:55 +0000 Received: by mail-we0-f181.google.com with SMTP id d7so2761988wer.12 for ; Fri, 05 Apr 2013 04:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=7g1+fB4pRsqI3+JSHxlL6e+AdG1toaUKxdBUVnDY2ck=; b=XQJz5+8RHeCvLcJIv/vcFkwW86brbyMHSzVD82H6ypgLmbk4DJxXTmkdPg5vpHReJt O0rfIt/Iqdo/q7DlWnKk4auTDFOYjhmJkDnu5wo+cGftEgpGabpYZlmmoJ/9hJMux+px qZQvlWpM3OqEFdyod5bxof09rwohYk/W0GzzpBVruALggEsw9x0Zj63oA5diCA9Q3wYD uWB4NkBTUImEb+pA+PvSj2JP9YBDIR5Aray1ZdOZAsWjtclScnHpbNKvA0yarap7WXOq xrhLRW0mcANxaEJQFqpvSBT5wTZm08xDyjBjKEsH1URT0els5KH7dp0lI2vKLx0kOHEs Gccw== MIME-Version: 1.0 X-Received: by 10.194.173.167 with SMTP id bl7mr15744587wjc.50.1365161375428; Fri, 05 Apr 2013 04:29:35 -0700 (PDT) Received: by 10.194.20.33 with HTTP; Fri, 5 Apr 2013 04:29:35 -0700 (PDT) In-Reply-To: <1365151631700-5752733.post@n5.nabble.com> References: <1365151631700-5752733.post@n5.nabble.com> Date: Fri, 5 Apr 2013 12:29:35 +0100 Message-ID: Subject: Re: maven-enforcer-plugin to ban a transitive provided dependency From: Stephen Connolly To: Maven Users List Content-Type: multipart/alternative; boundary=089e010d8510d7ffa204d99b66de X-Virus-Checked: Checked by ClamAV on apache.org --089e010d8510d7ffa204d99b66de Content-Type: text/plain; charset=ISO-8859-1 provided scope is not transitive, so that is why the build will not fail using the enforcer rule that scans transitive dependencies. You probably will need to write your own rule if this is something that you need On 5 April 2013 09:47, dsilve wrote: > Hi, > I have the following scenario: > my project (A) has a number of compile dependencies on other internal > projects (B0, B1, B2 ...). > I would like to break the build of A in case Bx has been built depending on > an older release of A. > > So for instance: > > A:2.0-SNAPSHOT depends on B3:2.3 > and > B3:2.3 depends on A:1.0 and this dependency is provided. > > I tried to use the maven-enforcer-plugin to break the build of A in case > there is a transitive dependency whose groupId and artifactId are the same > as A, but it doesn't work because the dependency A:1.0 is provided. > > Any suggestions? > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/maven-enforcer-plugin-to-ban-a-transitive-provided-dependency-tp5752733.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --089e010d8510d7ffa204d99b66de--