Maven dependency exclusion not working

This article helps you in such cases: There are at list two reasons of such problems: 1. This dependency is transitive for other dependency, not that one, where you made exclusion. Thus you need to add exclusion tag somewhere else (if your exclusion is located in section, not plugin-level). mvn dependency:tree is very useful for […]

READ MORE

Error creating shaded jar target\classes (Access is denied)

The error looks like this: Stacktrace: maven-shade-plugin tries to open classes folder as zip file. This happens when one of the dependencies is found on the local filesystem and not in the local maven repository. Before unpacking, the plugin should check whether target\classes is a directory or a zip file, but it doesn’t. One solution […]

READ MORE