class BuildProjectCommand extends AbstractMavenCommand {

    @Override
    public MavenExecutionResult execute() throws MavenEmbedderException {
        final MavenExecutionResult result = new DefaultMavenExecutionResult();
        final MavenEmbedder mavenEmbedder = createMavenEmbedder();
        final String pomPath = baseDirectory + FileSystems.getDefault().getSeparator() + POMServiceImpl.POM_XML;

        try {
            final File pomFile = new File(pomPath);
            mavenEmbedder.buildProjects(pomFile, false);
        } catch (ProjectBuildingException e) {
            result.addException(e);
        } finally {
            mavenEmbedder.dispose();
        }

        return result;
    }

    public  BuildProjectCommand(final String baseDirectory);

}