Updated on 2026-08-10 GMT+08:00

Creating a Proxy Repository

During software development, teams often need to download dependencies from open-source communities or third-party repositories. However, downloading dependencies directly from these sources may cause network instability and slow download speeds. CodeArts Artifact allows you to create proxy repositories for open-source and third-party dependency repositories. Files downloaded from proxy repositories are cached in CodeArts Artifact. This improves the download speed and stability of dependencies.

Constraints

This repository type is supported only at region AP-Singapore.

Prerequisites

Procedure

  1. Use your Huawei Cloud account to access self-hosted repos.
  2. Click New Repository, as shown in the following figure.

  3. On the displayed page, set Repository Type to Proxy Repo. Select the package type for your repository, for example, Maven, npm, or PyPI.
  4. Configure the basic information, as described in the following table.

    Table 1 Parameters

    Item

    Description

    Repository Name

    You can enter a unique repository name. Enter up to 50 characters. Only letters, digits, underscores (_), hyphens (-), and periods (.) are supported.

    WARNING:

    After a repository is created, its repository name cannot be changed.

    Proxy Address

    Address of the repository that requires proxy.

    Common proxy repositories include mirrors, public repositories, and third-party repositories. When a resource is requested, CodeArts Artifact pulls the resource from the proxy repository.

    PyPI Index Proxy Address

    This parameter is available only when Package Type is set to PyPI.

    It refers to the index site for Python software packages, also known as the python package index (PyPI).

    Example: https://mirrors.tools.****.com/pypi

    Username

    If the proxy repository requires authentication, enter the proxy repository username.

    Password

    If the proxy repository requires authentication, enter the proxy repository password.

    Net Proxy Name

    If a network proxy is required to connect to CodeArts Artifact, select the proxy to use.

    Select the proxy from the drop-down list. For details, see Configuring a Network Proxy.

    Project

    The project to which the current repository belongs. If no project exists, click New Project in the drop-down list to create one.

    WARNING:

    After the repository is created, its name and project cannot be changed.

    Associated Projects

    This parameter is available only when Package Type is set to Maven.

    This parameter is used to share artifacts in CodeArts Build. By default, CodeArts Build pulls artifacts only from repositories in the current project. You can configure associated projects to share artifacts across projects. After the target repository is associated with the project where the build task is located, build tasks in that project can pull artifacts from the repository.

    Include Patterns

    Specify the files to include in the operation. These patterns are usually used to filter in and select specific files or folders. If you configure this parameter, only artifacts that match the added path prefix can be operated on (including artifact uploads and downloads).

    You can click + to add multiple inclusion rules. The relationship between multiple inclusion rules is OR.

    Exclude Patterns

    Specify the files to exclude from the operation. These patterns are usually used to filter out and select specific files or folders. If you configure this parameter, artifacts that match the added path prefix cannot be operated on (including artifact uploads and downloads).

    You can click + to add multiple exclusion rules. The relationship between multiple exclusion rules is OR.

    Open To

    Set the repository permission scope.

    Description

    Enter up to 200 characters to describe the repository, such as its purpose or usage.

  5. Confirm the configurations and click OK.

    After the repository is created, you can view it in the repository list.