Package org.apache.maven.artifact.resolver

Examples of org.apache.maven.artifact.resolver.DefaultResolutionErrorHandler


                final List<ArtifactRepository> remoteRepositories = project.getRemoteArtifactRepositories();
                request.setRemoteRepositories(remoteRepositories);

                final ArtifactResolutionResult result = resolver.resolve(request);
                if (result == null || !result.isSuccess()) {
                  new DefaultResolutionErrorHandler().throwErrors(request, result);
                } else {
                  @SuppressWarnings("unchecked")
                  final Collection<? extends Artifact> resolvedArtifacts = (Set<? extends Artifact>)result.getArtifacts();
                  artifact = resolvedArtifacts.iterator().next();
                }
View Full Code Here

TOP

Related Classes of org.apache.maven.artifact.resolver.DefaultResolutionErrorHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.