Add maven-assembly-plugin for "fat jar" creation

The project to be analyzed needs to be configured to produce a jar with dependencies (a so-called "fat jar"). Modify thepom.xmlto include maven-assembly-plugin which will ensure that the dependencies of the project are included in the jar file.

Add the following to thepom.xmlfile, in the <build><plugins> section (see also Appendix 2):


Build the project and check the target folder under Project to see the new jar file which has been created -java-demo-1.0.1-jar-with-dependencies.jar.

results matching ""

    No results matching ""