[mojo-dev] [jira] Commented: (MOJO-101) NPE with svn version of surefire-report-maven-plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[mojo-dev] [jira] Commented: (MOJO-101) NPE with svn version of surefire-report-maven-plugin

JIRA jira@codehaus.org
    [ http://jira.codehaus.org/browse/MOJO-101?page=comments#action_49759 ]

Julian Wood commented on MOJO-101:
----------------------------------

I've started to track this issue down a little further. I've built maven from svn (2.0.1-SNAPSHOT) and reproduced the issue again.

I've confirmed that the List of MojoDescriptor (pluginDescriptor.getMojos()) is null when the reportPlugin is surefire-report-maven-plugin, whereas for any other report there is a valid List - this is in DefaultLifecycleExecutor as specified in the stacktrace.

Now I'm starting to look into why it's null, but this is leading me into plexus. Is this ringing any bells? Is some additional config required somewhere for this report?

So there seems to be two problems: why is the List null, and if it is null, should it be handled better?

Thanks,

J

> NPE with svn version of surefire-report-maven-plugin
> ----------------------------------------------------
>
>          Key: MOJO-101
>          URL: http://jira.codehaus.org/browse/MOJO-101
>      Project: Mojo
>         Type: Bug
>     Versions: 2.0
>  Environment: osx 10.4.9, java 1.4.2_09
>     Reporter: Julian Wood
>     Assignee: Johnny R. Ruiz III
>      Fix For: 2.0

>
>
> >mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
> add to resultant pom:
>   <reporting>
>         <plugins>
>            <plugin>
>                <groupId>org.codehaus.mojo</groupId>
>                <artifactId>surefire-report-maven-plugin</artifactId>
>            </plugin>
>         </plugins>
>     </reporting>
> >mvn site
> --> site builds, but reports are empty (2.0-beta-1 surefire-report-maven-plugin)
> - download tarball from svn <http://svn.mojo.codehaus.org/trunk/mojo/surefire-report-maven-plugin/>
> > mvn install
> - rebuild site with new plugin (2.0-beta-2-SNAPSHOT)
> > mvn site
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [site]
> [INFO] ----------------------------------------------------------------------------
> [INFO] ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] null
> [INFO] ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:645)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:622)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:501)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
>         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:324)
>         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: 4 seconds
> [INFO] Finished at: Thu Oct 27 10:37:39 CST 2005
> [INFO] Final Memory: 1M/3M
> [INFO] ----------------------------------------------------------------------------

--
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

Loading...