+1 vote
in Maven - Coalescing Pipeline by
What is the dependency scope? Name all the dependency scope.

1 Answer

0 votes
by

Dependency scope typically includes dependencies as per the current stage of the build. The various Dependency scopes are -

  1. compile - This scope indicates that dependency is available in the classpath of the project. It is the default scope.
  2. provided - This indicates that the dependency is to be provided by JDK or web-Server/Container at runtime.
  3. runtime - This scope tells that you dont need dependency is for compilation but you need it for for execution.
  4. test - This scope states that the dependency is only available for the test compilation and execution phases.
  5. system - This scope indicates that you must provide the system path.
  6. import - This scope is only used when the dependency is of type pom. This scope tells that the specified POM should be replaced with the dependencies in the POM’s <dependencyManagement> section.

Related questions

0 votes
asked Aug 20, 2023 in Maven - Coalescing Pipeline by GeorgeBell
+1 vote
asked Oct 25, 2021 in Maven - Coalescing Pipeline by Robin
...