-
Bug
-
Resolution: Done
-
Major
-
4.2.2.Final, 5.0.0.Beta3
-
None
If plugin is configured to run the server on a different port the server start fails.
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>test</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <build> <pluginManagement> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <version>3.4.0</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> <plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <!-- <version>4.2.2.Final</version>--> <version>5.0.0.Beta3</version> <configuration> <version>31.0.0.Final</version> <feature-packs> <feature-pack> <location>org.wildfly:wildfly-galleon-pack:31.0.0.Final</location> </feature-pack> </feature-packs> <javaOpts> <javaOpt>-Djboss.socket.binding.port-offset=5</javaOpt> </javaOpts> </configuration> </plugin> </plugins> </pluginManagement> </build> </project>
For this pom `mvn wildfly:dev` and `mvn wildfly:run` fails with:
21:53:48,276 INFO [org.jboss.ws.common.management] (MSC service thread 1-8) JBWS022052: Starting JBossWS 7.0.0.Final (Apache CXF 4.0.0) 21:53:48,402 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server 21:53:48,406 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9995/management 21:53:48,406 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9995 21:53:48,408 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 31.0.0.Final (WildFly Core 23.0.1.Final) started in 3705ms - Started 280 of 522 services (317 services are lazy, passive or on-demand) - Server configuration file in use: standalone.xml 21:54:44,687 INFO [org.jboss.as.server] (Thread-1) WFLYSRV0272: Suspending server 21:54:44,688 INFO [org.jboss.as.ejb3] (Thread-1) WFLYEJB0493: Jakarta Enterprise Beans subsystem suspension complete 21:54:44,690 INFO [org.jboss.as.server] (Thread-1) WFLYSRV0220: Server shutdown has been requested via an OS signal [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:18 min [INFO] Finished at: 2024-02-12T21:54:44+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:5.0.0.Beta3:dev (default-cli) on project test: The server failed to start: The server did not start within 60 seconds. -> [Help 1]21:54:44,700 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0019: Host default-host stopping