Package org.kohsuke.stapler
Class TaglibDocMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.kohsuke.stapler.TaglibDocMojo
- 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="jelly-taglibdoc",
requiresDependencyResolution=COMPILE)
@Execute(phase=GENERATE_SOURCES)
public class TaglibDocMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.maven.reporting.MavenMultiPageReport
Scans Jelly tag libraries from tag files, and generate
taglib.xml
compatible with jellydoc-maven-plugin
For productive debugging of this mojo, run "mvn site:run" with debugger. Every request will trigger a whole rendering, and you can do hot-swap of byte code for changes.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.project.MavenProjectThe Maven Project Objectprotected org.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.voidDeprecated.usegenerate(Sink, SinkFactory, Locale)instead.getDescription(Locale locale) booleanvoidsetReportOutputDirectory(File outputDirectory) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe Maven Project Object -
session
@Parameter(defaultValue="${session}", required=true, readonly=true) protected org.apache.maven.execution.MavenSession sessionThe Maven session object.
-
-
Constructor Details
-
TaglibDocMojo
public TaglibDocMojo()
-
-
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
-
generate
@Deprecated public void generate(org.codehaus.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
@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.- 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.