【发布时间】:2011-11-08 10:10:59
【问题描述】:
我一直在尝试编写自己的 maven 报告插件,以便在运行“mvn 站点”时生成有关测试的信息。这 文件 test_report.html 由下面的代码创建,但页面不包含任何带有 doxia sink API 的标题或文本。
public class TestDocMojo extends AbstractMavenReport {
public String getOutputName() {
return "test_report";
}
public void executeReport(Locale locale) throws MavenReportException {
Sink sink = getSink();
sink.head();
sink.title("My maven site report");
sink.text("Content here.");
sink.flush();
sink.close();
}
}
我一直在看这个例子:http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin
【问题讨论】:
标签: java maven maven-plugin