To make an executable Java jar or to deploy Java jar to a system without dependency jars (eg. Spark app somehow won’t download required Maven dependencies), add these lines to pom.xml file of a Maven Java project directly under root tag to make a fat jar:


      <!--make single jar-->

        <!--make fat jar with dependencies-->
        <!--set executable class-->