Create a maven goal which deploy to a remote jboss eap 6.x instance is quite simple.
Just add the following to your pom.xml
<plugins>
<plugin>
<groupId>org.jboss.as.plugins
<artifactId>jboss-as-maven-plugin
<version>7.6.Final
<configuration>
<username>admin
<password>Admin#1234
<hostname>192.168.0.10
<port>19999
</configuration>
</plugin>
</plugins>
Then create a maven run configuration in eclipse having:
– Base directory set to the variable ${project_path} (so that it applies to the current project)
– Goal: jboss-as:deploy