Maven JBoss7 部署:ConnectException

Maven JBoss7 deployment: ConnectException

JBoss 7.1.5 已启动并且 运行。 我可以在 http://127.0.0.1:9990/console

后访问管理

我创建了以下要部署的 Maven 配置文件:

<profile>
    <id>localDeploy</id>
    <build>
        <plugins>
            <plugin>
                <groupId>org.jboss.as.plugins</groupId>
                <artifactId>jboss-as-maven-plugin</artifactId>
                <version>7.9.Final</version>
                <goals>
                    <goal>deploy</goal>
                </goals>
                <configuration>
                    <hostname>127.0.0.1</hostname>
                    <port>9990</port>
                    <username>username</username>
                    <password>pw</password>
                </configuration>
            </plugin>
        </plugins>
    </build>
</profile>

无论我尝试什么,当 运行 mvn jboss-as:deploy -P localDeploy 时,它总是失败

[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.9.Final:deploy (default- cli) on project [project-name]: Could not execute goal deploy on [name].ear.
Reason: I/O Error could not execute operation '{
[ERROR] "operation" => "read-attribute",
[ERROR] "address" => [],
[ERROR] "name" => "launch-type"
[ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to remote://127.0.0.1:9990. The connection timed out

netstat -ano | grep "9999" 显示服务器未在侦听。

standalone.xml 中的 management-interfaces 部分缺失

<native-interface security-realm="ManagementRealm">
    <socket-binding native="management-native"/>
</native-interface>

@Illya Kysil 为我指明了正确的方向。