Interface VersionResolver

All Superinterfaces:
Service

@Experimental @Consumer public interface VersionResolver extends Service
Resolves artifact meta/pseudo versions.
Since:
4.0.0
  • Method Details

    • resolve

      @Nonnull default VersionResolverResult resolve(@Nonnull Session session, @Nonnull ArtifactCoordinates artifactCoordinates) throws VersionResolverException
      Resolves an artifact's meta version (if any) to a concrete version. For example, resolves "1.0-SNAPSHOT" to "1.0-20090208.132618-23".
      Parameters:
      session - The repository session, must not be null.
      artifactCoordinates - The artifact coordinates for which the version needs to be resolved, must not be null
      Returns:
      The version result, never null.
      Throws:
      VersionResolverException - If the metaversion could not be resolved.
    • resolve

      @Nonnull VersionResolverResult resolve(@Nonnull VersionResolverRequest request) throws VersionResolverException
      Resolves an artifact's meta version (if any) to a concrete version. For example, resolves "1.0-SNAPSHOT" to "1.0-20090208.132618-23".
      Parameters:
      request - The version request, must not be null.
      Returns:
      The version result, never null.
      Throws:
      VersionResolverException - If the metaversion could not be resolved.