Example usage for org.apache.maven.lifecycle DefaultLifecycles STANDARD_LIFECYCLES

List of usage examples for org.apache.maven.lifecycle DefaultLifecycles STANDARD_LIFECYCLES

Introduction

In this page you can find the example usage for org.apache.maven.lifecycle DefaultLifecycles STANDARD_LIFECYCLES.

Prototype

String[] STANDARD_LIFECYCLES

To view the source code for org.apache.maven.lifecycle DefaultLifecycles STANDARD_LIFECYCLES.

Click Source Link

Usage

From source file:io.fabric8.maven.core.util.GoalFinder.java

License:Apache License

private LifecycleMappingDelegate findDelegate(Lifecycle lifecycle) {
    LifecycleMappingDelegate delegate;/*from w w w.ja  v a  2 s.  c om*/
    String lifecycleId = lifecycle.getId();
    if (Arrays.binarySearch(DefaultLifecycles.STANDARD_LIFECYCLES, lifecycleId) >= 0) {
        delegate = standardDelegate;
    } else {
        delegate = delegates.get(lifecycleId);
        if (delegate == null) {
            delegate = standardDelegate;
        }
    }
    return delegate;
}