During the entire book you have been executing the Maven command spring-boot:run and I haven’t covered it in too much detail, but when you execute it, you are actually executing the Spring Boot Maven plugin goals. These normally have a particular flow. They will compile your application (classes), execute the unit tests, and run your application taking the target/classes (where the compilation phase output all the compiled classes into) directory as the working directory.
This chapter discusses another Maven command that will allow you to create standalone applications or executable JARs. ...