Package org.rioproject.resolver

Examples of org.rioproject.resolver.ResolverException


        }
        request.increment();
        try {
            classPath = future.get();
        } catch (InterruptedException e) {
            throw new ResolverException(String.format("While trying to resolve %s", artifact), e);
        } catch (ExecutionException e) {
            throw new ResolverException(String.format("While trying to resolve %s", artifact), e);
        } finally {
            if(request.decrement()==0) {
                resolvingMap.remove(request);
            }
        }
View Full Code Here


        }
        request.increment();
        try {
            classPath = future.get();
        } catch (InterruptedException e) {
            throw new ResolverException(String.format("While trying to resolve %s", artifact), e);
        } catch (ExecutionException e) {
            throw new ResolverException(String.format("While trying to resolve %s", artifact), e);
        } finally {
            if(request.decrement()==0) {
                resolvingMap.remove(request);
            }
        }
View Full Code Here

    public URL getLocation(String artifact, String artifactType) throws ResolverException {
        URL location;
        try {
            location = service.getLocation(artifact, artifactType);
        } catch (ArtifactResolutionException e) {
            throw new ResolverException(String.format("Error locating %s: %s", artifact, e.getLocalizedMessage()));
        } catch (MalformedURLException e) {
            throw new ResolverException(String.format("Error creating URL for resolved artifact %s: %s",
                                                      artifact, e.getLocalizedMessage()));
        } catch (SettingsBuildingException e) {
            throw new ResolverException(String.format("Error loading settings for resolved artifact %s: %s",
                                                      artifact, e.getLocalizedMessage()));
        }
        return location;
    }
View Full Code Here

        try {
            List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories =
                transformRemoteRepository(repositories);
            location = service.getLocation(artifact, artifactType, remoteRepositories);
        } catch (ArtifactResolutionException e) {
            throw new ResolverException(String.format("Error locating %s: %s", artifact, e.getLocalizedMessage()));
        } catch (MalformedURLException e) {
            throw new ResolverException(String.format("Error creating URL for resolved artifact %s: %s",
                                                      artifact, e.getLocalizedMessage()));
        } catch (SettingsBuildingException e) {
            throw new ResolverException(String.format("Error loading settings for resolved artifact %s: %s",
                                                      artifact, e.getLocalizedMessage()));
        }
        return location;
    }
View Full Code Here

                                             a.getClassifier(),
                                             a.getVersion());
                }
                classPath = produceClassPathFromResolutionResult(result);
            } catch (RepositoryException e) {
                throw new ResolverException(e.getLocalizedMessage());
            } catch (SettingsBuildingException e) {
                throw new ResolverException(String.format("Error reading local Maven configuration: %s",
                                                          e.getLocalizedMessage()));
            }
            return classPath;
        }
View Full Code Here

TOP

Related Classes of org.rioproject.resolver.ResolverException

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.