List of usage examples for org.apache.maven.artifact.resolver DefaultResolutionErrorHandler DefaultResolutionErrorHandler
DefaultResolutionErrorHandler
From source file:com.edugility.maven.Artifacts.java
License:Open Source License
/** * Handles an error that is represented by the supplied {@link * ArtifactResolutionResult} that was issued in response to the * supplied {@link ArtifactResolutionRequest}. * * <p>This implementation performs the following operations:</p> * * <blockquote><pre>new {@link * DefaultResolutionErrorHandler#DefaultResolutionErrorHandler() * DefaultResolutionErrorHandler()}.{@link * DefaultResolutionErrorHandler#throwErrors(ArtifactResolutionRequest, * ArtifactResolutionResult) throwErrors(request, * result)};</pre></blockquote> * * @param request the {@link ArtifactResolutionRequest} that caused * the error; must not be {@code null}/*from w w w . j av a 2s. c o m*/ * * @param result the {@link ArtifactResolutionResult} that resulted; * must not be {@code null} * * @exception ArtifactResolutionException if this method is not * overridden to do something else * * @see DefaultResolutionErrorHandler * * @see * DefaultResolutionErrorHandler#throwErrors(ArtifactResolutionRequest, * ArtifactResolutionResult) */ protected void handleArtifactResolutionError(final ArtifactResolutionRequest request, final ArtifactResolutionResult result) throws ArtifactResolutionException { new DefaultResolutionErrorHandler().throwErrors(request, result); }