Building projects

When your projects have the supported structure and the corresponding POM files, you use the Build Command plugin to build these projects into RuleApps.

Procedure

  1. Go to the root of your project folder.
  2. Enter the following command in a command prompt: mvn clean install

    For more information about how to build a project with Maven, see the Apache Maven documentation External link opens a new window or tab.

Results

A target directory that contains one .jar file per deployment configuration is created in the directory of each project that you build. Each .jar file is a RuleApp archive. For example in the HelloWorld sample, you should have the following: Hello Main Service/target/HelloWorld.jar. If you specified a classifier for a project, this classifier is also shown in the name of the RuleApp archive. Similar directories are created in your Maven repository as well.

If you set the embeddedXom parameter to true in a deployment parameter, the corresponding RuleApp archive also contains the managed Java™ XOM files.

What to do next

You can deploy the RuleApp archives to your Rule Execution Server.