Deploy a Maven Project to JBoss AS 7

Login | Register

Deploy a Maven Project to JBoss AS 7

JBoss Maven

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
<plugin>
  <groupId>org.jboss.as.plugins</groupId>
  <artifactId>jboss-as-maven-plugin</artifactId>
  <version>7.0.1.Final</version>
  <executions>
    <execution>
      <phase>package</phase>
      <goals>
        <goal>deploy</goal>
      </goals>
    </execution>
  </executions>
</plugin>

About

At Develop In Java, we've been a part of the Java community for over 10 years. If there's anything you'd like us to cover, just ask !

Current versions

  • Java - 1.8
  • Java EE - 7
  • Spring - 4.x