我想部署一个应用程序到一个远程wildfly 8.1.0.Final使用货物maven插件,它失败并出现错误操作失败:无法连接到远程://10.0.0.165 :在5000毫秒内为9990。使用货物远程部署到萤火虫失败
该应用程序是maven原型cargo-archetype-remote-deployment生成的默认应用程序。这个应用程序可以成功地部署到jboss 7.1.1.Final而无需修改pom。我加入了以下配置文件到POM
<profile>
<id>wildfly8x</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<container>
<containerId>wildfly8x</containerId>
</container>
<properties>
<!--<cargo.jboss.management-native.port>9999</cargo.jboss.management-native.port>-->
<cargo.jboss.management-http.port>9990</cargo.jboss.management-http.port>
</properties>
</configuration>
<!--
The JBoss remote deployer requires some additional dependencies. Read more on:
http://cargo.codehaus.org/JBoss+Remote+Deployer
-->
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-controller-client</artifactId>
<version>7.0.2.Final</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
这与变化的wildfly的jboss7x配置文件的副本。
开头的属性已更改为正确的主机名和用户名和密码。我可以使用http登录到10.0.0.165:9990并访问Web界面我也可以使用jboss-cli界面登录到10.0.0.165:9990并使用命令行将应用程序部署到服务器。我也按照建议增加了时间,但没有成功。
看起来,remote://协议在wildfly中不可用,或者名称不正确,并且货物期望能够使用它进行连接。
当我将Netbeans 8连接到它时,我遇到了野蛮问题以及过去对接口所做的更改。我最终通过添加在其中一个测试版本中删除的本地管理界面来找到解决方案。
有没有人有任何知识如何让这个工作?从一个实例中得到一个pom副本是很好的。在回复之前,请确保您的回复与指定为jboss/redhat的版本相关,这些版本会在点文件发布之间进行更改,而文档很少。