void (MavenGeneralSettings coreSettings, String mavenHome, ParametersList cmdList) { if (coreSettings.isWorkOffline()) { cmdList.add("--offline"); } if (coreSettings.getOutputLevel() == MavenExecutionOptions.LoggingLevel.DEBUG) { cmdList.add("--debug"); } if (coreSettings.isNonRecursive()) { cmdList.add("--non-recursive"); } if (coreSettings.isPrintErrorStackTraces()) { cmdList.add("--errors"); } if (coreSettings.isAlwaysUpdateSnapshots()) { cmdList.add("--update-snapshots"); } if (StringUtil.isNotEmpty(coreSettings.getThreads())) { cmdList.add("-T", coreSettings.getThreads()); } addIfNotEmpty(cmdList, coreSettings.getFailureBehavior().getCommandLineOption()); addIfNotEmpty(cmdList, coreSettings.getChecksumPolicy().getCommandLineOption()); addOption(cmdList, "s", coreSettings.getUserSettingsFile()); if (!StringUtil.isEmptyOrSpaces(coreSettings.getLocalRepository())) { cmdList.addProperty("maven.repo.local", coreSettings.getLocalRepository()); } }