throw new ArtifactMetadataRetrievalException( "Unable to parse the Maven built-in model: " + e.getMessage(), e );
throw new ArtifactMetadataRetrievalException( e.getMessage(), e );
private Artifact createDependencyArtifact( Dependency dependency, Artifact owner, Artifact pom ) throws ArtifactMetadataRetrievalException { try { String inheritedScope = ( owner != null ) ? owner.getScope() : null; ArtifactFilter inheritedFilter = ( owner != null ) ? owner.getDependencyFilter() : null; return createDependencyArtifact( repositorySystem, dependency, inheritedScope, inheritedFilter ); } catch ( InvalidVersionSpecificationException e ) { throw new ArtifactMetadataRetrievalException( "Invalid version for dependency " + dependency.getManagementKey() + ": " + e.getMessage(), e, pom ); } }
public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, ArtifactRepository localRepository, ArtifactRepository deploymentRepository ) throws ArtifactMetadataRetrievalException { RepositoryMetadata metadata = new ArtifactRepositoryMetadata( artifact ); try { repositoryMetadataManager.resolveAlways( metadata, localRepository, deploymentRepository ); } catch ( RepositoryMetadataResolutionException e ) { throw new ArtifactMetadataRetrievalException( e.getMessage(), e, artifact ); } List<String> availableVersions = localRepository.findVersions( artifact ); return retrieveAvailableVersionsFromMetadata( metadata.getMetadata(), availableVersions ); }
public List<ArtifactVersion> retrieveAvailableVersions( MetadataResolutionRequest request ) throws ArtifactMetadataRetrievalException { RepositoryMetadata metadata = new ArtifactRepositoryMetadata( request.getArtifact() ); try { repositoryMetadataManager.resolve( metadata, request ); } catch ( RepositoryMetadataResolutionException e ) { throw new ArtifactMetadataRetrievalException( e.getMessage(), e, request.getArtifact() ); } List<String> availableVersions = request.getLocalRepository().findVersions( request.getArtifact() ); return retrieveAvailableVersionsFromMetadata( metadata.getMetadata(), availableVersions ); }
throw new ArtifactMetadataRetrievalException( "Unable to read the metadata file for artifact '" + artifact.getDependencyConflictId() + "': " + e.getMessage(), e, artifact );
if ( missingParentPom != null ) throw new ArtifactMetadataRetrievalException( "Failed to process POM for " + artifact.getId() + ": " + missingParentPom.getMessage(), missingParentPom.getException(), throw new ArtifactMetadataRetrievalException( "Failed to retrieve POM for " + artifact.getId() + ": " + e.getCause().getMessage(), e.getCause(), artifact );
throw new ArtifactMetadataRetrievalException( "Error in metadata for artifact '" + artifact.getDependencyConflictId() + "': " + e.getMessage(), e );
throw new ArtifactMetadataRetrievalException( "Unable to acquire metadata for dependencies " + dependencies + ": " + ee.getMessage(), ee ); throw new ArtifactMetadataRetrievalException( "Unable to acquire metadata for dependencies " + dependencies + ": " + ie.getMessage(), ie );
throw new ArtifactMetadataRetrievalException( "Unable to acquire metadata for plugins " + plugins + ": " + ee.getMessage(), ee ); throw new ArtifactMetadataRetrievalException( "Unable to acquire metadata for plugins " + plugins + ": " + ie.getMessage(), ie );
throw new ArtifactMetadataRetrievalException( "Unable to acquire metadata for dependencies " + dependencies + ": " + ee.getMessage(), ee ); throw new ArtifactMetadataRetrievalException( "Unable to acquire metadata for dependencies " + dependencies + ": " + ie.getMessage(), ie );
throw new ArtifactMetadataRetrievalException( "Unable to acquire metadata for plugins " + plugins + ": " + ee.getMessage(), ee ); throw new ArtifactMetadataRetrievalException( "Unable to acquire metadata for plugins " + plugins + ": " + ie.getMessage(), ie );