@Test public void useDefaultGoalsTest() { final ExecuteGoalsCommand command = new ExecuteGoalsCommand(BASE_DIRECTORY); final MavenRequest request = command.buildMavenRequest(); assertThat(request.getGoals()).isEqualTo(ExecuteGoalsCommand.DEFAULT_GOALS); }
@Override public MavenRequest buildMavenRequest() { final String pomPath = baseDirectory + FileSystems.getDefault().getSeparator() + POM_XML; final MavenRequest mavenRequest = MavenProjectLoader.createMavenRequest(false); mavenRequest.setGoals(goals); mavenRequest.setPom(pomPath); return mavenRequest; }
ExecuteGoalsCommand extends AbstractMavenCommand { @Override public MavenRequest buildMavenRequest() { final String pomPath = baseDirectory + FileSystems.getDefault().getSeparator() + POM_XML; final MavenRequest mavenRequest = MavenProjectLoader.createMavenRequest(false); mavenRequest.setGoals(goals); mavenRequest.setPom(pomPath); return mavenRequest; } }
ExecuteGoalsCommand extends AbstractMavenCommand { @Override public MavenRequest buildMavenRequest() { final String pomPath = baseDirectory + FileSystems.getDefault().getSeparator() + POM_XML; final MavenRequest mavenRequest = MavenProjectLoader.createMavenRequest(false); mavenRequest.setGoals(goals); mavenRequest.setPom(pomPath); return mavenRequest; } ExecuteGoalsCommand(final String baseDirectory);  ExecuteGoalsCommand(final String baseDirectory,
                               final List<String> goals); }
ExecuteGoalsCommand extends AbstractMavenCommand { @Override public MavenRequest buildMavenRequest() { final String pomPath = baseDirectory + FileSystems.getDefault().getSeparator() + POM_XML; final MavenRequest mavenRequest = MavenProjectLoader.createMavenRequest(false); mavenRequest.setGoals(goals); mavenRequest.setPom(pomPath); return mavenRequest; } ExecuteGoalsCommand(final String baseDirectory);  ExecuteGoalsCommand(final String baseDirectory,
                               final List<String> goals); @Override MavenRequest buildMavenRequest(); @Override Properties buildUserProperties(); }
ExecuteGoalsCommand extends AbstractMavenCommand { @Override public MavenRequest buildMavenRequest() { final String pomPath = baseDirectory + FileSystems.getDefault().getSeparator() + POM_XML; final MavenRequest mavenRequest = MavenProjectLoader.createMavenRequest(false); mavenRequest.setGoals(goals); mavenRequest.setPom(pomPath); return mavenRequest; } ExecuteGoalsCommand(final String baseDirectory);  ExecuteGoalsCommand(final String baseDirectory,
                               final List<String> goals); @Override MavenRequest buildMavenRequest(); @Override Properties buildUserProperties(); static final String POM_XML; }