DevOps / Maven Interview questions
Different types of dependency scope.
The
Compile
default scope;it indicates what dependency is available in the classpath of the project.
Provided
indicates that the dependency is provided by JDK or web server or container at runtime.
Runtime
the dependency is not needed for compilation but is required during execution.
Test
indicates that the dependency is not required for normal usage of the application however it is only available for the test compilation and execution phases.
system
You need to provide the JAR which contains it explicitly.
import
Only used on the dependency of type pom in the . indicates that the specified POM gets replaced or imported with the dependencies in that POM.
More Related questions...