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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to