|
JBoss AS7 Deployment Plugin 7.0.0.CR1 | ||||||||
| 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.deployment.Redeploy
public final class Redeploy
Redeploys the archived result of the project to the application server.
Example Usage: <build> <plugins> ... <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>${jboss-as-maven-plugin-version}</version> <executions> <execution> <phase>package</phase> <goals> <goal>redeploy</goal> </goals> </execution> </executions> </plugin> ... </plugins> </build>
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
Redeploy()
|
|
| Method Summary | |
|---|---|
protected org.jboss.as.controller.client.ModelControllerClient |
client()
Creates a model controller client. |
org.jboss.as.controller.client.helpers.standalone.DeploymentPlan |
createPlan(org.jboss.as.controller.client.helpers.standalone.DeploymentPlanBuilder builder)
Creates the deployment plan. |
protected boolean |
deploymentExists()
Checks to see if the deployment exists. |
void |
execute()
|
File |
file()
The archive file. |
String |
filename()
The file name of the archive not including the directory. |
boolean |
force()
Returns true if force is enabled, otherwise false. |
String |
goal()
The goal of the deployment. |
protected InetAddress |
hostAddress()
Creates gets the address to the host name. |
String |
hostname()
The hostname to deploy the archive to. |
String |
name()
The deployment name. |
protected String |
nameDefinedMessage()
A message indicating the name has been defined and will be used. |
protected String |
nameNotDefinedMessage()
A message indicating the name has not been defined. |
int |
port()
The port number of the server to deploy to. |
File |
targetDirectory()
The target directory the archive is located. |
| 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 |
| Constructor Detail |
|---|
public Redeploy()
| Method Detail |
|---|
public org.jboss.as.controller.client.helpers.standalone.DeploymentPlan createPlan(org.jboss.as.controller.client.helpers.standalone.DeploymentPlanBuilder builder)
throws IOException,
org.apache.maven.plugin.MojoFailureException
builder - the builder used to create the deployment plan.
IOException - if the deployment plan cannot be created.
org.apache.maven.plugin.MojoFailureExceptionpublic String goal()
public final String name()
null.
null.public final String hostname()
public final int port()
public final boolean force()
true if force is enabled, otherwise false.
true if force is enabled, otherwise false.public final File targetDirectory()
project.build.directory.
public final String filename()
project.build.finalName + . + project.packaging
public final File file()
protected final InetAddress hostAddress()
throws UnknownHostException
UnknownHostException - if the host name was not found.
protected final org.jboss.as.controller.client.ModelControllerClient client()
throws UnknownHostException
UnknownHostException - if the host name does not exist.
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 boolean deploymentExists()
throws IOException
true if the deployment exists, false if the deployment does not exist or cannot be
determined.
IOException - if an error occurred.protected String nameNotDefinedMessage()
protected String nameDefinedMessage()
|
JBoss AS7 Deployment Plugin 7.0.0.CR1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||