title: jboss-as-maven-plugin can't deploy to remote JBoss AS7?
body: <p>I've tried for days to use <code>jboss-as-maven-plugin</code> to deploy web projects to remote JBoss AS7, but it didn't work. </p>
  
  <p>Here is my <code>pom.xml</code>: </p>
  
  <pre><code>&lt;!-- JBoss Application Server --&gt;
  &lt;plugin&gt;
      &lt;groupId&gt;org.jboss.as.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;jboss-as-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;7.1.0.CR1b&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;install&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;deploy&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;!-- Only remote server needs --&gt;
              &lt;configuration&gt;
                  &lt;hostname&gt;192.168.1.104&lt;/hostname&gt;
                  &lt;port&gt;9999&lt;/port&gt;
                  &lt;username&gt;admin&lt;/username&gt;
                  &lt;password&gt;admin123&lt;/password&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;    
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Using this configuration I can deploy to <strong>localhost</strong> without <code>&lt;configuration&gt;</code>, even no <code>&lt;username&gt;</code> and <code>&lt;password&gt;</code>.</p>
  
  <p>To deploy to my real IP address, I modified <strong>${JBOSS_HOME}/configuration/standlone.xml</strong>, by changing <code>jboss.bind.address</code> from <strong>127.0.0.1</strong> to <strong>0.0.0.0</strong> (to unbind JBoss address), so I can deploy projects by using:</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;!-- 192.168.1.106 is my ip --&gt;
      &lt;hostname&gt;192.168.1.06&lt;/hostname&gt;
      &lt;port&gt;9999&lt;/port&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>It works too, but by changing <code>&lt;hostname&gt;</code> to point to my other computer (in the same router) it doesn't work but that computer receives a request, and the request is cut by something. (I thought it may be JBoss)</p>
  
  <p>The error message in Maven console is as follows:</p>
  
  <pre><code> INFO: JBoss Remoting version 3.2.0.CR8
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 30.572s
  [INFO] Finished at: Fri Feb 10 23:41:25 CST 2012
  [INFO] Final Memory: 18M/170M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.1.0.
  CR1b:deploy (default) on project MessagePushX-RELEASE: Could not execute goal de
  ploy on MessagePush.war. Reason: java.net.ConnectException: JBAS012144: Could no
  t connect to remote://192.168.1.104:9999. The connection timed out -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
  ch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please rea
  d the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p>Who can tell me is JBoss as 7.1.0 is not allowed remote deploy? </p>
  
  <p>For some security issues? </p>