I am using maven-shade-plugin for a simple maven project, the plugin successfully includes all the dependencies into a final "shaded" jar. The process works well every time and produces exactly what I need.
When run the "first" time (after a clean
), the plugin is quiet and produces very little output. However, when re-run (without a clean
from the last build), there are lots of warning messages such as this;
[WARNING] We have a duplicate package/a/b/foo.class
[WARNING] We have a duplicate package/c/d/bar.class
This are warning messages only and the final artifact works fine.
My question is simple: how can I safely workaround or suppress these warning messages without having to run a clean
first?
note: A possible solution would be to move to the maven-assembly-plugin, but I would prefer not to because the configuration for maven-shade-plugin is very nice and simple.