public void resolve( Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException { resolve( artifact, remoteRepositories, localRepository, null ); }
public ArtifactResolutionResult resolveWithExceptions( ArtifactResolutionRequest request ) throws ArtifactResolutionException, ArtifactNotFoundException { ArtifactResolutionResult result = resolve( request ); // We have collected all the problems so let's mimic the way the old code worked and just blow up right here. // That's right lets just let it rip right here and send a big incomprehensible blob of text at unsuspecting // users. Bad dog! resolutionErrorHandler.throwErrors( request, result ); return result; }
public void resolve( Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, TransferListener resolutionListener ) throws ArtifactResolutionException, ArtifactNotFoundException { resolve( artifact, remoteRepositories, getSession( localRepository ) ); }
public void resolveAlways( Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException { resolve( artifact, remoteRepositories, getSession( localRepository ) ); }
resolve( rootArtifact, request.getRemoteRepositories(), session );
@Override public void resolve(Artifact artifact, List list, ArtifactRepository artifactRepository) throws ArtifactResolutionException, ArtifactNotFoundException { // artifact.setResolved(true); //MEVENIDE-422 if (artifact.getScope() == null && "pom".equals(artifact.getType())) { //the condition is meant to mean.. "if we look for parent pom", not sure it's close enough.. try { letArtifactGo(artifact); super.resolve(artifact, list, artifactRepository); } catch (ArtifactResolutionException exc) { if (exc.getCause() instanceof IOException) { // DefaultArtifactResolver:193 when having snapshots something gets copied and fails // when the wagon manager just pretends to download something.. System.out.println("exc=" + exc.getCause().getMessage()); return; } throw exc; } finally { cleanLetGone(artifact); } } else { super.resolve(artifact, list, artifactRepository); } }
@Override public void resolve(Artifact artifact, List list, ArtifactRepository artifactRepository) throws ArtifactResolutionException, ArtifactNotFoundException { // artifact.setResolved(true); //MEVENIDE-422 if (isParentPomArtifact(artifact)) { try { letArtifactGo(artifact); super.resolve(artifact, list, artifactRepository); } catch (ArtifactResolutionException exc) { if (exc.getCause() instanceof IOException) { // DefaultArtifactResolver:193 when having snapshots something gets copied and fails // when the wagon manager just pretends to download something.. System.out.println("exc=" + exc.getCause().getMessage()); return; } throw exc; } finally { cleanLetGone(artifact); } } else { super.resolve(artifact, list, artifactRepository); } }