Class InitMojo

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

    @Mojo(name="init",
          inheritByDefault=false,
          aggregator=true)
    public class InitMojo
    extends AbstractWizardMojo
    Initializes the templates.
    Copies the default templates to the configured templateDir.
    Needs to be executed only to restore the templates to their defaults.
    • Constructor Detail

      • InitMojo

        public InitMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractWizardMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException