This page explains how you can set up a remote repository to access and download Assured OSS packages. You have two options for setting up a remote repository: JFrog Artifactory or Sonatype Nexus. For more information about repository options, see Assured OSS repository options .
This document applies to the free tier. For the premium tier, see Download Assured OSS packages using a remote repository .
Before you begin
-
Validate connectivity to Assured OSS for the requested service accounts.
Set up a remote repository using JFrog Artifactory
- Sign in to the JFrog Artifactory repository manager. Ensure that you have the required privileges to create a new remote repository.
- Select the option to create a new remote repository in your repository manager.
- Select the appropriate repository type (for example, select
Mavenfor Java,PyPifor Python, orGofor Go). -
Optionally, test the connection to the Java or Python repository using the following steps:
- In the Repository Keyfield, enter a unique name or identifier for the remote repository.
-
In the URLfield, enter one of the following:
- Java:
https://us-maven.pkg.dev
- Python:
https://us-python.pkg.dev
- Javascript:
https://us-npm.pkg.dev
- Go:
https://us-go.pkg.dev
Don't enter the complete domain name because this action might return an HTTP
404or HTTP405status code. - Java:
-
Leave the remaining fields blank.
-
Click Test. The connection is successful when you see the following output:
Successfully connected to server
-
To create a new remote repository, enter the following information:
- In the Repository Keyfield, enter a unique name or identifier for
the remote repository. For example,
assured-oss-java-repo. -
In the URLfield, enter one of the following:
- Java:
https://us-maven.pkg.dev/cloud-aoss/java
- Python:
https://us-python.pkg.dev/cloud-aoss/python
- Go:
https://us-go.pkg.dev/cloud-aoss/go
- Java:
-
In the User Namefield, enter
_json_key_base64. -
In the Passwordfield, provide the base64-encoded string of the service account JSON key file. Use the entire base64-encoded string in a single line as password. To get the base64-encoded string, run the command
cat key-filename.json | base64. -
For Python only, in the Registry URLfield, enter
https://us-maven.pkg.dev/cloud-aoss/python
-
For Go only, in the Advanced Settingstab, select Bypass HEAD Requests.
- In the Repository Keyfield, enter a unique name or identifier for
the remote repository. For example,
-
Click Create Remote Repository.
For Python packages, append the obtained URL with
/simple. Use the URL as theindex-urlin thepip installcommand to download the required Python packages. For example, if the obtained URL of the repository ishttps://a0a87smb7hcda.jfrog.io/artifactory/api/pypi/assured-oss-python-repo, then the correspondingindex-urlishttps://a0a87smb7hcda.jfrog.io/artifactory/api/pypi/assured-oss-python-repo/simple.
After the new remote repository is set up, configure your build tools (for example, Apache Maven, Gradle Build Tool, or pip) to use this new remote repository.
Known issues
Testing the connection using the Testbutton can return an error even if the connection is configured correctly. We recommend that you create the remote repository irrespective of the test button behavior. For another way of confirming a connection, see Validate your connection .
Set up a remote repository using Sonatype Nexus
- Sign in to your Sonatype Nexus repository manager. Ensure that you have the required privileges to create a new remote repository.
- Select the option to create a new repository.
- Select the appropriate repository type (for example, select
Mavenfor Java,PyPifor Python, orGofor Go). -
Enter the following details for the new repository:
- In the Namefield, enter a unique name or identifier for the remote repository.
-
In the Remote Storagefield, choose from the following:
-
Java:
https://us-maven.pkg.dev/cloud-aoss/java
-
Python:
https://us-python.pkg.dev/cloud-aoss/python
-
Go:
https://us-go.pkg.dev/cloud-aoss/go
-
-
Under HTTP, select Authentication.
-
Specify the following:
- In the Authentication typefield, enter
Username. - In the Usernamefield, enter
_json_key_base64. - In the Passwordfield, provide the base64-encoded string of the
service account JSON key file. Use the entire base64 encoded-string
in a single line as password. To get the base64-encoded string, run the
command
cat key-filename.json | base64.
- In the Authentication typefield, enter
-
Click Create Repository.
After the new remote repository is set up, point your build tools (for example, Apache Maven, Gradle Build Tool, or pip) to use this new remote repository.

