Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9855610B6E for ; Wed, 26 Mar 2014 20:26:02 +0000 (UTC) Received: (qmail 91835 invoked by uid 500); 26 Mar 2014 20:25:56 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 91193 invoked by uid 500); 26 Mar 2014 20:25:51 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 89899 invoked by uid 99); 26 Mar 2014 20:25:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 20:25:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of khmarbaise@gmx.de designates 212.227.17.21 as permitted sender) Received: from [212.227.17.21] (HELO mout.gmx.net) (212.227.17.21) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 20:25:42 +0000 Received: from Karl-Heinzs-MacBook-Pro.local ([109.46.170.98]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Mcgur-1WkIgC2EPB-00HySX for ; Wed, 26 Mar 2014 21:25:21 +0100 Message-ID: <533337B5.2000404@gmx.de> Date: Wed, 26 Mar 2014 21:25:25 +0100 From: Karl Heinz Marbaise Reply-To: info@soebes.de User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Maven Developers List Subject: maven-enforcer rule Problem - http://jira.codehaus.org/browse/MENFORCER-189 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:6VSwc2auHSUoNewSE+JTFzCbfzAcOza6LGTrroRO7xGTN6oPKIw q7k0G7B5Y74MGjOYtD6hQ49WmoF95cOX09U19EeI+oa/pRaIXmnU/V3Qh/5TO88l7y0GvAs XO89quQ14uq7yU9j2SdPGOnBu7R+OUlvg/xK+qUnn4iUgdJzX93XEkRyPN03LvTvRMb6Uhi 9ghZgTKYatyCnCnDVla7g== X-Virus-Checked: Checked by ClamAV on apache.org Hi to all devs... currently I'm struggling with the above implementation. The current implementation works fine with all tests etc. But based on the above issue (of course needed).... So if i like to check the Maven -pl Options .. Robert Scholte already gave me some hints to use things like this (Thanks for that): mavenSession.getRequest().getSelectedProjects(); unfortunately the getRequest() method is first available with release 3.X of Maven core which is currently not used in Maven Enforcer plugin (currently using Maven 2.0.6).. The current implementation is going via: session = (MavenSession) helper.evaluate( "${session}" ); .. List sortedProjects = session.getSortedProjects(); which works for Maven 2.0.X, 2.2.1, Maven 3.1.X and Maven 3.2.X... Can someone give me hint if it's possible to hold compatibility with the above and find out "-pl -amd" things ? Maven 2.2.1 know the options "-pl, -amd" so this might be the first version with which it could work .... Thanks in advance.... Kind regards Karl-Heinz Marbaise --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org