@Mojo(name="generate-report", requiresDirectInvocation=false, requiresProject=true, requiresReports=true, requiresOnline=false, inheritByDefault=true, threadSafe=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME, requiresDependencyCollection=COMPILE_PLUS_RUNTIME) @Execute(goal="generate-report", phase=GENERATE_SOURCES) public class ReportMojo extends AbstractValidationMojo implements org.apache.maven.reporting.MavenReport
Modifier and Type | Field and Description |
---|---|
protected File |
outputDirectory
Specifies the destination directory where documentation is to be saved
to.
|
Constructor and Description |
---|
ReportMojo() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateReport() |
void |
execute() |
void |
generate(org.codehaus.doxia.sink.Sink sink,
Locale locale) |
String |
getCategoryName() |
String |
getDescription(Locale locale) |
String |
getName(Locale locale) |
String |
getOutputName() |
File |
getReportOutputDirectory() |
boolean |
isExternalReport() |
void |
setReportOutputDirectory(File outputDirectory) |
getArtifacts, getMavenProject, getProjectBuilder, loadArtifacts
@Parameter(property="destDir", alias="destDir", defaultValue="${project.build.directory}/licenses", required=true) protected File outputDirectory
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public boolean canGenerateReport()
canGenerateReport
in interface org.apache.maven.reporting.MavenReport
public void generate(org.codehaus.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException
generate
in interface org.apache.maven.reporting.MavenReport
org.apache.maven.reporting.MavenReportException
public String getCategoryName()
getCategoryName
in interface org.apache.maven.reporting.MavenReport
public String getDescription(Locale locale)
getDescription
in interface org.apache.maven.reporting.MavenReport
public String getName(Locale locale)
getName
in interface org.apache.maven.reporting.MavenReport
public String getOutputName()
getOutputName
in interface org.apache.maven.reporting.MavenReport
public File getReportOutputDirectory()
getReportOutputDirectory
in interface org.apache.maven.reporting.MavenReport
public boolean isExternalReport()
isExternalReport
in interface org.apache.maven.reporting.MavenReport
public void setReportOutputDirectory(File outputDirectory)
setReportOutputDirectory
in interface org.apache.maven.reporting.MavenReport
Copyright © 2013–2015 PureSol Technologies. All rights reserved.