Interface NexusSearch

All Known Implementing Classes:
NexusV2Search, NexusV3Search

public interface NexusSearch
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Do a preflight request to see if the repository is actually working.
    Searches the configured Nexus repository for the given sha1 hash.
  • Method Details

    • searchSha1

      MavenArtifact searchSha1(String sha1) throws IOException
      Searches the configured Nexus repository for the given sha1 hash. If the artifact is found, a MavenArtifact is populated with the coordinate information.
      Parameters:
      sha1 - The SHA-1 hash string for which to search
      Returns:
      the populated Maven coordinates
      Throws:
      IOException - if it's unable to connect to the specified repository or if the specified artifact is not found.
    • preflightRequest

      boolean preflightRequest()
      Do a preflight request to see if the repository is actually working.
      Returns:
      whether the repository is listening and returns the expected status response