Configuring and Importing a Sample Project
Scenario
Kudu provides sample projects for multiple scenarios to help you quickly learn Kudu projects.
Procedure
- Obtain the Kudu sample project. For details, see Obtaining Sample Projects from Huawei Mirrors.
- Import the sample project to the IntelliJ IDEA development environment.
- Open IntelliJ IDEA and choose File > Open.
- In the Open File or Project dialog box, select the sample project folder examples and click OK.
- Adjust the package path.

- Compile the pom.xml file by referring to the Huawei open-source image configuration method and add the Maven repository of the project.
- Edit the pom.xml file and add dependency packages.

- Add assembly-plugin to the pom.xml file and change the value of mainClass.

- Set the text file encoding format of IntelliJ IDEA to avoid garbled characters.
- Choose File > Settings from the main menu of IntelliJ IDEA.
- In the displayed Settings window, choose Editor > File Encodings in the navigation tree. In the Global Encoding and Project Encodings areas, set the parameter to UTF-8. Click Apply > OK, as shown in Figure 1.
Last Article: Preparing the Development and Running Environment
Next Article: Developing an Application

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.