我正在开发一个maven多模块项目,JavaEE7具有以下文件夹结构。
+---parent-module
+---module-domain
+---module-service
+---module-web我想要配置Wildfly maven插件来部署/取消部署ap到Wildfly app server 8.0.0,这是pom.xml (在父模块的pom中):
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.0.0.Final</version>
<configuration>
<hostname>127.0.0.1</hostname>
<port>9990</port>
<username>admin</username>
<password>admin</password>
<!-- <jbossHome>C:/tools/wildfly-8.0.0.Final</jbossHome> -->
</configuration>
</plugin>
this is the log :
Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.0.Final:deploy (default-cli) on project .....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 http-remoting://127.0.0.1:9990. The connection timed out请给我====>Any提示?
谢谢
发布于 2015-01-13 05:06:36
看起来WildFly服务器没有运行。你是手动启动的,还是在你的POM中也使用了wildfly:start?
发布于 2015-01-17 00:45:06
根据评论中提供的信息,我认为您对目标有一点误解。wildfly-maven-plugin实际上是用来完全管理容器的。在执行mvn wildfly:start时,所创建的服务器进程将在maven退出时关闭。这可能是您无法连接的原因,因为没有服务器在运行。
这不是答案的一部分,但您可以随时提交issue,表明您希望在maven退出后start目标不退出。我可能不反对添加一个布尔型属性,该属性可以设置为true,这样就可以让进程继续运行。
发布于 2015-10-31 03:52:23
可能会有一些依赖问题。尝试通过管理控制台手动部署您的应用,看看部署过程中是否存在问题。

在我的例子中,我保留了一些所提供的库。
https://stackoverflow.com/questions/27904623
复制相似问题