Maven Dependency Scopes Supported by Code Insight

The following list shows runtime and non-runtime Maven-specific scopes that Code Insight currently supports for dependencies found in a .jar, pom.xml, or .pom file. The Maven scope for a given dependency is converted to the broader Runtime or Non-Runtime scope in the scan results.

Maven Dependency Scopes for Runtime and Non-Runtime

Runtime Scopes

Non-Runtime Scopes

compile

provided

runtime

test

system

import

Additional Notes About Maven Dependency Scopes

The following dependency behavior occurs during transitive scan (that is, scans whose scan profile is configured with the All Transitive Dependencies option).

The scan reports dependencies from a dependency management tag with an import scope for a given pom.xml file. However, if these dependencies have dependencies from a dependency management tag in their respective pom.xml files, these next-level dependencies are not reported.
Dependencies defined with the test scope for a given pom.xml file are reported. However, dependencies (also with a test scope) of these dependencies are not reported.