Plugin Documentation

Goals available for this plugin:

GoalDescription
jboss-as:add-resourceAdds a resource If force is set to false and the resource has already been deployed to the server, an error will occur and the operation will fail. Note: this currently only works with adding resources to subsystems when your server is running in domain mode.
jboss-as:deployDeploys the application to the JBoss Application Server. If force is set to true, the server is queried to see if the application already exists. If the application already exists, the application is redeployed instead of deployed. If the application does not exist the application is deployed as normal. If force is set to false and the application has already been deployed to the server, an error will occur and the deployment will fail.
jboss-as:deploy-artifactDeploys an arbitrary artifact to the JBoss application server
jboss-as:execute-commandsExecute commands to the running JBoss Application Server. Commands should be formatted in the same manor CLI commands are formatted. Executing commands in a batch will rollback all changes if one command fails.
     <execute-commands>
         <batch>true</batch>
         <commands>
             <command>/subsystem=logging/console=CONSOLE:write-attribute(name=level,value=DEBUG)</command>
         </commands>
     </execute-commands>
jboss-as:helpDisplay help information on jboss-as-maven-plugin.
Call mvn jboss-as:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
jboss-as:redeployRedeploys the application to the JBoss Application Server.
jboss-as:runStarts a standalone instance of JBoss Application Server 7 and deploys the application to the server.
jboss-as:undeployUndeploys the application to the JBoss Application Server.
jboss-as:undeploy-artifactUndeploys (removes) an arbitrary artifact to the JBoss application server

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven2.0
JDKDefault target for maven-compiler-plugin version 2.3.2
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.jboss.as.plugins</groupId>
          <artifactId>jboss-as-maven-plugin</artifactId>
          <version>7.2.Final</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.jboss.as.plugins</groupId>
        <artifactId>jboss-as-maven-plugin</artifactId>
        <version>7.2.Final</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"