@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); } }
@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); } }