What is the purpose of dependency-reduced-pom.xml generated by the shade plugin?

Transcendence picture Transcendence · Apr 7, 2014 · Viewed 34.1k times · Source

I read over the docs and didn't find anything that talks about what it's used for.

Answer

Tome picture Tome · Nov 16, 2014

The shade:shade Mojo is quite well documented, here especially about the createDependencyReducedPom parameter, which will create that dependency-reduced-pom.xml file: maven-shade-plugin/shade-mojo.html#createDependencyReducedPom

In short, this is quite useful if you intend to use that shaded JAR (instead of the normal JAR) as a dependency for another module. That dependency-reduced-pom.xml will not contain the JARs already present in the shaded one, avoiding useless duplication.