Deploy a Maven Project to JBoss AS 7

When developing software, it can be useful to be able to deploy to a running application server immediately when a build has completed, To perform this action with JBoss AS and Maven required use of the jboss-as-maven-plugin.

To deploy to JBoss,

  • Ensure JBoss is running
  • Add the JBoss plugin to the pom.xml file.
  • Execute the jboss-as:deploy target from Maven