Maven is available under the Apache License, Version 2.0
If you want to bootstrap Maven, you'll need:
Run Maven, specifying a location into which the completed Maven distro should be installed:
mvn -DdistributionTargetFolder="$HOME/app/maven/apache-maven-3.4.x-SNAPSHOT" clean package
Once the build completes, you should have a new Maven distro ready to roll in that directory!