Skip to content

Instantly share code, notes, and snippets.

@bparry02
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save bparry02/acaf7c30f2c58cd8580d to your computer and use it in GitHub Desktop.

Select an option

Save bparry02/acaf7c30f2c58cd8580d to your computer and use it in GitHub Desktop.
jboss-as:deploy to remote server. Make sure management interface is bound to an external interface. Optionally specify host from command line instead of creating a profile via: mvn clean package jboss-as:deploy -Djboss-as.hostname=my-remote-host -Djboss-as.id=my-remote-host
<profiles>
<profile>
<id>deploy-remote</id>
<build>
<plugins>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>${version.jboss.maven.plugin}</version>
<configuration>
<!-- server element from settings.xml. Can also set via jboss-as.id system property -->
<id>my-remote-host</id>
<!-- hostname of remote server. Can also set via jboss-as.hostname system property -->
<hostname>my-remote-host</hostname>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<servers>
<server>
<id>my-remote-host</id>
<username>my-management-user</username>
<password>password</password>
</server>
</servers>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment