我正在使用wildfly-maven-plugin进行集成测试.
如何更改端口默认号码(8080,8443)?
我找不到这些端口号的任何配置属性.
UPDATE
我发现了这个,端口号也改变了.但是起始目标未能产生"在XX秒内未能启动"可能一些信令程序不知道改变的端口.
<executions>
<execution>
<id>wildfly-start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>wildfly-deploy</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
<execution>
<id>wildfly-undeploy</id>
<phase>post-integration-test</phase>
<goals>
<goal>undeploy</goal>
</goals>
</execution>
<execution>
<id>wildfly-shutdown</id>
<phase>post-integration-test</phase>
<goals>
<goal>shutdown</goal>
</goals>
</execution>
</executions>
Run Code Online (Sandbox Code Playgroud)
jvmArgs<configuration>
<jvmArgs>-Djboss.socket.binding.port-offset=40000</jvmArgs>
</configuration>
Run Code Online (Sandbox Code Playgroud)
端口号仍为默认值.
14:25:34,244 INFO ... Undertow HTTP listener default listening on 127.0.0.1:8080
14:25:35,107 INFO ... Undertow HTTPS listener https listening on 127.0.0.1:8443
14:25:40,183 INFO ... Http management interface listening on http://127.0.0.1:9990/management
14:25:40,183 INFO ... …Run Code Online (Sandbox Code Playgroud)