Skip to content

Commit

Permalink
docs: use Eclude field.
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Sep 3, 2024
1 parent a162fa1 commit 117555f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/docs/coverage/language/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The following table provides an outline of the features Trivy offers.
| Artifact | Internet access | Dev dependencies | [Dependency graph][dependency-graph] | Position | [Detection Priority][detection-priority] |
|------------------|:---------------------:|:------------------:|:------------------------------------:|:--------:|:----------------------------------------:|
| JAR/WAR/PAR/EAR | Trivy Java DB | Include | - | - | Not needed |
| pom.xml | Maven repository [^1] | [Include](#scopes) ||[^7] | - |
| pom.xml | Maven repository [^1] | [Exclude](#scopes) ||[^7] | - |
| *gradle.lockfile | - | Exclude ||| Not needed |
| *.sbt.lock | - | Exclude | - || Not needed |

Expand Down Expand Up @@ -73,8 +73,7 @@ The vulnerability database will be downloaded anyway.
Trivy supports `runtime`, `compile`, `test` and `import` (for `dependencyManagement`) [dependency scopes][dependency-scopes].
Dependencies without scope are also detected.

!!! Note
To detect dependencies with `test` scope, you need to use `--include-dev-deps` flag.
By default, Trivy doesn't report dependencies with `test` scope. Use the `--include-dev-deps` flag to include them.

### maven-invoker-plugin
Typically, the integration tests directory (`**/[src|target]/it/*/pom.xml`) of [maven-invoker-plugin][maven-invoker-plugin] doesn't contain actual `pom.xml` files and should be skipped to avoid noise.
Expand Down

0 comments on commit 117555f

Please sign in to comment.