@Mojo(name="deploy-artifact",
requiresDependencyResolution=RUNTIME,
threadSafe=true)
public final class DeployArtifactMojo
extends AbstractServerConnection
| Modifier and Type | Field and Description |
|---|---|
protected String |
name
Specifies the name used for the deployment.
|
protected org.apache.maven.project.MavenProject |
project |
protected String |
runtimeName
The runtime name for the dployment.
|
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 |
|---|
DeployArtifactMojo() |
| 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,
Path wildflyHome) |
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. |
Deployment.Type |
getType()
The type of the deployment.
|
String |
goal()
The goal of the deployment.
|
void |
validate(org.jboss.as.controller.client.ModelControllerClient client,
boolean isDomain)
Validates the deployment.
|
createClient, getClientConfiguration@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
@Parameter protected String name
@Parameter(alias="runtime-name",
property="wildfly.deployment.runtime.name")
protected String runtimeName
In some cases users may wish to have two deployments with the same runtime-name (e.g. two versions of
example.war) both available in the management configuration, in which case the deployments would need to
have distinct name values but would have the same runtime-name.
public void validate(org.jboss.as.controller.client.ModelControllerClient client,
boolean isDomain)
throws DeploymentFailureException
client - the client used for validationisDomain - true if this is a domain server, otherwise falseDeploymentFailureException - if the deployment is invalid.protected File file()
public String goal()
public Deployment.Type getType()
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected final Deployment.Status executeDeployment(org.jboss.as.controller.client.ModelControllerClient client, Deployment deployment, Path wildflyHome) throws DeploymentExecutionException, DeploymentFailureException, IOException
protected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionexecute()protected String getMatchPattern()
null is returned.nullprotected MatchPatternStrategy getMatchPatternStrategy()
pattern returns more than one instance of a deployment. By default null is returned.nullCopyright © 2016 JBoss by Red Hat. All rights reserved.