Artifact with scope Provided and Runtime should be excluded too

Former-commit-id: 53e086b5bf02eee8cb4c4f3703a61923608c13dd
This commit is contained in:
Henri Gomez
2014-02-11 12:51:59 +01:00
parent f9f4be181d
commit 158250e98d

View File

@@ -248,7 +248,7 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
final Engine engine = new Engine();
final Set<Artifact> artifacts = project.getArtifacts();
for (Artifact a : artifacts) {
if (!TEST_SCOPE.equals(a.getScope())) {
if (!Artifact.SCOPE_TEST.equals(a.getScope()) && !Artifact.SCOPE_PROVIDED.equals(a.getScope()) && !Artifact.SCOPE_RUNTIME.equals(a.getScope())) {
engine.scan(a.getFile().getAbsolutePath());
}
}