What is the dependency scope? Name all the dependency scope.
Answer Posted / Parmatma Prasad
The dependency scope in Apache Maven defines the lifecycle of a dependency, i.e., when Maven should download and manage it during the build process. The available dependency scopes are: compile, provided, runtime, test, and system. Compile dependencies are required for compilation and running tests. Provided dependencies are those that are expected to be provided by the environment (like junit for testing). Runtime dependencies are required only at runtime, not for compilation or testing. Test dependencies are required only for unit tests. System dependencies are external libraries that Maven can't download from a repository, so they need to be specified as system scopes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers