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 E9C69984E for ; Tue, 13 Mar 2012 19:01:29 +0000 (UTC) Received: (qmail 52576 invoked by uid 500); 13 Mar 2012 19:01:27 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 52512 invoked by uid 500); 13 Mar 2012 19:01:27 -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 52504 invoked by uid 99); 13 Mar 2012 19:01:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 19:01:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.219.192.166] (HELO smtp.bredband2.com) (83.219.192.166) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 19:01:18 +0000 Received: from [192.168.0.3] (c-83-233-111-38.cust.bredband2.com [83.233.111.38]) (Authenticated sender: ed5133) by smtp.bredband2.com (Postfix) with ESMTPA id 660C2BB3B7 for ; Tue, 13 Mar 2012 20:00:57 +0100 (CET) Message-ID: <4F5F9965.2070904@apache.org> Date: Tue, 13 Mar 2012 20:00:53 +0100 From: Dennis Lundberg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Maven Users List Subject: Re: Issue with maven-plugin-plugin: For two artifacts which have the same groupId, goalPrefix is not resolved correctly. References: <4F5E7118.8070802@oracle.com> In-Reply-To: <4F5E7118.8070802@oracle.com> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi First try the latest version of maven-plugin-plugin, which is 2.9, to see if that solves your issue. On 2012-03-12 22:56, Dhawan Gayash wrote: > Hi, > > I am trying to write two plugins with the same groupId and goal but > different artifactId. For example. > > com.foo.bar.myOne-maven-plugin & com.foo.bar.myTwo-maven-plugin > > In both these plugins I would like to configure goalPrefixes as "myone" > and "mytwo". I am using maven-plugin-plugin for doing this with version 2.3 > > When I use mvn myone:<> it works fine. However when I use mvn > mytwo:<> it still executes the myone plugin. > > When I checked the depot location for how these plugins have been > provisioned I find the maven-metadata-local.xml file to have these configs. > > > |$/> cd /usr/local/.m2/repositories/3.0/com/foo/bar/ > $/> cat maven-metadata-local.xml > > > > > > My First Plugin > myone > myOne-maven-plugin > > > My Second Plugin > mytwo > myOne-maven-plugin > > > | > > This is a bug in maven-plugin-plugin version 2.3. Has this issue been > resolved or should I file this bug in JIRA. > > Steps to reproduce the bug: > > 1.) Take two artifacts with same groupId. > 2.) Configure goalPrefix by using maven-plugin-plugin. For both the plugins > > > > maven-plugin-plugin > 2.3 > > myone > > > > > 3.) Provision these plugins into your local repo. > 4.) Execute the plugins using goalPrefix. And for further investigation > please check the maven-metadata-local.xml > > > Thanks, > Dhawan > > -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org