Updated on 2024-04-18 GMT+08:00

Configuring a Repository

Configuration Description

This section describes how to configure repositories not provided by CodeArts for builds. In the Build with Maven action, there are public and private repositories based on their sources, networks, and permissions.

  • Public Repositories
    • Maven mirrors: By default, open-source maven mirrors are configured. This repository source can be used in build tasks without any modification.
    • Custom public repositories: A public repository not provided by CodeArts can be used only after being configured in the Build with Maven action. (A public repository is accessible in the Internet.)
  • Private Repositories
    • Self-hosted Repos: By default, self-hosted repos of CodeArts Artifact (if subscribed) are configured. These repositories can be used in build tasks without any modification.
    • Custom private repository: A private repository not provided by CodeArts can be used only after being configured in the Build with Maven action. (A private repository is accessible only to authorized accounts.)

Configuring a Custom Public Repository

  1. In the Build with Maven action, expand setting File Configuration.
  2. Add a public repository, enter the repository address, and select Release and Snapshot as required.
    • Release: If this option is selected, the build process attempts to download the release version dependency from the repository.
    • Snapshot: If this option is selected, the build process attempts to download the snapshot version dependency from the repository.

    Select either Release or Snapshot, or both.

Configuring a Custom Private Repository

  1. Create a Nexus repository service endpoint, such as test01.
  2. In the Build with Maven action, expand setting File Configuration.

    Add a private repository, select the service endpoint created in step 1, and select Release and Snapshot as required.