Example usage for org.apache.maven.execution DefaultMavenExecutionRequest setRecursive

List of usage examples for org.apache.maven.execution DefaultMavenExecutionRequest setRecursive

Introduction

In this page you can find the example usage for org.apache.maven.execution DefaultMavenExecutionRequest setRecursive.

Prototype

@Override
    public MavenExecutionRequest setRecursive(boolean recursive) 

Source Link

Usage

From source file:org.maven.ide.eclipse.embedder.EmbedderFactory.java

License:Apache License

public static MavenExecutionRequest createMavenExecutionRequest(MavenEmbedder embedder, boolean offline,
        boolean debug) {
    DefaultMavenExecutionRequest request = new DefaultMavenExecutionRequest();

    request.setOffline(offline);/*ww  w .  jav  a 2 s . c  om*/
    request.setUseReactor(false);
    request.setRecursive(true);

    if (debug) {
        request.setShowErrors(true);
        request.setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_DEBUG);
    } else {
        request.setShowErrors(false);
        request.setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_INFO);
    }

    return request;
}