Package org.l2x6.cq.maven.doc
Class UpdateDocPageMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.l2x6.cq.maven.doc.UpdateDocPageMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="update-doc-page", threadSafe=true) public class UpdateDocPageMojo extends org.apache.maven.plugin.AbstractMojoUpdates the given extension's documentation page in thedocsmodule based on data in the current module.Intended primarily for Quarkiverse CXF. Note that there is a similar plugin in Camel Quarkus.
- Since:
- 3.4.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_TEMPLATES_URI_BASEprotected FiledocsBaseDirThe path to the docs module base directory
-
Constructor Summary
Constructors Constructor Description UpdateDocPageMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static <T extends Writer>
TevalTemplate(freemarker.template.Configuration cfg, String templateUri, Map<String,Object> model, T out)voidexecute()static StringextensionName(Function<String,String> getProperty, Supplier<String> getName)static StringextensionName(org.apache.maven.model.Model project)protected CharsetgetCharset()PathgetMultiModuleProjectDirectoryPath()
-
-
-
Field Detail
-
DEFAULT_TEMPLATES_URI_BASE
public static final String DEFAULT_TEMPLATES_URI_BASE
- See Also:
- Constant Field Values
-
docsBaseDir
@Parameter(defaultValue="${maven.multiModuleProjectDirectory}/docs") protected File docsBaseDirThe path to the docs module base directory- Since:
- 3.4.0
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
extensionName
public static String extensionName(org.apache.maven.model.Model project)
-
evalTemplate
protected static <T extends Writer> T evalTemplate(freemarker.template.Configuration cfg, String templateUri, Map<String,Object> model, T out)
-
getCharset
protected Charset getCharset()
-
extensionName
public static String extensionName(Function<String,String> getProperty, Supplier<String> getName)
-
getMultiModuleProjectDirectoryPath
public Path getMultiModuleProjectDirectoryPath()
-
-