The JBoss AS7 Deployment Plugin is generally used to deploy applications or application artifacts 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:add-resource goal adds a resource to the running JBoss Application Server.
For example to add a resource you type the following on the command line:
mvn jboss-as:add-resource
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 jboss-as:deploy
The jboss-as:deploy-artifact goal deploys an arbitrary artifact to the running JBoss Application Server.
For example to deploy the arbitrary artifact specified in you POM, you type the following on the command line:
mvn jboss-as:deploy-artifact
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 redeploy goal type the following on the command line:
mvn jboss-as:redeploy
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 undeploy goal type the following on the command line:
mvn jboss-as:undeploy