See https://github.com/spring-projects/spring-boot/issues/23545 for background.
Comment From: mhalbritter
It now fails with a better error message, which reads:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.7.8-SNAPSHOT:start (default-cli) on project sb-24044-mvn: Could not contact Spring Boot application via JMX on port 9001. Please make sure that no other process is using that port: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: [ERROR] java.net.SocketTimeoutException: Read timed out]