Example usage for org.apache.maven.project InvalidProjectModelException getValidationResult

List of usage examples for org.apache.maven.project InvalidProjectModelException getValidationResult

Introduction

In this page you can find the example usage for org.apache.maven.project InvalidProjectModelException getValidationResult.

Prototype

public final ModelValidationResult getValidationResult() 

Source Link

Usage

From source file:org.codehaus.mojo.pomtools.wrapper.custom.ProjectWrapper.java

License:Apache License

public ProjectValidationResult validateModel() throws ProjectBuildingException, PomToolsException {
    try {/* w  w  w .  j  ava2s.c  o  m*/
        return validateModel(getTemporaryResolvedProject().getModel());
    } catch (InvalidProjectModelException e) {
        return new ProjectValidationResult(this, e.getValidationResult());
    }
}