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 .
Last Article: Running an Application
Next Article: Packaging Services

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