slachiewicz opened a new pull request, #278: URL: https://github.com/apache/maven-reporting-impl/pull/278
A report run as a standalone goal can write Doxia markup instead of a skinned HTML page with `-Doutput.format=<format>`, but only formats whose Doxia module is on the plugin's classpath work, which were `xdoc`, `apt` and `xhtml`. This adds `doxia-module-markdown` at runtime, so `-Doutput.format=markdown` writes the report as Markdown, for example to publish it in a repository wiki or a pull request comment. The output file keeps the existing naming, `<outputPath>.<format>`, so it ends in `.markdown`. The module brings flexmark along: 27 jars, about 2 MB, in every report plugin that depends on this library. They are only used for standalone runs; during `mvn site` the site plugin supplies Doxia. A lighter alternative is to leave the module out and document adding `doxia-module-markdown` as a plugin dependency, which works without this change. Verified: `mvn -P run-its verify` → 6 ITs pass; without the new dependency the extended `use-as-direct-mojo-markup` IT fails with "Cannot find SinkFactory for Doxia output format: markdown". --- - [x] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) - [x] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). -- 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]
