Running a Maven Project from the Command Line (and Building Jar Files)

This tutorial will show you how to run a basic Java Maven project on the command line (as opposed to on an IDE). We will learn how to run maven commands that: Create a new maven project Compile, package, and execute your Java code from an executable JAR file Run unit tests for your code Add external dependencies to your project All of these tasks will be done on the command line, so that you can have a better idea on what’s going on under the hood, and how you can run a Java application without needing an IDE like Eclipse or IntelliJ....