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: