Avoid apt-get error by not using apt-get to install maven.