@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.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportpublic void generate(org.codehaus.doxia.sink.Sink sink,
Locale locale)
throws org.apache.maven.reporting.MavenReportException
generate in interface org.apache.maven.reporting.MavenReportorg.apache.maven.reporting.MavenReportExceptionpublic String getCategoryName()
getCategoryName in interface org.apache.maven.reporting.MavenReportpublic String getDescription(Locale locale)
getDescription in interface org.apache.maven.reporting.MavenReportpublic String getName(Locale locale)
getName in interface org.apache.maven.reporting.MavenReportpublic String getOutputName()
getOutputName in interface org.apache.maven.reporting.MavenReportpublic File getReportOutputDirectory()
getReportOutputDirectory in interface org.apache.maven.reporting.MavenReportpublic boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportpublic void setReportOutputDirectory(File outputDirectory)
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReportCopyright © 2013–2015 PureSol Technologies. All rights reserved.