Command line via the Maven goal

The first one is a goal of the Spring Boot Maven plugin, and it is straightforward; open the terminal then go to the root project folder, pay attention as this is the same folder where we have the pom.xml, and execute the following command:

mvn clean install spring-boot:run

The Maven will now compile the project and run the main class, the class CmsApplication, and we should see this output:

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.