[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aether-users] Exclusions on a dependency
|
Thanks duo of Benjamins, implementing both changes fixed the issue and
my tests are passing.
Lesson to be learned is to read the whole javadoc, I skipped the header
with the "Note: Instances of this class are immutable and the exposed
mutators return new objects rather than changing the current instance".
I do not think I would have figured out what to pass in for the
classifier and extension though.
thanks,
Michael
On 09/29/2011 06:28 AM, Benjamin Bentmann wrote:
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
_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aether-users