Class ServiceDocGenReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.servicedocgen.ServiceDocGenReport
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenReport
@Mojo(name="generate",
defaultPhase=PREPARE_PACKAGE,
requiresProject=true,
requiresDirectInvocation=false,
executionStrategy="once-per-session",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME)
public class ServiceDocGenReport
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.maven.reporting.MavenReport
Maven Plugin to automatically generate documentation for services of the current project.
- Scans the current projects source code for (JAX-RS annotated) services that match the RegEx configured by
classnameRegex. - Analyzes the services from source-code (extract JavaDoc, etc.) and byte-code (resolve generic parameters, etc.)
and create intermediate meta-data as
ServicesDescriptor. - Generates documentation from the collected meta-data (by default as HTML from a velocity template shipped with this plugin but can be overridden via configuration parameters).
- Author:
- hohwille
-
Field Summary
FieldsFields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLEFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidexecute()voidprotected ResourceBundlegetDescription(Locale locale) protected StringbooleanvoidsetReportOutputDirectory(File reportOutputDirectory) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.reporting.MavenReport
getOutputPath
-
Field Details
-
outputDirectory
@Parameter(defaultValue="${project.reporting.outputDirectory}", readonly=true, required=true) protected File outputDirectory
-
-
Constructor Details
-
ServiceDocGenReport
public ServiceDocGenReport()
-
-
Method Details
-
getOutputName
- Specified by:
getOutputNamein interfaceorg.apache.maven.reporting.MavenReport
-
getBundle
-
getName
-
getDescription
-
isExternalReport
public boolean isExternalReport()- Specified by:
isExternalReportin interfaceorg.apache.maven.reporting.MavenReport
-
getOutputDirectoryPath
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport
-
generate
public void generate(org.apache.maven.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException The documentation is an external report: it is written to its own files, not to the sink.
- Specified by:
generatein interfaceorg.apache.maven.reporting.MavenReport- Throws:
org.apache.maven.reporting.MavenReportException
-
getCategoryName
- Specified by:
getCategoryNamein interfaceorg.apache.maven.reporting.MavenReport
-
setReportOutputDirectory
- Specified by:
setReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport
-
getReportOutputDirectory
- Specified by:
getReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport
-