You must have the JAVA_HOME variable set to your JDK installation directory. How to Download Apache Maven 3.6.1
Maven 3.6.1 requires JDK 7 or higher . For modern projects, JDK 8 or 11 is recommended. maven download apache maven 3.6 1
Improved support for running and testing Maven with Java 11 and prepared the suite for Java 12 and 13. You must have the JAVA_HOME variable set to
Resolved a NullPointerException (MNG-5705) and issues where work was duplicated when multiple goals were specified in parallel builds. maven download apache maven 3.6 1
Reduced memory consumption during the build process. Prerequisites for Installation
Introduced attributes to prevent Maven from automatically appending paths to inherited URLs (project, SCM, and site), giving developers more control over multi-module structures.