Q. Which environment variable is used to specify the path to maven?
β
Correct Answer: (D)
MAVEN_HOME
Explanation:
- MAVEN_HOME β β This environment variable is used to specify the installation directory of Maven.
- PATH β β Used to set executable directories, including Mavenβs bin directory.
- CLASSPATH β β Used to specify Java classes and libraries, not for Maven.
- JAVA_HOME β β Used to specify the JDK installation path, required for running Java applications but not directly for Maven.
Thus, MAVEN_HOME is the correct answer.