mirror of
https://github.com/apache/maven.git
synced 2025-02-08 11:05:37 +00:00
[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 Artifact resolve(Plugin plugin, List<RemoteRepository> repositories, Repo
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user