Class InitMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.tentackle.maven.AbstractTentackleMojo
org.tentackle.maven.plugin.wizard.AbstractWizardMojo
org.tentackle.maven.plugin.wizard.InitMojo
- 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
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.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractWizardMojo
AbstractWizardMojo.LayerScope, AbstractWizardMojo.StageFactory -
Field Summary
Fields inherited from class AbstractWizardMojo
entityAliases, filesets, modelDefaults, modelDir, modelNameFields inherited from class AbstractTentackleMojo
charset, JDK_TOOLCHAIN, minLogLevel, verbosity, verbosityLevelFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected javafx.stage.StagegetStage()Gets the stage if this is an interactive FX application.Methods inherited from class AbstractWizardMojo
configureFx, createSessionInfo, getEntityAliases, getExecutionLock, getLayers, getLeafLayer, getModel, getModelDefaults, getProfiles, getStatusDir, getTemplateDir, installTemplates, isLayered, isTemplatesInstalled, loadModel, openLayerScope, processFileSet, registerUncaughtExceptionHandler, resolveFile, runInteractive, validateMethods inherited from class AbstractTentackleMojo
createFileSetManager, createPackageMap, determineEncoding, determineJavaToolVersion, determineVerbosity, execute, finishExecute, getBaseDir, getCanonicalPath, getHostName, getIncludedFiles, getJavaHome, getLogger, getMajorVersion, getMavenProject, getMavenSession, getMojoExecution, getPathRelativeToBasedir, getRepositorySystem, getResourceDir, getResourceDirs, getSettings, getSettingsDecrypter, getToolchain, getToolchain, getToolchain, getToolchainManager, getToolFinder, installJavaLoggingHandler, isExecutionRecursive, isSkippedByDefault, loadResourceFileIntoString, prepareExecute, setLogger, toDescriptorNameMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
InitMojo
public InitMojo()
-
-
Method Details
-
getStage
protected javafx.stage.Stage getStage()Description copied from class:AbstractWizardMojoGets the stage if this is an interactive FX application.- Specified by:
getStagein classAbstractWizardMojo- Returns:
- the stage, null if console application
-
executeImpl
public void executeImpl() throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:AbstractWizardMojoThe default implementation loads the model.
- Overrides:
executeImplin classAbstractWizardMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-