Bu sayfa henüz yerel dilinizde mevcut değildir. Daha fazla dil seçeneği eklemek için yoğun bir şekilde çalışıyoruz. Desteğiniz için teşekkür ederiz.
- What's New
- Function Overview
- Service Overview
-
Getting Started
- Uploading Software Packages to Release Repos
- Uploading Components to Maven Repository
- Releasing/Obtaining a Maven Component via a Build Task
- Releasing/Obtaining an npm Component via a Build Task
- Releasing/Obtaining a Go Component via a Build Task
- Releasing/Obtaining a PyPI Component via a Build Task
- Uploading/Obtaining an RPM Component Using Linux Commands
- Uploading/Obtaining a Debian Component Using Linux Commands
-
User Guide
- CodeArts Artifact User Guide
- Release Repos 2.0
- Self-Hosted Repos 2.0
- Release Repos 1.0
- Self-Hosted Repos 1.0
- Whitelist for All Accounts
-
Best Practices
- CodeArts Artifact Best Practices
- Releasing Maven Components and Archiving to a Self-Hosted Repo
- Releasing/Obtaining an npm Component via a Build Task
- Releasing/Obtaining a Go Component via a Build Task
- Releasing/Obtaining a PyPI Component via a Build Task
- Uploading/Obtaining an RPM Component Using Linux Commands
- Uploading/Obtaining a Debian Component Using Linux Commands
- Batch Migrating Maven/npm/PyPI Components to a Self-Hosted Repo
- API Reference
-
FAQs
- Release Repo
-
Self-Hosted Repo
- How Do I Upload Snapshots to a Maven Repository?
- How Do I Pull Components from a Maven Repository?
- Can I Call Software Packages in Self-Hosted Repos During Local Builds?
- What Should I Do With Error Code 500 When Uploading Maven Package for a Gradle Build?
- Why Did the Dependency WAR or JAR Files Fail to Be Downloaded?
- Why Is Error 401 Returned When Uploading Maven Components to Self-Hosted Repos?
- General Reference
Copied.
Uploading Components to Maven Repository
Developers often need to share some components with other team members during routine development. Self-hosted repos serve as a shared site where components can be stored and uploaded for sharing. This makes it easy for other team members to obtain components from repositories.
This document describes how to upload components to Maven repository, helping you quickly get started. Figure 1 shows the main operation process.
Prerequisites
Logging In to CodeArts Artifact Homepage
- Log in to the Huawei Cloud console.
- Click
in the upper left corner of the page and choose Developer Services > CodeArts Artifact from the service list.
- Click Access Service. The homepage of CodeArts Artifact is displayed.
Creating a Project and Accessing its Self-Hosted Repos
- Click Homepage in the navigation pane.
- Click Create Project.
- Hover over the Scrum card. Click Select to use this template to create a project.
- Set Project Name to Scrum01 and retain the default values for other parameters.
- Click OK. The Scrum01 project is displayed.
- Click Artifact in the navigation pane to access the Self-hosted Repos of the project.
Creating a Self-Hosted Repo
- On the Artifact homepage, click the Repositories tab.
- Click Create Repository.
- Configure the basic information and click Submit.
- Repository Type: Local Repository and Virtual Repository. Local Repository is selected by default.
- Repository Name: Enter a repository name.
- Package Type: Select Maven.
- Project: The default value is the current project. You can select another target project from the drop-down list box.
- Include Patterns: (Optional) Configure a path whitelist for the repository.
- Version Policy: If both of them are selected, the Maven repository generates two types of repositories: Release and Snapshot. Retain the default values.
- Description: (Optional) Enter up to 200 characters.
- The created Maven repository is displayed in the Repository View.
Uploading Maven Components on the Self-Hosted Repo Page
- Go to the Self-hosted Repos in the left pane, and click the target repository.
- Click Upload.
- In the displayed dialog box, set Upload Mode to POM.
- In POM, click Select File and upload components whose name ends with pom.xml or .pom from the local host.
- Click Upload.
- In the Repository View, click the name of the uploaded software package to view its details.
CodeArts Artifact allows you to upload components either from the page or through CodeArts Build to self-hosted repos. For details, see Using Maven for Build.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot