我正在将构建部署到本地和远程Jboss AS 7.1.1最终端口9999。Maven使用jboss插件'jboss-as-maven- plugin :7.1.1.Final‘来管理服务器的构建。我已确认服务器已启动并正在运行,端口可在9999访问。但是,对于本地和远程Jboss,“多次”构建都会失败,并出现以下错误。Jboss ic配置为单机模式单节点集群。
Stranglely构建并不是每次都会失败,但大多数情况下都会失败。不确定是否需要将Maven插件升级到更高版本。
默认信息插件-生成失败并出现异常信息org.apache.maven.lifecycle.LifecycleExecutionException:无法在项目上执行目标插件(默认-cli)测试:执行UNDEPLOY调试时出错关闭与远程的连接错误无法执行目标org.jboss.as.plugins:jboss-as- o.h.m.e.h.MavenExecutionResultHandler - org.jboss.as.plugins:jboss-as-maven-plugin:7.1.1.Final:undeploy用法:7.1.1最终:在项目上取消部署(默认-cli)测试:执行UNDEPLOY时出错: java.net.ConnectException: JBAS012144:无法连接到远程://本地主机:9999。连接超时->帮助%1
更新
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.1.1.Final</version>
<configuration>
<filename>${project.build.finalName}.jar</filename>
<username>${userName}</username>
<password>${password}</password>
</configuration>
</plugin>
我现在使用的是最新版本的Maven插件,但是现在连接超时错误似乎更加频繁。我开始思考,当Jboss试图对应用程序的不同子项目进行太多的远程部署时,Jboss的行为是否会有所不同。我有21个子项目是从一个主POM部署。示例配置如下
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.master</groupId>
<artifactId>master</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>Master</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<modules>
<module>module1</module>
<module>module2</module>
<module>module3</module>
<module>module4</module>
<module>module5</module>
<module>module6</module>
<module>module7</module>
<module>module8</module>
<module>module9</module>
<module>module10</module>
<module>module11</module>
<module>module12</module>
<module>module13</module>
</modules>
发布于 2017-12-16 09:46:38
首先,检查插件配置。例如:
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.9.Final</version>
<inherited>true</inherited>
<configuration>
<hostname>${jboss.hostname}</hostname>
<port>${jboss.port}</port>
<username>${jboss.user}</username>
<password>${jboss.pass}</password>
<timeout>30000</timeout>
</configuration>
</plugin>
如果主机名,端口号(默认为9999),用户名和密码都可以,你可以尝试增加“超时”(默认为5000ms,你可以尝试30000ms)。这对我很管用。
发布于 2016-01-22 17:10:04
问题的4可能解决方案
https://stackoverflow.com/questions/15757757
复制相似问题