In this project, I have worked on Console App to run commands using Vanilla JAVA.
-
First we will generate the jar file in target folder.
$ mvn clean install
-
Open the terminal and run the commands one by one :
$ java -jar target\picocli-app-1.0-SNAPSHOT.jar command1 -x=aditya
$ java -jar target\picocli-app-1.0-SNAPSHOT.jar command2 1 2 3 4
-
You commands will run successfully.