Package aQute.maven.nexus.provider
Class Nexus
java.lang.Object
aQute.maven.nexus.provider.Nexus
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaQute.bnd.result.Result<String>createStagingRepository(String profileId, String description) Create staging repoaQute.bnd.service.url.TaggedDatadeleteStaging(String repositoryId, String remotePath) aQute.bnd.service.url.TaggedDatafetchStaging(String repositoryId, String remotePath, boolean force) files()voidgetUri()boolean<content-item> https://oss.sonatype.org/service/local/repositories/orgosgi-1073/content/ org/osgi/osgi.enroute.authenticator.github.provider/ /org/osgi/osgi.enroute.authenticator.github.provider/</ relativePath> osgi.enroute.authenticator.github.provider false 2016-06-03 17:05:14.0 UTC -1 </content-item>remotePath(String pathOrGAV) Path is either a file path (slashed) or a GAVaQute.bnd.http.HttpRequest<Object>request()voidaQute.bnd.service.url.TaggedDatauploadStaging(String repositoryId, File file, String remotePath)
-
Constructor Details
-
Nexus
- Throws:
URISyntaxException
-
Nexus
public Nexus(URI uri, aQute.bnd.http.HttpClient client, Executor executor) throws URISyntaxException - Throws:
URISyntaxException
-
-
Method Details
-
request
-
files
- Throws:
Exception
-
hasFiles
<content-item> https://oss.sonatype.org/service/local/repositories/orgosgi-1073/content/ org/osgi/osgi.enroute.authenticator.github.provider/ /org/osgi/osgi.enroute.authenticator.github.provider/</ relativePath> osgi.enroute.authenticator.github.provider false 2016-06-03 17:05:14.0 UTC -1 </content-item>- Throws:
Exception
-
files
- Throws:
Exception
-
download
- Throws:
Exception
-
upload
- Throws:
Exception
-
getAssets
- Throws:
Exception
-
crawl
- Throws:
Exception
-
createStagingRepository
public aQute.bnd.result.Result<String> createStagingRepository(String profileId, String description) throws Exception Create staging repohttps://support.sonatype.com/hc/en-us/articles/213465868-Uploading-to-a-Staging-Repository-via-REST-API
- Parameters:
profileId- the profile iddescription- a description- Returns:
- a Result with the repository id
- Throws:
Exception
-
uploadStaging
public aQute.bnd.service.url.TaggedData uploadStaging(String repositoryId, File file, String remotePath) throws Exception - Throws:
Exception
-
fetchStaging
public aQute.bnd.service.url.TaggedData fetchStaging(String repositoryId, String remotePath, boolean force) throws Exception - Throws:
Exception
-
deleteStaging
public aQute.bnd.service.url.TaggedData deleteStaging(String repositoryId, String remotePath) throws Exception - Throws:
Exception
-
getUri
-
remotePath
Path is either a file path (slashed) or a GAV- Parameters:
pathOrGAV-- Returns:
- Remote path
-