Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-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 AF3D69E04 for ; Tue, 27 Sep 2011 18:48:07 +0000 (UTC) Received: (qmail 41624 invoked by uid 500); 27 Sep 2011 18:48:07 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 41579 invoked by uid 500); 27 Sep 2011 18:48:07 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 41571 invoked by uid 99); 27 Sep 2011 18:48:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 18:48:07 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 18:48:06 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6171F289C43 for ; Tue, 27 Sep 2011 18:47:45 +0000 (UTC) Date: Tue, 27 Sep 2011 18:47:45 +0000 (UTC) From: "Dmytro Pishchukhin (Commented) (JIRA)" To: dev@felix.apache.org Message-ID: <1172748232.593.1317149265401.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1875043025.21492.1315909329021.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (FELIX-3113) NPE in multi-module Maven project MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-3113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115793#comment-13115793 ] Dmytro Pishchukhin commented on FELIX-3113: ------------------------------------------- Unfortunately, I cannot attach any test project, because I've tested only on my real project. There is a multi-module Maven project. Almost all modules are OSGi bundles (bundle packaging + maven-bundle-plugin). I've tried to configure scr-plugin in my root pom for all submodules. It works fine if I build only one submodule (even non-OSGI - normal JAR packaging). When I've tried to build whole project I've got above exception in a normal-JAR submodule. > NPE in multi-module Maven project > --------------------------------- > > Key: FELIX-3113 > URL: https://issues.apache.org/jira/browse/FELIX-3113 > Project: Felix > Issue Type: Bug > Components: Maven SCR Plugin > Affects Versions: maven-scr-plugin-1.7.2 > Environment: Windows Vista, Java 6, Maven 3.0.3 > Reporter: Dmytro Pishchukhin > Priority: Critical > > Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.7.2:scr failed. > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.7.2:scr failed. > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: java.lang.NullPointerException > at org.apache.felix.scrplugin.JavaClassDescriptorManager.getJavaClassDescription(JavaClassDescriptorManager.java:435) > at org.apache.felix.scrplugin.tags.qdox.QDoxJavaClassDescription.getSuperClass(QDoxJavaClassDescription.java:62) > at org.apache.felix.scrplugin.tags.JavaClassDescriptionInheritanceComparator.compare(JavaClassDescriptionInheritanceComparator.java:58) > at org.apache.felix.scrplugin.tags.JavaClassDescriptionInheritanceComparator.compare(JavaClassDescriptionInheritanceComparator.java:40) > at java.util.Arrays.mergeSort(Unknown Source) > at java.util.Arrays.sort(Unknown Source) > at org.apache.felix.scrplugin.SCRDescriptorGenerator.execute(SCRDescriptorGenerator.java:235) > at org.apache.felix.scrplugin.mojo.SCRDescriptorMojo.execute(SCRDescriptorMojo.java:184) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > ... 20 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira