Viewing and Running Samples From IntelliJ IDEA

You can build and run the sample operators from an IDE such as IntelliJ. This approach is useful when you are developing your own custom operators.

Perform this task from the the IntelliJ IDEA.

Prerequisites

If you have not done so already, clone the AlpineNow/CustomPlugins repo. See Installing the Custom Sample Operator for your Version for more information.

IntelliJ must be configured to support Maven projects as follows:

  • Preferences > Plugins > Maven Integration should be enabled.
  • View > Tool Buttons > should be enabled.

Procedure

  1. In IntelliJ, click File > Open.
  2. In PluginExampleProject, PluginTemplateProject, or TextMiningProject, select the file pom.xml.

    IntelliJ generates the project using that .pom file (note that this is a change from the previous SDK).

  3. On the right side, select Maven Projects.
  4. Under LifeCycle, review the valid Maven comments.
  5. Click package, and then click Run.