Interface NexusSearch
- All Known Implementing Classes:
NexusV2Search, NexusV3Search
public interface NexusSearch
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDo a preflight request to see if the repository is actually working.searchSha1(String sha1) Searches the configured Nexus repository for the given sha1 hash.
-
Method Details
-
searchSha1
Searches the configured Nexus repository for the given sha1 hash. If the artifact is found, aMavenArtifactis 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
-