Class VersionResolverFactory

    • Constructor Detail

      • VersionResolverFactory

        public VersionResolverFactory​(org.eclipse.aether.RepositorySystem system,
                                      org.eclipse.aether.RepositorySystemSession session,
                                      List<org.eclipse.aether.repository.RemoteRepository> repositories)
    • Method Detail

      • resolveChannels

        public List<Channel> resolveChannels​(List<ChannelCoordinate> channelCoords)
                                      throws UnresolvedMavenArtifactException,
                                             MalformedURLException
        Resolve and read the channels at the specified coordinates. If the ChannelCoordinate specifies a URL, the channel will be fetched from this URL (without reading the Maven coordinates). If the url is null, the channel will be resolved as a Maven coordinate. If the version is null, the channel artifact will be resolved as the latest version according to the Maven repositories metadata, otherwise the exact artifact for the specified version will be resolved.
        Parameters:
        channelCoords - A list of Channel coordinates
        Returns:
        a List of resolved channels
        Throws:
        UnresolvedMavenArtifactException - if the channels can not be resolved
        MalformedURLException - if the channel's rul is not properly formed