You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/coverage/language/java.md
+16-2
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,19 @@ Trivy parses your `pom.xml` file and tries to find files with dependencies from
42
42
- relativePath field[^5]
43
43
- local repository directory[^6].
44
44
45
-
If your machine doesn't have the necessary files - Trivy tries to find the information about these dependencies in the [maven repository](https://repo.maven.apache.org/maven2/).
45
+
### remote repositories
46
+
If your machine doesn't have the necessary files - Trivy tries to find the information about these dependencies in the remote repositories:
47
+
48
+
-[repositories from pom files][maven-pom-repos]
49
+
-[maven central repository][maven-central]
50
+
51
+
Trivy reproduces Maven's repository selection and priority:
52
+
53
+
- for snapshot artifacts:
54
+
- check only snapshot repositories from pom files (if exists)
55
+
- for other artifacts:
56
+
- check release repositories from pom files (if exists)
57
+
- check [maven central][maven-central]
46
58
47
59
!!! Note
48
60
Trivy only takes information about packages. We don't take a list of vulnerabilities for packages from the `maven repository`.
@@ -92,4 +104,6 @@ Make sure that you have cache[^8] directory to find licenses from `*.pom` depend
92
104
[^8]: The supported directories are `$GRADLE_USER_HOME/caches` and `$HOME/.gradle/caches` (`%HOMEPATH%\.gradle\caches` for Windows).
0 commit comments