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.6.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.6.Final</version> <configuration> <jboss-home>/opt/${appServerName}</jboss-home> <modules-path>/opt/${appServerName}/modules</modules-path> <port>9999</port> </configuration> </plugin> ... </plugins> ... </build> ... </project>