Open delanym opened 1 year ago
Can you provide a simple project for reproduce? Which version of extra rules and enforcer plugin do you use?
I updated to extra-enforcer-rules v1.8.0 but now the ban applies to third-party artifacts and not just the classes in my code. There are ignores, but it would be tedious to have to define all of them, so I'm just going to turn the rule off. Is this really such a bad situation?
09:55:33 Rule 7: org.codehaus.mojo.extraenforcer.dependencies.BanDuplicateClasses failed with message:
09:55:33 Duplicate class found:
09:55:33
09:55:33 Found in:
09:55:33 jakarta.activation:jakarta.activation-api:jar:2.1.2:compile
09:55:33 org.glassfish.metro:webservices-api:jar:4.0.2:compile
09:55:33 Duplicate classes:
09:55:33 jakarta/activation/ActivationDataFlavor.class
Another example of being able to blacklist but not whitelist: https://issues.apache.org/jira/browse/MDEP-808
... interesting does version 1.7.0 don't check classes in external library ....? What is your code?
Unfortunately its not open source. It built with 1.7.0. I haven't changed dependencies since upgrading to 1.8.0
Does adding jakarta.activation-api and webservices-api to your project with v1.8.0 cause it to fail?
This rule seems to be very troublesome, but recently it became unbearable.
With this configuration
It tries to download an artifact already downloaded (why is it even downloading artifacts?) and outputs a whopping 25 lines for every missing dependency.