...
| Code Block |
|---|
/*
* ...
* @author me
* @goal my-report
* @phase site
*/
public class MyReportMojo extends AbstractMavenReport {
/**
* Directory where reports will go.
*
* @parameter expression="${project.reporting.outputDirectory}"
* @required
* @readonly
*/
private String outputDirectory;
/**
* @parameter default-value="${project}"
* @required
* @readonly
*/
private MavenProject project;
/**
* @component
* @required
* @readonly
*/
private SiteRenderer siteRenderer;
|
and so on. @phase site binds your plugin to the site lifecycle of the build. You need to implement or override the following methods:
...
