Help Center/ CodeArts Artifact/ User Guide/ Self-Hosted Repos 2.0/ Managing a Repository/ Associating Maven Repositories with Projects
Updated on 2025-08-05 GMT+08:00

Associating Maven Repositories with Projects

After the Maven repository is associated with multiple projects, you can select this Maven repository in the build step of the build task in the project to store the build product to the repository.

Procedure

  1. Go to the self-hosted repo page. In the left pane, click the name of a Maven repository.
  2. Click Settings on the right of the page, and select Project Associations.
  3. Find the target project to be associated in the list and click in the Operation column of the corresponding row.
  4. In the displayed dialog box, select the repository name, and click OK.

    When the system displays a message indicating that the operation is successful, the value of Associated Repositories for the project is updated based on the number of selected repositories.

Related Tasks

In CodeArts Build, you need to upload build products to self-hosted repos. For details, see Using the File From the Self-hosted Repo to Build with Maven and Uploading the Resulting Software Package (Built-in Executors, GUI).