What is the dependency scope? Name all the dependency scope.
Answer / 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 |
Why should one use maven?
What do you mean by maven repository and its types?
What is force maven update?
What are the default values for the packaging element?
What is the difference between a release version and snapshot version in maven?
How is the propagation of plugins to child poms stopped?
What are the repositories in maven?
What is an archetype?
Explain what is pom?
Can you tell me the default location of your local repository?
What is a goal in maven terminology?
How do I determine which pom contains missing transitive dependency?