public static void addVMParameters(ParametersList parametersList, String mavenHome, String vmOptionsSettings) {
    parametersList.addParametersString(System.getenv(MAVEN_OPTS));

    parametersList.addParametersString(vmOptionsSettings);

    parametersList.addProperty(MavenConstants.HOME_PROPERTY, mavenHome);
  }
public static void addVMParameters(ParametersList parametersList, String mavenHome, String vmOptionsSettings)