Help Center/ CodeArts Repo/ Getting Started/ Coding in Java for a Scrum Project
Updated on 2026-07-15 GMT+08:00

Coding in Java for a Scrum Project

This section introduces how to code in Java for a Scrum project in CodeArts Repo.

Before performing the following operations, ensure that your have permissions to create projects and log in to the CodeArts homepage.

Steps

Table 1 Operation description

Procedure

Description

Billing

Preparations

Sign up for a HUAWEI ID, enable Huawei Cloud services, and complete real-name authentication.

None.

Enabling CodeArts Trial Edition

Subscribe to the CodeArts free package to prepare for Java code development in a Scrum project.

The CodeArts trial edition is free of charge.

Quickly Creating a Project and a Code Repository

You need to create a project and repository before managing repositories and code.

The CodeArts trial edition is free of charge.

Creating a Branch and a Code File

Create a branch and develop code online.

The CodeArts trial edition is free of charge.

Creating and Merging an MR

Create and merge an MR online.

The CodeArts trial edition is free of charge.

Preparations

  1. You have registered with Huawei Cloud. If you do not have a HUAWEI ID, create one by referring to Registering a HUAWEI ID and Enabling Huawei Cloud Services.

Enabling CodeArts Trial Edition

  1. Go to the Buy CodeArts.
  2. Click Try Free, read and agree to the statement, and click Subscribe.

    Note that:

    • The trial edition is valid for one month. If you do not renew, uncheck Auto-renew.
    • You can purchase only one package.

  3. Check the subscription record on the CodeArts page.

Quickly Creating a Project and a Code Repository

  1. Log in to the CodeArts console, click , and select a region.
  2. Click Access Service to go to the CodeArts homepage.
  3. Choose Create > Create Project, select Scrum as the project template, and enter basic project information.
  4. In the navigation pane on the left, choose Code > Repo. Click New Repository, choose Template > Java Maven Demo, enter a Repository Name, for example, Test_JAVA, select Initial Settings, and set Visibility to Private.
  5. Click OK. The repository is created and the code page is displayed.

    As shown in the following figure, the new repository name is Test_JAVA.

    Figure 1 Code page of the successfully created repository

Creating a Branch and a Code File

Create a branch and a code file. The procedure is as follows:

  1. Click Branches. On the branch page of the code repository, click Create Branch, and enter Test as the branch name to create a branch based on the master branch. The code homepage is displayed.
  2. Choose Create > Create File. The homepage of the Create File is displayed.
  3. Enter Test_Text as the file name, and select Java from the drop-down list next to Text on the right. The code file is created, and the file list is displayed.

    As shown in the following figure, the new branch name is Test and the new file name is Test_Text.java.

    Figure 2 Test_Text.java file created

Creating and Merging an MR

Create and merge an MR. The procedure is as follows:

  1. Click Create MR in the upper-right corner. The Create Merge Request page is displayed. Enter the Title for the MR and click OK.
  2. In the upper-right corner of the page, click Merge to merge the request.

    As shown in the following figure, the MR is merged.
    Figure 3 MR merged