Anybody has any idea what happened to my maven build? I am getting a lot of duplicate warnings.
[WARNING] We have a duplicate org/apache/commons/logging/impl
You might also have run into a limitation of maven-shader-plugin. It replaces the default jar artifact (created by maven-jar-plugin). This works fine on a clean build, but on a rebuild where the jar is not regenerated, the shader runs again on the jar it created last time, which already contains copies of all the class dependencies. That produces a lot of warnings about duplicates.
This issue is still unaddressed as of maven-shader-plugin 2.0: https://issues.apache.org/jira/browse/MSHADE-126
One workaround is to add the maven-jar-plugin explicitly to your pom.xml and add the configuration setting <forceCreation>true</forceCreation>
.
You have dependencies in your pom which contain duplicate classes but without the appropriate pom i couldn't say a word about it.