Package org.eclipse.aether.impl.DefaultServiceLocator

Examples of org.eclipse.aether.impl.DefaultServiceLocator.ErrorHandler


    DefaultServiceLocator locator = MavenRepositorySystemUtils.newServiceLocator();
    locator.addService(ArtifactDescriptorReader.class, DefaultArtifactDescriptorReader.class);
    locator.addService(RepositoryConnectorFactory.class, BasicRepositoryConnectorFactory.class);
    locator.addService(TransporterFactory.class, FileTransporterFactory.class);
    locator.addService(TransporterFactory.class, HttpTransporterFactory.class);
    locator.setErrorHandler(new ErrorHandler() {
      @Override
      public void serviceCreationFailed(Class<?> type, Class<?> impl, Throwable exception) {
        if (reporter != null)
          reporter.error("Service creation failed for type %s using impl %s: %s", type, impl, exception.getLocalizedMessage());
        exception.printStackTrace();
View Full Code Here

TOP

Related Classes of org.eclipse.aether.impl.DefaultServiceLocator.ErrorHandler

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.