mirror of https://github.com/apache/maven.git
[MNG-7786] Fix plugin validation misleading message
Bugfix post merge: all scopes EXCEPT provided and test... --- https://issues.apache.org/jira/browse/MNG-7786
This commit is contained in:
parent
1a19a0f58d
commit
4d6f16918a
|
@ -122,7 +122,7 @@ public class DefaultPluginDependenciesResolver implements PluginDependenciesReso
|
|||
}
|
||||
|
||||
Set<String> mavenArtifacts = result.getDependencies().stream()
|
||||
.filter(d -> !JavaScopes.PROVIDED.equals(d.getScope()))
|
||||
.filter(d -> !JavaScopes.PROVIDED.equals(d.getScope()) && !JavaScopes.TEST.equals(d.getScope()))
|
||||
.map(org.eclipse.aether.graph.Dependency::getArtifact)
|
||||
.filter(a -> "org.apache.maven".equals(a.getGroupId()))
|
||||
.filter(a -> !MavenPluginDependenciesValidator.EXPECTED_PROVIDED_SCOPE_EXCLUSIONS_GA.contains(
|
||||
|
|
Loading…
Reference in New Issue