Class Nexus

java.lang.Object
aQute.maven.nexus.provider.Nexus

public class Nexus extends Object
  • Constructor Details

  • Method Details

    • request

      public aQute.bnd.http.HttpRequest<Object> request()
    • files

      public List<URI> files() throws Exception
      Throws:
      Exception
    • hasFiles

      public boolean hasFiles(List<URI> list, URI uri) throws Exception
          <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

      public void files(List<URI> list, URI uri) throws Exception
      Throws:
      Exception
    • download

      public File download(URI uri) throws Exception
      Throws:
      Exception
    • upload

      public void upload(URI uri, byte[] data) throws Exception
      Throws:
      Exception
    • getAssets

      public List<Nexus.Asset> getAssets(String repository) throws Exception
      Throws:
      Exception
    • crawl

      public List<URI> crawl(String string) throws Exception
      Throws:
      Exception
    • createStagingRepository

      public aQute.bnd.result.Result<String> createStagingRepository(String profileId, String description) throws Exception
      Create staging repo

      https://support.sonatype.com/hc/en-us/articles/213465868-Uploading-to-a-Staging-Repository-via-REST-API

      Parameters:
      profileId - the profile id
      description - 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

      public URI getUri()
    • remotePath

      public String remotePath(String pathOrGAV)
      Path is either a file path (slashed) or a GAV
      Parameters:
      pathOrGAV -
      Returns:
      Remote path