Depending on your goal (pun not originally intended), there are various options.
If you want to execute your application in place (from your development environment), you can use maven to execute your main class, with your dependencies in the classpath, by using maven exec plugin:
mvn exec:java -Dexec.mainClass="your.main.Class"
If you want to be able to package your application to something that you can distribute and run elsewhere, you have other choices:
- maven assembly plugin, to build an archive that will bundle your app along with dependencies and a launcher script (that you will have to write)
- maven shade plugin, to build a "fat jar" with your code and its dependencies, as a single file runnable with
java yourfatjar.jar
There are more alternatives, above are just pointers for the main ones: for each you'll find a ton of other more comprehensive Stack Overflow answers.