You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "hboutemy (via GitHub)" <gi...@apache.org> on 2025/12/17 12:41:49 UTC
[I] NPE on reporting goal when multi-pages report [maven-reporting-impl]
hboutemy opened a new issue, #217:
URL: https://github.com/apache/maven-reporting-impl/issues/217
### Affected version
4.0.0
### Bug description
```
$ mvn plugin-report:3.15.1:report -e
...
[INFO] --- plugin-report:3.15.1:report (default-cli) @ maven-clean-plugin ---
[INFO] Rendering content with org.apache.maven.skins:maven-fluido-skin:jar:2.1.0 skin
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.259 s
[INFO] Finished at: 2025-12-17T13:36:58+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-report-plugin:3.15.1:report (default-cli) on project maven-clean-plugin: Execution default-cli of goal org.apache.maven.plugins:maven-plugin-report-plugin:3.15.1:report failed: Cannot invoke "org.apache.maven.doxia.sink.SinkFactory.createSink(java.io.File, String)" because the return value of "org.apache.maven.plugin.plugin.report.PluginReport.getSinkFactory()" is null -> [Help 1]
[ERROR]
...
Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.maven.doxia.sink.SinkFactory.createSink(java.io.File, String)" because the return value of "org.apache.maven.plugin.plugin.report.PluginReport.getSinkFactory()" is null
at org.apache.maven.plugin.plugin.report.PluginReport.generateMojosDocumentation (PluginReport.java:280)
at org.apache.maven.plugin.plugin.report.PluginReport.executeReport (PluginReport.java:184)
at org.apache.maven.reporting.AbstractMavenReport.generate (AbstractMavenReport.java:358)
at org.apache.maven.reporting.AbstractMavenReport.reportToSite (AbstractMavenReport.java:266)
at org.apache.maven.reporting.AbstractMavenReport.execute (AbstractMavenReport.java:212)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
```
not really a surprise given comment in code:
https://github.com/apache/maven-reporting-impl/blob/maven-reporting-impl-4.0.0/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java#L265
but not tested for now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] NPE on reporting goal when multi-pages report [maven-reporting-impl]
Posted by "hboutemy (via GitHub)" <gi...@apache.org>.
hboutemy commented on issue #217:
URL: https://github.com/apache/maven-reporting-impl/issues/217#issuecomment-3665415348
see https://github.com/apache/maven-site-plugin/blob/6692475d66a6942a8bf3976b2542b9780cfca646/src/main/java/org/apache/maven/plugins/site/render/ReportDocumentRenderer.java#L101
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] NPE on reporting goal when multi-pages report [maven-reporting-impl]
Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz closed issue #217: NPE on reporting goal when multi-pages report
URL: https://github.com/apache/maven-reporting-impl/issues/217
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org