Artifact with scope Provided and Runtime should be excluded too

Former-commit-id: 018e2bc3ab950e6543f945377b6f492d504d2e0c
This commit is contained in:
Henri Gomez
2014-02-11 12:51:59 +01:00
parent f09293e077
commit 714d8ac3ba

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());
}
}