Wildfly maven plugin

Start a local wildfly instance.

$ ~/java_tools/wildfly/wildfly-10.1.0.Final/bin/standalone.sh &

Or download and start on-the-fly.

$ mvn -Pwildfly wildfly:start
[INFO] Scanning for projects…
[INFO]
[INFO] ————————————————————————
[INFO] Building fireanote-web 0.0.1-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] — wildfly-maven-plugin:1.0.1.Final:start (default-cli) @ fireanote-web —
Downloading: …

$ mvn -Pwildfly wildfly:deploy

$ mvn -Pwildfly wildfly:undeploy

$ mvn -Pwildfly wildfly:shutdown

http://docs.jboss.org/wildfly/plugins/maven/latest/