org.terracotta.maven.plugins.tc
Class DsoLifecycleMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.terracotta.maven.plugins.tc.AbstractDsoMojo
org.terracotta.maven.plugins.tc.DsoLifecycleMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- AbstractDsoRunMojo, DsoSurefireMojo
public abstract class DsoLifecycleMojo
- extends AbstractDsoMojo
Field Summary |
protected boolean |
overwriteBootjar
Overwrite boot jar if already exist |
protected java.lang.String |
serverName
Name of the DSO Server to start |
protected boolean |
spawnServer
Start DSO Server in a separate java process |
protected boolean |
startServer
Start DSO server before starting other goals, such as tC:run or tc:test |
protected boolean |
verbose
Show verbose output from the boot jar tool |
Fields inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo |
bootJar, classpathElements, config, CONTEXT_KEY_STARTABLES, debugPort, jvm, jvmargs, jvmdebug, localRepository, mode, modules, numberOfNodes, pluginArtifacts, processes, remoteRepositories, resolver, workingDirectory |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.terracotta.maven.plugins.tc.AbstractDsoMojo |
createCommandLine, createJvmArguments, createJvmArguments, createPluginClasspath, createPluginClasspathAsFile, createProjectClasspath, getAdditionalModules, getClientConfig, getJMXUrl, getModulesRepository, getServerConfig, getServerStatus, getStartables, getTerracottaArtifact, isCustomMode, quoteIfNeeded, resolveModuleArtifacts, resolveModuleArtifacts, setJvm, setJvmargs |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
verbose
protected boolean verbose
- Show verbose output from the boot jar tool
overwriteBootjar
protected boolean overwriteBootjar
- Overwrite boot jar if already exist
spawnServer
protected boolean spawnServer
- Start DSO Server in a separate java process
serverName
protected java.lang.String serverName
- Name of the DSO Server to start
startServer
protected boolean startServer
- Start DSO server before starting other goals, such as tC:run or tc:test
DsoLifecycleMojo
public DsoLifecycleMojo()
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
generateBootJar
protected boolean generateBootJar()
startDsoServer
protected boolean startDsoServer()
stopDsoServer
protected boolean stopDsoServer()
onExecute
protected abstract void onExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.