Help Center/ CodeArts Artifact/ Best Practices/ CodeArts Artifact Best Practices
Updated on 2026-03-13 GMT+08:00

CodeArts Artifact Best Practices

This document summarizes the operation practices of CodeArts Artifact in common application scenarios. It provides detailed solutions for each practice, helping users easily use CodeArts Artifact in different scenarios.

Table 1 CodeArts Artifact best practices

Best Practice

Description

Publishing a Maven Artifact to Self-Hosted Repos via a Build Task

This practice describes how to archive a Maven artifact by version to a self-hosted repo via a build task.

Publishing/Obtaining an npm Package via a Build Task

This practice describes how to publish a private package to an npm registry via a build task and obtain a dependency from the registry to complete the build task.

Publishing/Obtaining a Go Package via a Build Task

This practice describes how to publish a private package to a Go repository via a build task and obtain a dependency from the repository to complete the build task.

Publishing/Obtaining a PyPI Package via a Build Task

This practice describes how to publish a private package to a PyPI repository via a build task and obtain a dependency from the repository to complete the build task.

Uploading/Obtaining an RPM Package Using Linux Commands

This practice describes how to use Linux commands to upload a private package to an RPM repository and obtain a dependency from the repository.

Uploading/Obtaining a Debian Package Using Linux Commands

This practice describes how to use Linux commands to upload a private package to a Debian repository and obtain a dependency from the repository.

Migrating Repository Data from Nexus to CodeArts Artifact

CodeArts Artifact provides a batch migration tool to quickly migrate hosted, proxy, and group repositories on Nexus to self-hosted repos. This streamlines O&M for efficiency.

Migrating Local Repository Data to CodeArts Artifact

CodeArts Artifact provides a batch migration tool to quickly the migrate Maven repository and npm registry on local disks to the Maven repository and npm registry in self-hosted repos. This streamlines operations and maintenance for efficiency.

Configuring CodeArts Artifact Permissions

This practice uses self-hosted repos as an example to describe how to quickly manage permissions for individual repositories and by project.