Hi all,

we (research team) use the Apache Maven Shade Plugin to identify bloated code.

We execute the shade plugin with the minimizeJar option and compare the classes 
which end up in the generated fat jar with the complete set of classes from the 
project and its direct and transitive dependencies.

To automate this, we had to expose the finalName and minimizeJar parameters as 
properties to set them from the command line.

Modifying the pom.xml files is not an option for us, because we run the shade 
plugin against hundreds of projects.

Why is it not supported to execute the shade plugin from the command line [0]?

When we compared the output of the shade plugin configured via the pom.xml file 
and using our modified shade plugin from the command line, we got exactly the 
same results.

I would happily create a PR and expose a subset or all parameters via the 
property attribute in the Parameter annotations.

Kind regards,
Wolfram

[0] 
https://github.com/copyonwrite/maven-shade-plugin/blob/c648ccfade767acd5a59893a1719b58ed02fad99/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java#L644

Reply via email to