Usage

The JBoss AS7 Deployment Plugin is generally used to deploy applications to a running JBoss Application Server. Each goal can be explicitly executed from the command line or specified in the execution portion of the plugin in the POM file.

The jboss-as:deploy Goal

The jboss-as:deploy goal deploys the application to the running JBoss Application Server.

For example to deploy, or redeploy by default, you type the following on the command line:

mvn package jboss-as:deploy

The jboss-as:redeploy Goal

The jboss-as:redeploy goal will redeploy your application if and only if the application has already been deployed to the application server.

To execute the the redeploy goal type the following on the command line:

mvn jboss-as:redeploy

The jboss-as:undeploy Goal

The jboss-as:undeploy goal will undeploy your application from the from the running application server if the application has already been deployed.

To execute the the redeploy goal type the following on the command line:

mvn jboss-as:undeploy