Your problem is with class path. As you are using maven build your project folder is the root directory/folder for a maven project. Hence you have to run your jar file from your project folder like below. Also make sure all the jar files/packages are in your class path.
java -jar target/yourproject.jar
Also create one class path variable like below and refer it in your command line:-
CP="C:\lib\example.jar;C:\another\location\example2.jar..."
java -cp %CP% -jar target/yourproject.jar
For Unix environment:-
CP="/../lib/example.jar:/../another/location/example2.jar..."
java -cp "$CP" -jar target/yourproject.jar