|
JBoss AS7 Deployment Plugin 7.9.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.jboss.as.plugin.common.AbstractServerMojo
org.jboss.as.plugin.deployment.DeployArtifact
@Mojo(name="deploy-artifact",
requiresDependencyResolution=RUNTIME,
threadSafe=true)
public final class DeployArtifactDeploys an arbitrary artifact to the JBoss application server
| Field Summary | |
|---|---|
protected String |
name
Specifies the name used for the deployment. |
protected org.apache.maven.project.MavenProject |
project
|
| Fields inherited from class org.jboss.as.plugin.common.AbstractServerMojo |
|---|
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 |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DeployArtifact()
|
|
| Method Summary | |
|---|---|
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. |
Deployment.Type |
getType()
The type of the deployment. |
String |
goal()
The goal of the deployment. |
void |
validate()
Validates the deployment. |
| Methods inherited from class org.jboss.as.plugin.common.AbstractServerMojo |
|---|
close, getCallbackHandler, getClient, getHostAddress, getPort, hostname, isDomainServer, isSkip |
| 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 |
| Field Detail |
|---|
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
@Parameter protected String name
Examples:
<name>example.war</name><name>example.ear</name>
| Constructor Detail |
|---|
public DeployArtifact()
| Method Detail |
|---|
public void validate()
throws DeploymentFailureException
DeploymentFailureException - 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.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected final Deployment.Status executeDeployment(org.jboss.as.controller.client.ModelControllerClient client,
Deployment deployment)
throws DeploymentExecutionException,
DeploymentFailureException,
IOException
DeploymentExecutionException
DeploymentFailureException
IOException
protected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.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.
null
|
JBoss AS7 Deployment Plugin 7.9.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||