I'm using wildfly-maven-plugin for my integration tests.
How can I change port default numbers(8080, 8443)?
I couldn't find any configuration property for those port numbers.
UPDATE
I tried yntelectual's answer but ports numbers are still in their default values.
I found this and the port numbers are changed. But the start goal fails yielding "failed to start in XX seconds" may some signaling procedure doesn't know the changed port.
<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>
Using jvmArgs
<configuration>
<jvmArgs>-Djboss.socket.binding.port-offset=40000</jvmArgs>
</configuration>
Ports number are still in their default values.
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 ... Admin console listening on http://127.0.0.1:9990
Using server-args
<configuration>
<server-args>
<server-arg>-Djboss.socket.binding.port-offset=40000</server-arg>
</server-args>
</configuration>
Port numbers changed but the start
goal doesn't finish.
14:29:35,535 INFO ... Undertow HTTP listener default listening on 127.0.0.1:48080
14:29:36,543 INFO ... Undertow HTTPS listener https listening on 127.0.0.1:48443
14:29:41,535 INFO ... Http management interface listening on http://127.0.0.1:49990/management
14:29:41,535 INFO ... Admin console listening on http://127.0.0.1:49990
BUILD FAILURE
------------------------------------------------------------------------
14:30:07,345 INFO ... Undertow HTTPS listener https stopped, was bound to 127.0.0.1:48443
14:30:07,347 INFO ... Undertow HTTP listener default suspending
14:30:07,357 INFO ... Undertow HTTP listener default stopped, was bound to 127.0.0.1:48080
14:30:07,359 INFO ... Undertow 1.4.0.Final stopping
14:30:07,365 INFO ... WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 34ms
[INFO] Final Memory: 34M/460M
------------------------------------------------------------------------
Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.0.Alpha5:start (wildfly-start) on project ...
The server failed to start:
The server did not start within 60 seconds. -> [Help 1]
Issues to track
- https://issues.jboss.org/browse/WFMP-12
- https://issues.jboss.org/browse/WFMP-14