Packaging Services on a Windows OS
Scenario
Storm supports packaging in a Windows environment.
Prerequisites
Packaging IntelliJ IDEA Code is complete.
Procedure
- Place the JAR package exported from IntelliJ IDEA to a specified directory (for example, D:\source).
- 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.
- If the service needs to access external components, obtain the configuration files and place them in the lib directory created in 2 For details about the dependency configuration files, see related development guidelines.
- If the service needs to access external components, obtain the JAR packages and place them in the lib directory created in 2 For details about the dependency JAR packages, see the related development guidelines.
- Find storm-jartool.cmd in the tools example project directory.
- 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.
Last Article: Packaging Services on a Linux OS
Next Article: Submitting a Topology
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.