You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2010/05/02 08:56:12 UTC

[jira] Closed: (MPIR-190) Handle offline mode for Licence generation gracefully.

     [ http://jira.codehaus.org/browse/MPIR-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MPIR-190.
------------------------------

    Resolution: Cannot Reproduce
      Assignee: Herve Boutemy

please precise which version of project-info-report you're using, or even give a sample project, because I tested with one of my project using 2.1.2, and everything is fine

> Handle offline mode for Licence generation gracefully.
> ------------------------------------------------------
>
>                 Key: MPIR-190
>                 URL: http://jira.codehaus.org/browse/MPIR-190
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Bug
>          Components: license
>            Reporter: David J. M. Karlsen
>            Assignee: Herve Boutemy
>
> Instead of
> {noformat} 
> [INFO] [site:site {execution: default-site}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
>         at org.apache.maven.report.projectinfo.LicenseReport.getLicenseURL(LicenseReport.java:156)
>         at org.apache.maven.report.projectinfo.LicenseReport.canGenerateReport(LicenseReport.java:114)
>         at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.filterReports(AbstractSiteRenderingMojo.java:177)
>         at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:81)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>         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:597)
>         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: 7 seconds
> [INFO] Finished at: Tue Apr 06 17:18:00 CEST 2010
> [INFO] Final Memory: 34M/81M
> [INFO] ------------------------------------------------------------------------
> {noformat}
> -o (offline mode) should be handled gracefully (for instance return false from canGenerateReport).

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