当我更改(管理-)端口wildfly:start (有关描述,请参见https://docs.jboss.org/wildfly/plugins/maven/latest/examples/run-example.html )时,的maven行为(maven-)的行为似乎是错误的。
wildfly:start不应该阻止进一步的执行,而wildfly:run应该阻止(有关描述,请参阅https://docs.jboss.org/wildfly/plugins/maven/latest/plugin-info.html )。由于我将自动发布到JBoss,我希望它启动然后发布,但是每当我更改管理端口时,它就会阻止进一步的执行(直到启动超时过期),然后构建失败。
org.jboss.as WFLYSRV0060: HTTP-Management ist empfangsbereit auf http://127.0.0.1:9990/Management
意思是“正在监听http://127.0.0.1:9990/Management__”。
为什么它在监听端口9990,尽管我告诉它要监听端口9995
18:15:49,813 INFO org.jboss.as WFLYSRV0025: JBoss EAP 7.1.0.GA (WildFly Core 3.0.10 WildFly redhat-1) wurde妊娠期组,35339 18 2625 von 2851 Diensten gestartet (379 Services sind“懒惰”,passiv oder werden bei geladen)
意思是类似于"JBoss EAP7.1.0.GA(.)在35339 on中成功启动- 2851个启动服务中的265个(379个服务是懒惰的、被动的或按需启动的)“。
这是它挂起的消息--等待启动超时过期,然后失败。
下面是一个显示问题的最小pom.xml:
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.example</groupId>
<artifactId>test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>test</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.install.skip>true</maven.install.skip>
<jar.skipIfEmpty>true</jar.skipIfEmpty>
<plugin.wildfly.port>9995</plugin.wildfly.port>
<plugin.wildfly.httpport>8050</plugin.wildfly.httpport>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>2.0.1.Final</version>
<configuration>
<jboss-home>D:\server\jboss-eap-7.1</jboss-home>
<username>admin</username>
<password>admin</password>
<hostname>localhost</hostname>
<port>${plugin.wildfly.port}</port>
<java-opts>
<java-opt>-Djboss.http.port=${plugin.wildfly.httpport}</java-opt>
</java-opts>
</configuration>
<executions>
<execution>
<id>start-server</id>
<phase>integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>如果我将属性non-blocking 更改为 9990 (默认管理端口),则wildfly:start再次变为9990。
发布于 2019-05-13 15:23:34
如果没有覆盖服务器配置中的管理端口,则还需要将-Djboss.management.http.port=${plugin.wildfly.port}作为java-opt传递。
注意,当插件试图确定服务器是否正在运行时,阻塞只会持续很长时间。
https://stackoverflow.com/questions/55266783
复制相似问题