First you’ll need to setup a Java project for Maven to build. To keep the focus on Maven, make the project as simple as possible for now. Now that you have a project that is ready to be built with ...
mvn package The package goal will compile your Java code, run any tests, and finish by packaging the code up in a JAR file within the target directory. The name of the JAR file will be based on the ...