setting M2_HOME inside config.properties does not seem to work - it only works if M2_HOME is exported as an environment variable.