Interface NexusSearch

    • Method Detail

      • searchSha1

        MavenArtifact searchSha1​(java.lang.String sha1)
                          throws java.io.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:
        java.io.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