Maven detection depends on the following to successfully run:
- Maven CLI as part of your PATH. mvn should be runnable from a given command line.
- Maven Dependency Plugin (installed with Maven).
- One or more
pom.xml
files.
Maven detection is performed by running mvn dependency:tree -f {pom.xml}
for each pom file and parsing down the results.
Components tagged as a test dependency are marked as development dependencies.
Full dependency graph generation is supported.
Maven detection will not run if mvn
is unavailable.
The environment variable MvnCLIFileLevelTimeoutSeconds
is used to control the max execution time Mvn CLI is allowed to take per each pom.xml
file. Default value, unbounded. This will restrict any spikes in scanning time caused by Mvn CLI during package restore. We suggest to restore the Maven packages beforehand, so that no network calls happen when executing "mvn dependency:tree" and the graph is captured quickly.