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
| Procedure | Description | Billing |
|---|---|---|
| Sign up for a HUAWEI ID, enable Huawei Cloud services, and complete real-name authentication. | None. | |
| Subscribe to the CodeArts free package to prepare for Java code development in a Scrum project. | The CodeArts trial edition is free of charge. | |
| You need to create a project and repository before managing repositories and code. | The CodeArts trial edition is free of charge. | |
| Create a branch and develop code online. | The CodeArts trial edition is free of charge. | |
| Create and merge an MR online. | The CodeArts trial edition is free of charge. |
Preparations
- 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
- Go to the Buy CodeArts.
- 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.
- Check the subscription record on the CodeArts page.
Quickly Creating a Project and a Code Repository
- Log in to the CodeArts console, click
, and select a region. - Click Access Service to go to the CodeArts homepage.
- Choose Create > Create Project, select Scrum as the project template, and enter basic project information.
- 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.
- 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:
- 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.
- Choose Create > Create File. The homepage of the Create File is displayed.
- 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:
- Click Create MR in the upper-right corner. The Create Merge Request page is displayed. Enter the Title for the MR and click OK.
- 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

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