Example usage for org.apache.maven.project DependencyResolutionRequest getMavenProject

List of usage examples for org.apache.maven.project DependencyResolutionRequest getMavenProject

Introduction

In this page you can find the example usage for org.apache.maven.project DependencyResolutionRequest getMavenProject.

Prototype

MavenProject getMavenProject();

Source Link

Document

Gets the project to resolve dependencies for.

Usage

From source file:org.hudsonci.maven.eventspy_30.handler.DependencyResolutionRequestHandler.java

License:Open Source License

public void handle(DependencyResolutionRequest event) throws Exception {
    log.debug("DependencyResolution request: {}", event);

    getBuildRecorder().recordDependencyResolutionStarted(event.getMavenProject());
}

From source file:org.jenkinsci.plugins.pipeline.maven.eventspy.handler.DependencyResolutionRequestHandler.java

License:Open Source License

@Override
protected boolean _handle(DependencyResolutionRequest request) {
    Xpp3Dom root = new Xpp3Dom("DependencyResolutionRequest");
    root.setAttribute("class", request.getClass().getName());
    root.addChild(newElement("project", request.getMavenProject()));

    reporter.print(root);//  ww  w  .j  a v a  2s.  c  om
    return true;
}