Maven - Package as Jar

Maven script can help to package your application as JAR bundle. That's great ! But if you need to have dependencies jars package into a same jar so that you execute jar. Yes MAVEN plugins surely helps us !

There are multiple ways to achieve jar with dependencies included. But the most flexiable & extensiable is via maven plugin - Shade plugin (

Shadow Plugin provides flexiabilty to even exclude jar files from final deployable bundle

Paste the below code in selection

<!-- Maven Shade Plugin -->
        <!-- Run shade goal on package phase -->
                        <!-- Examples-->

Dialogue & Discussion