Help Center/ CodeArts Repo/ Getting Started/ Coding in Java for a Scrum Project
Updated on 2025-07-29 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

Preparations

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

Subscribe to CodeArts Free Edition

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

Quickly Creating a Project and a Code Repository

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

Create a branch and code file online

Create a branch and develop code online.

Create and merge an MR online

Create and merge an MR online.

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 Free Edition

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

    Note that:

    • The free 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. Click 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, Scrum_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 name of the new repository is Scrum_Test_JAVA. After the repository is created, the Code page is displayed.

    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 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 a file name and select java from the text template drop-down list box on the right of the file name. The code file is created and the file list is displayed.

    As shown in the following figure, the new branch name is Scrum_Test and the new file name is Scrum_Test_Text.java.

    Figure 2 Scrum_Test_Text.java file created

Creating and Merging an MR

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

  1. Click Create MR. The Create Merge Request page is displayed. Enter the Title for the MR.
  2. In the upper right corner of the page, click Merge to merge the request. The following figure shows an example.

    Figure 3 MR merged