mvn spring-boot:run and then continue code example Example: mvn spring boot ends when closing vm nohup mvn spring-boot:run &