Class InitMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="init", aggregator=true, threadSafe=true) public class InitMojo extends AbstractWizardMojo
Initializes the templates.
Copies the default templates to the configured templateDir, overwriting existing ones.
Needs to be executed only to restore the templates to their defaults, since the other goals install them automatically if the template directory does not exist.

Runs headless and does not load the model.

  • Constructor Details

    • InitMojo

      public InitMojo()
  • Method Details

    • getStage

      protected javafx.stage.Stage getStage()
      Description copied from class: AbstractWizardMojo
      Gets the stage if this is an interactive FX application.
      Specified by:
      getStage in class AbstractWizardMojo
      Returns:
      the stage, null if console application
    • executeImpl

      public void executeImpl() throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractWizardMojo

      The default implementation loads the model.

      Overrides:
      executeImpl in class AbstractWizardMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException