public class ContainerRunMojo extends ContainerStartMojo
localContainerCONTEXT_KEY_CLASSLOADER, CONTEXT_KEY_CONTAINER| Constructor and Description |
|---|
ContainerRunMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.codehaus.cargo.container.Container |
createNewContainer()
Creates a brand new
Container instance. |
void |
doExecute()
Executes the plugin.
|
addAutoDeployDeployable, executeLocalContainerActioncalculateContainerArtifactId, containsAutoDeployable, createAutoDeployDeployable, createConfiguration, createContainer, createDefaultContainerElementIfNecessary, createDefaultInstallerElementIfNecessary, createLogger, execute, getCargoProject, getConfigurationElement, getContainerElement, getDaemon, getDeployablesElement, getDeployerElement, getFileHandler, isIgnoreFailures, setCargoProject, setConfigurationElement, setContainerElement, setDeployablesElement, setDeployerElement, setFileHandler, setIgnoreFailures, waitDeployableMonitorgetProjectpublic void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
This method must be implemented by all Mojos extending this class. The reason for this
pattern is because we want the AbstractCargoMojo.execute() method to always be called so that
necessary plugin initialization can be performed. Without this pattern Mojos extending this
class could "forget" to call super.execute() thus leading to unpredictible
results.
doExecute in class ContainerStartMojoorg.apache.maven.plugin.MojoExecutionException - in case of errorprotected org.codehaus.cargo.container.Container createNewContainer()
throws org.apache.maven.plugin.MojoExecutionException
Container instance. If the user has
not specified a container element in the POM file or if the user has not specified the
container id then automatically create a default container (as defined in
AbstractCargoMojo.createDefaultContainerElementIfNecessary()) if the project calling this plugin has a
WAR packaging. If the packaging is different then an exception is raised.createNewContainer in class AbstractCargoMojoContainer instanceorg.apache.maven.plugin.MojoExecutionException - in case of error or if a default container could not be
createdCopyright © 2004–2018 Github. All rights reserved.