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 618D0101E4 for ; Tue, 5 Nov 2013 16:20:13 +0000 (UTC) Received: (qmail 63564 invoked by uid 500); 5 Nov 2013 16:20:10 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 63469 invoked by uid 500); 5 Nov 2013 16:20:10 -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 63461 invoked by uid 99); 5 Nov 2013 16:20:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 16:20:09 +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 (athena.apache.org: domain of markward.schubert@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vc0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 16:20:05 +0000 Received: by mail-vc0-f173.google.com with SMTP id lh4so5732852vcb.18 for ; Tue, 05 Nov 2013 08:19:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YmM9DyzdwrZPRrs/VzANPKdQyHBZ6dLg28NLdgVm8Cs=; b=Z4riT/ksR707aDivjr+XA+tgLHCsCprZSYnOAZh306hOB8oWgeDmugCnaTesGGxErn qNouGyWALKe6dq/lovlrU+T5X83yxB1cTIAQQPGX67Ac3TQCUhU6Amzlx0LGB7B1YqRk eCTXxqXMwR2vC34hzKQFqjYNjYV+TT5wyMWRmfNvM7we4Wewr9hidmX7ih7yhl8fJcja 1BJRxc8HN152bh/h0JlWrnuM87eDCmIfSSRCET3QDfxPHmhbdb9ccHke4m2/BSbgzZ2m f2I1iyawwXeX0HuXHCBSEbgA5988OMNkzWCJZNcUp0n99ha+OKmRnB0YSk/04a4Ch9Zg T2Jw== MIME-Version: 1.0 X-Received: by 10.52.230.202 with SMTP id ta10mr373298vdc.41.1383668384721; Tue, 05 Nov 2013 08:19:44 -0800 (PST) Received: by 10.220.215.7 with HTTP; Tue, 5 Nov 2013 08:19:44 -0800 (PST) In-Reply-To: References: Date: Tue, 5 Nov 2013 17:19:44 +0100 Message-ID: Subject: Re: Some help needed with maven-enforcer-plugin From: Markward Schubert To: Maven Users List Content-Type: multipart/alternative; boundary=089e0111d9268f239704ea7066f5 X-Virus-Checked: Checked by ClamAV on apache.org --089e0111d9268f239704ea7066f5 Content-Type: text/plain; charset=UTF-8 Thanks Paul, ahh, I think I really misunderstood the docs. The dependencies tag refers to dependencies of plugins, instead of depenencies of the project. Thanks! 2013/11/5 Paul Benedict > I looked up the ticket that introduced the feature: > http://jira.codehaus.org/browse/MENFORCER-147 > > It doesn't look like it enforces dependency versions; it enforces that > Maven plugin versions in match . > > Paul > > > > On Tue, Nov 5, 2013 at 10:07 AM, Markward Schubert < > markward.schubert@gmail.com> wrote: > > > Hi All! > > > > I am struggling with the enforcer-plugin's requireSameVersions rule. > > Introducing the bannedDependencies rule was successful, but somehow I > seem > > to not get the right configuration for requireSameVersion. > > > > Here is my config: > > > > > > org.apache.maven.plugins > > maven-enforcer-plugin > > 1.3.1 > > > > > > enforce-banned-dependencies > > > > enforce > > > > > > > > > > > > true > > > > > commons-logging > > > > > > > > true > > > > > > > > enforce-same-versions > > > > enforce > > > > > > > > > > > > > > org.slf4j:* > > > > > > > > true > > > > > > > > > > true > > > > > > > > As a matter of fact we have > > > > org.slf4j:slf4j-api:1.7.5 > > > > as well as > > > > org.slf4j:com.springsource.slf4j.api:1.6.1 > > > > in our dependency tree. But still the build is SUCCESSFUL. > > Did I get anything wrong here? Some misconfiguration. > > > > I would expect that the rule as configured would enforce all > > org.slf4j-group dependencies to have the same version. > > > > Thanks for your help! > > > > Markward > > > > > > -- > Cheers, > Paul > --089e0111d9268f239704ea7066f5--