@Mojo(name="dev",
requiresDependencyCollection=TEST,
requiresDependencyResolution=TEST)
public class DevMojo
extends StartDebugMojoSupport
BasicSupport.InstallType| Modifier and Type | Field and Description |
|---|---|
protected boolean |
clean
Clean all cached information on server start up.
|
protected org.apache.maven.project.ProjectBuilder |
mavenProjectBuilder |
protected boolean |
pollingTest
Poll for file changes instead of using file system notifications (test only).
|
bootstrapMavenProps, bootstrapProperties, bootstrapPropertiesFile, combinedBootstrapProperties, combinedJvmOptions, copyDependencies, defaultVarMavenProps, envMavenProps, HEADER, jvmMavenProps, jvmOptions, jvmOptionsFile, PLUGIN_VARIABLE_CONFIG_XML, pluginManager, serverXmlFile, varMavenPropsassemblyArchive, assemblyArtifact, assemblyInstallDirectory, configDirectory, defaultOutputDirSet, install, installDirectory, installType, isInstall, libertyRuntimeVersion, licenseArtifact, mergeServerEnv, messages, refresh, serverDirectory, serverEnvFile, serverName, skip, START_APP_MESSAGE_REGEXP, userDirectoryant, artifactRepository, project, reactorProjects, repoSession, repositories, repositorySystem, session, settings| Constructor and Description |
|---|
DevMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute() |
protected void |
runLibertyMojoCreate()
Executes liberty:create unless using a container, then just create the necessary server directories
|
protected void |
runLibertyMojoInstallFeature(org.twdata.maven.mojoexecutor.MojoExecutor.Element features,
String containerName)
Executes liberty:install-feature unless using Liberty in a container
|
protected void |
setContainer(boolean container)
Set the container option.
|
copyConfigFiles, getLibertyPlugin, getPlugin, getPluginFromPluginManagement, initializeJava, isConfigCopied, runLibertyMojoDeploy, runLibertyMojoDeploy, runMojocheckServerDirectoryExists, checkServerHomeExists, deleteApplication, deleteApplication, getLibertyDirectoryPropertyFiles, getLibertyDirectoryPropertyFiles, init, installFromArchive, installFromFile, installLicense, installServerAssembly, stripVersionFromNamecreateArtifact, createArtifactItem, dependencyTrailContainsArtifact, findTransitiveDependencies, getArtifact, getArtifact, getArtifactRepository, getProject, getReactorMavenProject, getResolvedDependencyWithTransitiveDependencies, isReactorMavenProjectcontextualize, execute, getArtifactFactory, getArtifactResolver, getProjectArtifacts, getProjectArtifacts, getProjectArtifacts, resolveArtifact, resolveArtifact@Component protected org.apache.maven.project.ProjectBuilder mavenProjectBuilder
@Parameter(property="clean",
defaultValue="false")
protected boolean clean
@Parameter(property="pollingTest",
defaultValue="false")
protected boolean pollingTest
protected void setContainer(boolean container)
container - whether dev mode should use a containerprotected void doExecute()
throws Exception
doExecute in class org.codehaus.mojo.pluginsupport.MojoSupportExceptionprotected void runLibertyMojoInstallFeature(org.twdata.maven.mojoexecutor.MojoExecutor.Element features,
String containerName)
throws org.apache.maven.plugin.MojoExecutionException
runLibertyMojoInstallFeature in class StartDebugMojoSupportorg.apache.maven.plugin.MojoExecutionExceptionprotected void runLibertyMojoCreate()
throws org.apache.maven.plugin.MojoExecutionException
runLibertyMojoCreate in class StartDebugMojoSupportorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2021 the original author or authors.