Class UpdateDocsMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="update-docs",
          threadSafe=true)
    public class UpdateDocsMojo
    extends org.apache.maven.plugin.AbstractMojo
    Performs the following tasks:
    • Deletes extension pages whose extensions do not exist anymore
    • Synchronizes nav.adoc with the reality
    Intended primarily for Quarkiverse CXF. Note that there is a similar plugin in Camel Quarkus.
    Since:
    3.4.0
    • Field Detail

      • docsBaseDir

        @Parameter(defaultValue="${maven.multiModuleProjectDirectory}/docs")
        protected File docsBaseDir
        The path to the docs module base directory
        Since:
        3.4.0
    • Constructor Detail

      • UpdateDocsMojo

        public UpdateDocsMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Execute goal.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - execution of the main class or one of the threads it generated failed.
        org.apache.maven.plugin.MojoFailureException - something bad happened...
      • evalTemplate

        protected static <T extends Writer> T evalTemplate​(freemarker.template.Configuration cfg,
                                                           String templateUri,
                                                           Map<String,​Object> model,
                                                           T out)
      • getCharset

        protected Charset getCharset()
      • getMultiModuleProjectDirectoryPath

        public Path getMultiModuleProjectDirectoryPath()