Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 34080 invoked from network); 7 Sep 2007 05:31:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Sep 2007 05:31:41 -0000 Received: (qmail 61211 invoked by uid 500); 7 Sep 2007 05:31:35 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 60887 invoked by uid 500); 7 Sep 2007 05:31:35 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 60873 invoked by uid 99); 7 Sep 2007 05:31:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 22:31:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2007 05:31:31 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 8AA5A14A803E for ; Fri, 7 Sep 2007 00:31:11 -0500 (CDT) Message-ID: <20080137.1189143071565.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Fri, 7 Sep 2007 00:31:11 -0500 (CDT) From: "Brett Porter (JIRA)" To: issues@maven.apache.org Subject: [jira] Updated: (MNG-1983) Mojo parameters defined in abstract-mojo class not set, when concrete/abstract mojo class in different JARs MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MNG-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brett Porter updated MNG-1983: ------------------------------ Fix Version/s: (was: 2.1) 2.x > Mojo parameters defined in abstract-mojo class not set, when concrete/abstract mojo class in different JARs > ----------------------------------------------------------------------------------------------------------- > > Key: MNG-1983 > URL: http://jira.codehaus.org/browse/MNG-1983 > Project: Maven 2 > Issue Type: Bug > Components: Plugins and Lifecycle > Affects Versions: 2.0.2 > Environment: Maven-2.0.2 (also in Maven-2.0.1) > Win-XP/Pro - Cygwin > $ java -version > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) > Reporter: Shash Chatterjee > Fix For: 2.x > > Attachments: abstractmojotest.zip > > > Have an abstract mojo class, which extends AbstractMojo. This abstract class defines some mojo parameters with expressions to set default values. > Have a concrete class, in the same project (JAR) and package, which simply extends the abstract mojo class. This works fine, in that the parameter values are initialized correctly. > Have an identical concrete class, but this time in a different project which defines a Maven dependency on the previous JAR. This time the parameters defined in the abstract class are not initialized correctly. Whether this second concrete mojo is in the same Java package as the abstract class, or not, does not seem to make a difference. > I have attached a ZIP file which demonstrates the problem. Included are three very simple Maven modules, all created with "mvn archetype:create". The first project, "testplugin-one" contains an abstract and a concrete Mojo class. The second project, "testplugin-two" contains just a concrete Mojo class. The third project "testplugin-driver" contains a POM that invokes the two mojos: the first time the parameters have values, the second time they are null. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira