Updated on 2022-08-16 GMT+08:00

Packaging Services on a Windows OS

Scenario

Storm supports packaging in a Windows environment.

Prerequisites

Packaging IntelliJ IDEA Code is complete.

Procedure

  1. Place the JAR package exported from IntelliJ IDEA to a specified directory (for example, D:\source).
  2. Create the lib directory in the sample code directory src/storm-examples/storm-examples, copy the JAR package exported from IntelliJ IDEA to the lib directory, and decompress the package.
  3. If the service needs to access external components, obtain the configuration files and place them in the lib directory specified in 1 For details about the dependency configuration files, see related development guidelines.
  4. If the service needs to access external components, obtain the JAR packages and place them in the lib directory specified in 1 For details about the dependency JAR packages, see the related development guidelines.
  5. Find storm-jartool.cmd in the tools example project directory.
  6. Double-click the packaging tool, enter the directory where the JAR packages to be packaged locate (D:\source) and press Enter, and enter the directory where the package to be generated locates (D:\target). The source.jar file is generated in the D:\target directory.