How to install Apache Maven on Ubuntu 18.04 LTS

Apache Maven is a free open source project management software that can be used to manage the build, reporting and documentation of a project from one central location. It is based on the conception of a project object model and is used in particular for the deployment of Java-based projects.