Acumos Nexus Client Developer Guide

The Acumos Nexus Client is a Java library that facilitates download and upload of artifacts from/to a Nexus repository.

Usage Example

The following code excerpt shows a test case of the get-artifact feature:

import org.acumos.nexus.client.NexusArtifactClient;
import org.acumos.nexus.client.RepositoryLocation;

..

public void testGetArtifact() throws Exception {
    NexusArtifactClient artifactClient = new NexusArtifactClient(
            new RepositoryLocation("0", REPO_URL, REPO_USER, REPO_PASS, null));
    ByteArrayOutputStream outputStream = artifactClient.getArtifact(artifactPath);
}