How to make a "fat jar" of a Maven project?
<p>Using IntelliJ I just created a new Maven project and added the following to the pom file <a href="http://undertow.io/downloads.html" rel="noreferrer">http://undertow.io/downloads.html</a> and the following to a Main.java file <a href="http://undertow.io/index.html" rel="noreferrer">http://undertow.io/index.html</a></p>

<p>Now if I run the code all works well, but how do I make this as a "fat jar" that will contain all the dependencies in the pom file and that I'll be able to run by just <code>java -jar my.jar</code> ? Like you are able to do with a Spring Boot app.</p>