By default, the run goal runs your application in a forked process. If you need to debug it, you should add the necessary JVM arguments to enable remote debugging. The following configuration suspend the process until a debugger has joined on port 5005:

            -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005

These arguments can be specified on the command line as well, make sure to wrap that properly, that is:

mvn spring-boot:run"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"