1.

What Is Dependency Scope? Name All The Dependency Scope.?

Answer»

Dependency SCOPE includes dependencies as per the current stage of the build. Various Dependency Scopes are −

  • compile − This scope indicates that dependency is available in classpath of project. It is DEFAULT scope.
  • provided − This scope indicates that dependency is to be provided by JDK or web-Server/Container at runtime.
  • runtime − This scope indicates that dependency is not REQUIRED for compilation, but is required during execution.
  • test − This scope indicates that the dependency is only available for the test compilation and execution phases.
  • system − This scope indicates that you have to PROVIDE the system path.
  • import − This scope is only used when dependency is of type pom. This scope indicates that the specified POM should be replaced with the dependencies in that POM's section.

Dependency scope includes dependencies as per the current stage of the build. Various Dependency Scopes are −



Discussion

No Comment Found