protected void setGoals()

in src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java [225:235]


    protected void setGoals(InvocationRequest request, Commandline cli) throws CommandLineConfigurationException {
        List<String> goals = request.getGoals();

        if ((goals != null) && !goals.isEmpty()) {
            try {
                cli.createArg().setLine(String.join(" ", goals));
            } catch (CommandLineException e) {
                throw new CommandLineConfigurationException("Problem setting goals", e);
            }
        }
    }