What is the use of maven shade plugin?

maven shade plugin:

maven-shade-plugin: It packages all dependencies into one uber-jar. It can also be used to build an executable jar by specifying the main class.

This plugin is particularly useful as it merges the content of specific files instead of overwriting them by Relocating Classes. This is needed when there are resource files that have the same name across the jars and the plugin tries to package all the resource files.

How to add Maven Shade Plugin::

<build> 
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation=”org.apache.maven.plugins.shade.resource.ManifestResourceTransformer”>
<mainClass>
path.to.MainClass
</mainClass>
</transformer>
</transformers>
<createDependencyReducedPom>
false
</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Best Bannerghatta Road Restaurants

1. Gilly’s Restobar, Bannerghatta Road, Bangalore
Cuisines: Finger Food, Continental, North Indian
Author Notes: Good for North Indian Style dining.


2. Chianti, Bannerghatta Road, Bangalore
Cuisines: Italian


3. Chavadi, Bannerghatta Road, Bangalore
Cuisines: Continental, North Indian, Pizza, Italian


4. Public – The Rooftop Bar…, Bannerghatta Road, Bangalore
Cuisines: North Indian, Chinese, Finger Food
Author Notes: Good for North Indian Style dining.


5. Grasshopper, Bannerghatta Road, Bangalore
Cuisines: European


6. The Yellow Submarine, Bannerghatta Road, Bangalore
Cuisines: Continental, North Indian, Asian, Pizza, Modern Indian


7. Punjabi Times, Bannerghatta Road, Bangalore
Cuisines: North Indian


8. Simply Indian, Bannerghatta Road, Bangalore
Cuisines: North Indian, Chinese, Seafood, Biryani, Mangalorean


9. Guru Greens, Bannerghatta Road, Bangalore
Cuisines: North Indian, Chinese


10. Shanghai Court, Bannerghatta Road, Bangalore
Cuisines: Chinese, Thai