The WildFly Maven Plugin is generally used to deploy applications or application artifacts to a running WildFly 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 wildfly:add-resource goal adds a resource to the running WildFly Application Server.
For example to add a resource you type the following on the command line:
mvn wildfly:add-resource
The wildfly:deploy goal deploys the application to the running WildFly Application Server.
For example to deploy, or redeploy by default, you type the following on the command line:
mvn wildfly:deploy
The wildfly:deploy-only goal deploys the application to the running WildFly without executing any other goals by default.
For example to deploy, or redeploy by default, you type the following on the command line:
mvn wildfly:deploy-only
The wildfly:deploy-artifact goal deploys an arbitrary artifact to the running WildFly.
For example to deploy the arbitrary artifact specified in you POM, you type the following on the command line:
mvn wildfly:deploy-artifact
The wildfly: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 wildfly:redeploy
The wildfly:redeploy-only goal will redeploy your application if and only if the application has already been deployed to the application server. By default no other goals are invoked.
To execute the redeploy goal type the following on the command line:
mvn wildfly:redeploy-only
The wildfly: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 wildfly:undeploy
The wildfly:run goal will run WildFly and deploy your application. If the wildfly.home property is not set, the server will be downloaded.
To execute the run goal type the following on the command line:
mvn wildfly:run
The wildfly:start goal will start a WildFly. If the wildfly.home property is not set, the server will be downloaded. The server will continue to run until the shutdown goal is executed, a shutdown management operation has been issued or the process is killed.
To execute the start goal type the following on the command line:
mvn wildfly:start