void (ParametersList parametersList, String mavenHome, MavenGeneralSettings coreSettings, MavenRunnerSettings runnerSettings, MavenRunnerParameters parameters) { encodeCoreAndRunnerSettings(coreSettings, mavenHome, parametersList); if (runnerSettings.isSkipTests()) { parametersList.addProperty("skipTests", "true"); } for (Map.Entry<String, String> entry : runnerSettings.getMavenProperties().entrySet()) { if (entry.getKey().length() > 0) { parametersList.addProperty(entry.getKey(), entry.getValue()); } } for (String goal : parameters.getGoals()) { parametersList.add(goal); } for (var cmdOption : parameters.getOptions()) { parametersList.add(cmdOption); } if (parameters.getPomFileName() != null && !FileUtil.namesEqual(MavenConstants.POM_XML, parameters.getPomFileName())) { parametersList.add("-f"); parametersList.add(parameters.getPomFileName()); } addOption(parametersList, "P", encodeProfiles(parameters.getProfilesMap())); }