public void transformForResolve( Artifact artifact, RepositoryRequest request ) throws ArtifactResolutionException { // Only select snapshots that are unresolved (eg 1.0-SNAPSHOT, not 1.0-20050607.123456) if ( artifact.isSnapshot() && artifact.getBaseVersion().equals( artifact.getVersion() ) ) { try { String version = resolveVersion( artifact, request ); artifact.updateVersion( version, request.getLocalRepository() ); } catch ( RepositoryMetadataResolutionException e ) { throw new ArtifactResolutionException( e.getMessage(), artifact, e ); } } }
public void transformForResolve( Artifact artifact, RepositoryRequest request ) throws ArtifactResolutionException, ArtifactNotFoundException { if ( Artifact.LATEST_VERSION.equals( artifact.getVersion() ) ) { try { String version = resolveVersion( artifact, request ); if ( Artifact.LATEST_VERSION.equals( version ) ) { throw new ArtifactNotFoundException( "Unable to determine the latest version", artifact ); } artifact.setBaseVersion( version ); artifact.updateVersion( version, request.getLocalRepository() ); } catch ( RepositoryMetadataResolutionException e ) { throw new ArtifactResolutionException( e.getMessage(), artifact, e ); } } }
public void transformForResolve( Artifact artifact, RepositoryRequest request ) throws ArtifactResolutionException, ArtifactNotFoundException { if ( Artifact.RELEASE_VERSION.equals( artifact.getVersion() ) ) { try { String version = resolveVersion( artifact, request ); if ( Artifact.RELEASE_VERSION.equals( version ) ) { throw new ArtifactNotFoundException( "Unable to determine the release version", artifact ); } artifact.setBaseVersion( version ); artifact.updateVersion( version, request.getLocalRepository() ); } catch ( RepositoryMetadataResolutionException e ) { throw new ArtifactResolutionException( e.getMessage(), artifact, e ); } } }
throw new ArtifactResolutionException( e.getMessage(), artifact, remoteRepositories, e );
new ArtifactResolutionException( "Unable to get dependency information for " + rootArtifact.getId() + ": " + e.getMessage(), rootArtifact, metadataRequest.getRemoteRepositories(), e ); result.addMetadataResolutionException( are ); result.addErrorArtifactException( new ArtifactResolutionException( "Resolution interrupted", rootArtifact, e ) );
throw new ArtifactResolutionException( "Unknown error during artifact resolution, " + request + ", " + result.getExceptions(), request.getArtifact(), request.getRemoteRepositories() );
throw new ArtifactResolutionException( "Unable to get dependency information: " + e.getMessage(), resetArtifact, request.getRemoteRepositories(), new ArtifactResolutionException( "Cannot resolve artifact version conflict between " + previous.getArtifact().getVersion() + " and " + node.getArtifact().getVersion(), result.addVersionRangeViolation( new ArtifactResolutionException( "Conflict resolver returned unknown resolution node: ", resolved.getArtifact() ) ); throw new ArtifactResolutionException( "Unable to get dependency information for " + artifact.getId() + ": " + e.getMessage(), artifact, childRemoteRepositories, e );
throw new ArtifactResolutionException( "IOException: " + e.getMessage(), artifact, e ); throw new ArtifactResolutionException( "Catch!", artifact );
protected File resolve(ArtifactInfo a, String type, String classifier) throws AbstractArtifactResolutionException { Artifact artifact = af.createArtifactWithClassifier(a.groupId, a.artifactId, a.version, type, classifier); if (!new File(localRepo, local.pathOf(artifact)).isFile()) { System.err.println("Downloading " + artifact); } try { ar.resolve(artifact, remoteRepositories, local); } catch (RuntimeException e) { throw new ArtifactResolutionException(e.getMessage(), artifact); } return artifact.getFile(); }
throw new ArtifactResolutionException( "IOException: " + e.getMessage(), artifact, e ); throw new ArtifactResolutionException( "Catch!", artifact );
throw new ArtifactResolutionException( "Failed to create Artifact instances for project dependencies: " + e.getMessage(), null, e );
throw new ArtifactResolutionException( message.toString(), theProject.getArtifact(), theProject.getRemoteArtifactRepositories() );
throw new ArtifactResolutionException("Feature " + featureId + " not found", "", featureId, featureVersion, "eclipse-feature", null, null) ;
throw new ArtifactResolutionException( "Failed to retrieve valid un-archiver component: " + a.getType(), a, e ); throw new ArtifactResolutionException( "Failed to unpack: " + a.getId(), a, e );