Class SiteIndexMojo

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

    @Mojo(name="site-index",
          defaultPhase=PRE_SITE,
          requiresProject=true,
          threadSafe=true)
    public class SiteIndexMojo
    extends org.apache.maven.plugin.AbstractMojo
    Generate a Markdown site index based on another Markdown file. This goal will provide the following transformations:
    • Add an HTML title.
    • Make any link that starts with the project's URL relative to that URL.
    • Remove any badges that match any of a set of provided patterns. Badges will be removed if:
      • They are preceded by a space. In this case, the leading space is removed as well.
      • They are on a line of their own. In this case, the entire line is removed.
    Author:
    Rob Spoor
    • Constructor Detail

      • SiteIndexMojo

        public SiteIndexMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException