Interface NexusSearch
-
- All Known Implementing Classes:
NexusV2Search
,NexusV3Search
public interface NexusSearch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
preflightRequest()
Do a preflight request to see if the repository is actually working.MavenArtifact
searchSha1(java.lang.String sha1)
Searches the configured Nexus repository for the given sha1 hash.
-
-
-
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, aMavenArtifact
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
-
-