Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2013 Red Hat, Inc. and/or its affiliates.
  *
  * Licensed under the Eclipse Public License version 1.0, available at
  * http://www.eclipse.org/legal/epl-v10.html
  */
 package org.jboss.forge.arquillian.maven;
 
An org.eclipse.aether.repository.AuthenticationSelector that resolves the Authentication info lazily at runtime. This selector determines whether a remote repository is mirrored and then returns the authentication info for the mirror. If no mirror exists, the authentication info for the remote repository is returned.
   private final DefaultMirrorSelector mirrorSelector;
   {
      this. = mirrorSelector;
   }
   @Override
   {
      RemoteRepository mirror = .getMirror(repository);
      if (mirror != null)
      {
         return .getAuthentication(mirror);
      }
      return .getAuthentication(repository);
   }
   public void add(String idAuthentication authentication)
   {
      .add(idauthentication);
   }
New to GrepCode? Check out our FAQ X