Help Center/ CodeArts Artifact/ User Guide/ Self-Hosted Repos 2.0/ Uploading/Downloading Components on the Client/ Connecting Self-Hosted Repos 2.0 to Your Local Development Environment
Updated on 2024-10-16 GMT+08:00

Connecting Self-Hosted Repos 2.0 to Your Local Development Environment

By default, the Maven tool connects to the public repository, and is implemented through configurations in the setting.xml file. Self-hosted repos can be connected to your local development environment. You can modify the configuration in the setting.xml file to connect a self-hosted repo to your local development environment.

Configuring setting.xml Files

  1. Go to the self-hosted repo page. In the left pane, click the name of the repository to be connected to your local development environment.
  2. Click Tutorial on the right of the page.
  3. In the displayed dialog box, click Download Configuration File to download the configuration file to your local directory.

    Figure 1 Downloading the configuration file

  4. Copy the downloaded file to the corresponding Maven directory based on the instructions in the information dialog box.

Resetting Repository Password

You can reset the password in the configuration file of self-hosted repo. After the password is reset, download the configuration file again to replace the original file.

  1. Go to the self-hosted repo page. Click on the right of the page and select Reset Repository Password.
  2. In the displayed dialog box, click OK. Check that a message is displayed indicating the password has been reset.