Help Center/
MapReduce Service/
Developer Guide (Normal_3.x)/
Storm Development Guide (Normal Mode)/
Running an Application/
Packaging IntelliJ IDEA Code
Updated on 2022-09-14 GMT+08:00
Packaging IntelliJ IDEA Code
Scenario
Export a JAR package using IntelliJ IDEA and specify the name of the JAR package, for example, storm-examples.jar.
Procedure
- In IntelliJ IDEA, configure the Artifacts information for the project before the JAR package is generated.
- Enter IntelliJ IDEA and choose File > Project Structure.
- On the Project Structure page, select Artifacts, click the plus sign (+), and choose JAR > Empty.
Figure 1 Adding Artifacts
- Set the name, type, and output path of the JAR package based on site requirements.
- Choose 'storm-examples' , right-click Put into Output Root, and click Apply.
Figure 3 Put into Output Root
- Click OK to complete the configuration.
- Generate the JAR package.
- Enter IntelliJ IDEA and choose Figure 4 Build Artifacts
.
- In the displayed interface, choose storm-examples:jar > Build the JAR package.
Figure 5 Build
- If log similar to the following is displayed in event logs, the JAR package is successfully generated. Obtain the JAR package from the Output directory configured shown in Figure 2
14:37 Compilation completed successfully in 25 s 991 ms
- Enter IntelliJ IDEA and choose
Parent topic: Running an Application
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.