This is the example repo for my blog post on Running a Java Application on the Command Line With Maven
To run this example:
- Make sure you have Java, the JDK, and Maven installed
- Clone the repo
- Run
mvn clean compile assembly:single
- this should give you a JAR file in thetarget
folder - Run
java -jar target/mvn-example-1.0-SNAPSHOT.jar
to run the JAR file