Blog Archives

Maven assembly & Shade plugins examples & uber jar creation

Maven assembly plugin is primarily intended to allow users to aggregate the project output along with its dependencies, modules, site documentation, and other files into a single distribution archive like zip, tar, tar.gz, war, etc. Another example where this is handy is to create deployable files for different environments like myapp-1.10-SNAPSHOT-dev.zip



Maven assembly plugin examples

This extends the Maven assembly plugin with additional examples to create an assembly by controlling what artifacts get included in the archive.

Example 1: dev-assembly.xml

The datasource and properties files are packaged for DEV environment.



800+ Java & Big Data Interview Q&As

200+ Java & Big Data Tutorials

Top