@Mojo(name="run", requiresDependencyResolution=RUNTIME) @Execute(phase=PACKAGE) public class RunMojo extends DeployMojo
Modifier and Type | Field and Description |
---|---|
protected String |
name
Specifies the name used for the deployment.
|
protected org.apache.maven.project.MavenProject |
project |
static String |
WILDFLY_DIR |
CLIENT_LOCK, DEBUG_MESSAGE_NO_CREDS, DEBUG_MESSAGE_NO_ID, DEBUG_MESSAGE_NO_SERVER_SECTION, DEBUG_MESSAGE_NO_SETTINGS_FILE, DEBUG_MESSAGE_POM_HAS_CREDS, DEBUG_MESSAGE_SETTINGS_HAS_CREDS, DEBUG_MESSAGE_SETTINGS_HAS_ID
Constructor and Description |
---|
RunMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute()
Executes additional processing.
|
void |
execute() |
protected Deployment.Status |
executeDeployment(org.jboss.as.controller.client.ModelControllerClient client,
Deployment deployment) |
protected File |
file()
The archive file.
|
protected String |
getMatchPattern()
Returns the matching pattern for undeploy and redeploy goals.
|
protected MatchPatternStrategy |
getMatchPatternStrategy()
Returns the matching pattern strategy to use if more than one deployment matches the
pattern returns more than one instance of a deployment. |
protected org.wildfly.plugin.deployment.PackageType |
getPackageType() |
String |
goal()
The goal of the deployment.
|
protected void |
validate()
Validates the deployment.
|
getType
close, getCallbackHandler, getClient, getHostAddress, getPort, getProtocol, hostname, isDomainServer
public static final String WILDFLY_DIR
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
@Parameter protected String name
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
execute()
public String goal()
goal
in class DeployMojo
protected File file()
protected final org.wildfly.plugin.deployment.PackageType getPackageType()
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected final Deployment.Status executeDeployment(org.jboss.as.controller.client.ModelControllerClient client, Deployment deployment) throws DeploymentExecutionException, DeploymentFailureException, IOException
protected String getMatchPattern()
null
is returned.null
protected MatchPatternStrategy getMatchPatternStrategy()
pattern
returns more than one instance of a deployment. By default null
is returned.null
protected void validate() throws DeploymentFailureException
DeploymentFailureException
- if the deployment is invalid.Copyright © 2014 JBoss by Red Hat. All Rights Reserved.