To package all dependencies into one jar file just run inside folder(where pom.xml file exists):
mvn package
the jar will be generated into a new folder called target
To launch the jar :
java -jar nameOfYourJar.jar
for our example it will be java -jar SpringBootExecutableJAR-0.0.1-SNAPSHOT.jar