πŸ“Š JAVA
Q. Which environment variable is used to specify the path to maven?
  • (A) PATH
  • (B) CLASSPATH
  • (C) JAVA_HOME
  • (D) MAVEN_HOME
πŸ’¬ Discuss
βœ… 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.

Explanation by: Mr. Dubey

 

  • 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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
274
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
85%
Success Rate