The run goal allows you to run a local instance of $appServerName.
The example below shows how to run a server with multiple module paths:
<project>
...
<build>
...
<plugins>
...
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.9.Final</version>
<configuration>
<modules-path>
<paths>
<path>/opt/${appServerName}/modules</path>
<path>/opt/my-modules</path>
</paths>
</modules-path>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
</project>The example below shows how to run a server with the management port running a different port.
<project>
...
<build>
...
<plugins>
...
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.9.Final</version>
<configuration>
<jboss-home>/opt/${appServerName}</jboss-home>
<modules-path>/opt/${appServerName}/modules</modules-path>
<port>9999</port>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
</project>The example below shows how to run a server with a different base directory.
<project>
...
<build>
...
<plugins>
...
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.9.Final</version>
<configuration>
<server-args>
<server-arg>-Djboss.server.base.dir=/opt/${appServerName}/standalone/</server-arg>
<server-arg>-b=0.0.0.0</server-arg>
</server-args>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
</project>