Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Exclusions on a dependency

Michael Guymon wrote:

exclusions.add( new Exclusion( "org.apache.tomcat", "catalina", null,
null) );
dependency.setExclusions( exclusions );

In addition to what Ben correctly pointed out, your exclusion is not properly declared. You likely want to specify "*" for classifier and extension, not null which only matches for classifier="" and extension="".

I have not tried source diving to figure this out, was hoping this is an
easy fix.

FWIW, ExclusionDependencySelector is the class evaluating the exclusions.


Benjamin


Back to the top