"Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."
C:\> setx MAVEN_HOME "C:\Program Files\Maven\apache-maven-3.6.3"
C:\> setx PATH "%MAVEN_HOME%;%MAVEN_HOME%\bin;%PATH%;"
C:\> mvn -version
Apache Maven 3.6.3
you installed everything correctly.$ sudo apt-get update
$ sudo apt-get -y install maven
$ mvn -version