Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 16439 invoked from network); 9 Apr 2007 00:31:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2007 00:31:13 -0000 Received: (qmail 32082 invoked by uid 500); 9 Apr 2007 00:31:15 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 32040 invoked by uid 500); 9 Apr 2007 00:31:15 -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 31680 invoked by uid 99); 9 Apr 2007 00:31:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Apr 2007 17:31:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.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; Sun, 08 Apr 2007 17:31:06 -0700 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 4CED514A803B for ; Sun, 8 Apr 2007 19:30:46 -0500 (CDT) Message-ID: <32355326.1176078646313.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Sun, 8 Apr 2007 19:30:46 -0500 (CDT) From: "Brett Porter (JIRA)" To: issues@maven.apache.org Subject: [jira] Closed: (MNG-2091) NPE when including middlegen-hibernate-plugin 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-2091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brett Porter closed MNG-2091. ----------------------------- Resolution: Duplicate Fix Version/s: (was: 2.0.x) > NPE when including middlegen-hibernate-plugin > --------------------------------------------- > > Key: MNG-2091 > URL: http://jira.codehaus.org/browse/MNG-2091 > Project: Maven 2 > Issue Type: Bug > Components: Plugin API > Affects Versions: 2.2 > Environment: SUSE Linux 9.3 on i386; JVM: 1.5.0_04-b05; Kernel: 2.6.11.4.20a-11-default > Reporter: Bernd Adamowicz > > As soon as the plugin middlegen-hibernat-plugin is integrated into the POM, a NPE is thrown when the plugin is added. This is the stacktrace: > bernd@linuxba:~/THEMEN/ECLIPSE_WORKBENCH/Buttenlauf> mvn compile > [INFO] Scanning for projects... > [INFO] ---------------------------------------------------------------------------- > [INFO] Building Buttenlauf Auswertung - GVC Criesbach > [INFO] task-segment: [compile] > [INFO] ---------------------------------------------------------------------------- > [INFO] ---------------------------------------------------------------------------- > [ERROR] FATAL ERROR > [INFO] ---------------------------------------------------------------------------- > [INFO] null > [INFO] ---------------------------------------------------------------------------- > [INFO] Trace > java.lang.NullPointerException > at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:295) > at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:200) > at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:165) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1218) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1182) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:950) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:450) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > [INFO] ---------------------------------------------------------------------------- > [INFO] Total time: 2 seconds > [INFO] Finished at: Mon Feb 20 21:04:30 CET 2006 > [INFO] Final Memory: 1M/4M > [INFO] ---------------------------------------------------------------------------- > This is how the Middlegen-part of the POM looks like: > .... > > > > middlegen > middlegen-hibernate-plugin > 2.1 > > > .... > I know this issue has been around with Maven 1.x. The cause there was a corrupted plugin pom from middlegen. But I wasn't able to reproduce this. I couldn't find anything wrong with the pom. > This problem can be reproduced with Maven 2.0 and on Windows systems, too. So I think the problem really is the plugin. I will open an issue on the Middlegen page, too and will (hopefully) post a solution here. But maybe someone has a workaround to fix this in the meantime. > Thanks in advance for any help. > Bernd -- 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