diff --git a/maven-mboot2/src/main/java/model/ModelReader.java b/maven-mboot2/src/main/java/model/ModelReader.java index 270c8da784..1dfce37aa2 100644 --- a/maven-mboot2/src/main/java/model/ModelReader.java +++ b/maven-mboot2/src/main/java/model/ModelReader.java @@ -179,6 +179,12 @@ public class ModelReader { insideReleases = true; } + else if ( rawName.equals( "exclusion" ) && insideDependency ) + { + insideExclusion = true; + + currentExclusion = new Exclusion(); + } depth++; } @@ -330,12 +336,6 @@ public class ModelReader { currentDependency.setScope( getBodyText() ); } - else if ( rawName.equals( "exclusion" ) ) - { - insideExclusion = true; - - currentExclusion = new Exclusion(); - } } else if ( insideResource ) {