public void resolve( Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, TransferListener resolutionListener ) throws ArtifactResolutionException, ArtifactNotFoundException { resolve( artifact, remoteRepositories, getSession( localRepository ) ); }
public ArtifactResolutionResult resolveTransitively( Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter ) throws ArtifactResolutionException, ArtifactNotFoundException { return resolveTransitively( artifacts, originatingArtifact, managedVersions, localRepository, remoteRepositories, source, filter, null ); }
public void resolve( Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException { resolve( artifact, remoteRepositories, localRepository, null ); }
@Override public void resolveAlways(Artifact artifact, List list, ArtifactRepository artifactRepository) throws ArtifactResolutionException, ArtifactNotFoundException { 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.resolveAlways(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.resolveAlways(artifact, list, artifactRepository); } }
@SuppressWarnings( "checkstyle:parameternumber" ) public ArtifactResolutionResult resolveTransitively( Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List<ResolutionListener> listeners, List<ConflictResolver> conflictResolvers ) throws ArtifactResolutionException, ArtifactNotFoundException { ArtifactResolutionRequest request = new ArtifactResolutionRequest(). setArtifact( originatingArtifact ). setResolveRoot( false ). // This is required by the surefire plugin setArtifactDependencies( artifacts ). setManagedVersionMap( managedVersions ). setLocalRepository( localRepository ). setRemoteRepositories( remoteRepositories ). setCollectionFilter( filter ). setListeners( listeners ); injectSession2( request, legacySupport.getSession() ); return resolveWithExceptions( request ); }
private void injectSession2( ArtifactResolutionRequest request, MavenSession session ) { injectSession1( request, session ); if ( session != null ) { request.setServers( session.getRequest().getServers() ); request.setMirrors( session.getRequest().getMirrors() ); request.setProxies( session.getRequest().getProxies() ); } }
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; }
@Override public void resolveAlways(Artifact artifact, List list, ArtifactRepository artifactRepository) throws ArtifactResolutionException, ArtifactNotFoundException { if (isParentPomArtifact(artifact)) { try { letArtifactGo(artifact); super.resolveAlways(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.resolveAlways(artifact, list, artifactRepository); } }
public ArtifactResolutionResult resolveTransitively( Set<Artifact> artifacts, Artifact originatingArtifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source ) throws ArtifactResolutionException, ArtifactNotFoundException { return resolveTransitively( artifacts, originatingArtifact, localRepository, remoteRepositories, source, null ); }
public void resolveAlways( Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository ) throws ArtifactResolutionException, ArtifactNotFoundException { resolve( artifact, remoteRepositories, getSession( localRepository ) ); }
@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); } }
@SuppressWarnings( "checkstyle:parameternumber" ) public ArtifactResolutionResult resolveTransitively( Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List<ResolutionListener> listeners ) throws ArtifactResolutionException, ArtifactNotFoundException { return resolveTransitively( artifacts, originatingArtifact, managedVersions, localRepository, remoteRepositories, source, filter, listeners, null ); }
ArtifactFilter collectionFilter = request.getCollectionFilter(); ArtifactFilter resolutionFilter = request.getResolutionFilter(); RepositorySystemSession session = getSession( request.getLocalRepository() ); resolve( rootArtifact, request.getRemoteRepositories(), session );
@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); } }
public ArtifactResolutionResult resolveTransitively( Set<Artifact> artifacts, Artifact originatingArtifact, Map<String, Artifact> managedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ArtifactMetadataSource source ) throws ArtifactResolutionException, ArtifactNotFoundException { return resolveTransitively( artifacts, originatingArtifact, managedVersions, localRepository, remoteRepositories, source, null ); }
public ArtifactResolutionResult resolveTransitively( Set<Artifact> artifacts, Artifact originatingArtifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository, ArtifactMetadataSource source, List<ResolutionListener> listeners ) throws ArtifactResolutionException, ArtifactNotFoundException { return resolveTransitively( artifacts, originatingArtifact, Collections.<String, Artifact>emptyMap(), localRepository, remoteRepositories, source, null, listeners ); }
@Override public ArtifactResolutionResult resolveTransitively( Set set, Artifact artifact, Map map, ArtifactRepository artifactRepository, List list, ArtifactMetadataSource artifactMetadataSource, ArtifactFilter artifactFilter, List listeners) throws ArtifactResolutionException, ArtifactNotFoundException { // System.out.println("resolve trans6=" + artifact); ArrayList newListeners = new ArrayList(); if (listeners != null) { newListeners.addAll(listeners); } if (listener != null) { newListeners.add(listener); } return super.resolveTransitively(set, artifact, map, artifactRepository, list, artifactMetadataSource, artifactFilter, newListeners); }
@Override public ArtifactResolutionResult resolveTransitively( Set set, Artifact artifact, Map map, ArtifactRepository artifactRepository, List list, ArtifactMetadataSource artifactMetadataSource, ArtifactFilter artifactFilter, List listeners) throws ArtifactResolutionException, ArtifactNotFoundException { // System.out.println("resolve trans6=" + artifact); ArrayList newListeners = new ArrayList(); if (listeners != null) { newListeners.addAll(listeners); } if (listener != null) { newListeners.add(listener); } return super.resolveTransitively(set, artifact, map, artifactRepository, list, artifactMetadataSource, artifactFilter, newListeners); }