Package org.jvnet.maven.jellydoc
Class JellydocMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jvnet.maven.jellydoc.JellydocMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.apache.maven.reporting.MavenMultiPageReport,org.apache.maven.reporting.MavenReport
@Mojo(name="jellydoc",
requiresDependencyResolution=COMPILE)
@Execute(phase=GENERATE_SOURCES)
public class JellydocMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.maven.reporting.MavenMultiPageReport
Generates jellydoc XML and other artifacts from there.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.apache.maven.artifact.factory.ArtifactFactoryFactory for creating artifact objectsorg.apache.maven.project.MavenProjectHelperList<org.apache.maven.artifact.Artifact> The plugin dependencies.Version of this plugin.org.apache.maven.project.MavenProjectThe Maven Project Objectorg.eclipse.aether.RepositorySystemUsed for resolving artifactsorg.apache.maven.execution.MavenSessionThe Maven session object.Fields 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()voidDeprecated.voidgenerate(org.apache.maven.doxia.sink.Sink sink, org.apache.maven.doxia.sink.SinkFactory sinkFactory, Locale locale) This method is called when the report generation is invoked by maven-site-plugin.voidgetDescription(Locale locale) booleanvoidsetReportOutputDirectory(File outputDirectory) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.reporting.MavenReport
getOutputPath
-
Field Details
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) public org.apache.maven.project.MavenProject projectThe Maven Project Object -
session
@Parameter(defaultValue="${session}", required=true, readonly=true) public org.apache.maven.execution.MavenSession sessionThe Maven session object. -
pluginArtifacts
@Parameter(defaultValue="${plugin.artifacts}", required=true, readonly=true) public List<org.apache.maven.artifact.Artifact> pluginArtifactsThe plugin dependencies. -
pluginVersion
@Parameter(defaultValue="${plugin.version}", required=true, readonly=true) public String pluginVersionVersion of this plugin. -
factory
@Component public org.apache.maven.artifact.factory.ArtifactFactory factoryFactory for creating artifact objects -
repositorySystem
@Component public org.eclipse.aether.RepositorySystem repositorySystemUsed for resolving artifacts -
helper
@Component public org.apache.maven.project.MavenProjectHelper helper
-
-
Constructor Details
-
JellydocMojo
public JellydocMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
generateSchema
public void generateSchema() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
generate
@Deprecated public void generate(org.apache.maven.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException Deprecated.usegenerate(Sink, SinkFactory, Locale)instead.Generate a report.- Specified by:
generatein interfaceorg.apache.maven.reporting.MavenReport- Parameters:
sink- The sink to use for the generation.locale- The desired locale in which to generate the report; could be null.- Throws:
org.apache.maven.reporting.MavenReportException- if any error occurs
-
generate
public void generate(org.apache.maven.doxia.sink.Sink sink, org.apache.maven.doxia.sink.SinkFactory sinkFactory, Locale locale) throws org.apache.maven.reporting.MavenReportException This method is called when the report generation is invoked by maven-site-plugin.- Specified by:
generatein interfaceorg.apache.maven.reporting.MavenMultiPageReport- Parameters:
sink- The sink to use for the generation.sinkFactory- The sink factory to use for the generation; could be null.locale- The desired locale in which to generate the report; could be null.- Throws:
org.apache.maven.reporting.MavenReportException- if any error occurs
-
getOutputName
- Specified by:
getOutputNamein interfaceorg.apache.maven.reporting.MavenReport
-
getName
- Specified by:
getNamein interfaceorg.apache.maven.reporting.MavenReport
-
getCategoryName
- Specified by:
getCategoryNamein interfaceorg.apache.maven.reporting.MavenReport
-
getDescription
- Specified by:
getDescriptionin interfaceorg.apache.maven.reporting.MavenReport
-
setReportOutputDirectory
- Specified by:
setReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport
-
getReportOutputDirectory
- Specified by:
getReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport
-
isExternalReport
public boolean isExternalReport()- Specified by:
isExternalReportin interfaceorg.apache.maven.reporting.MavenReport
-
canGenerateReport
public boolean canGenerateReport()- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport
-
generate(Sink, SinkFactory, Locale)instead.