Preparing your environment

You must verify that you have the required software. You then install the Build Command Maven plugin and its related Operational Decision Manager artifacts in your Maven repository.

Software requirements

Software requirement Minimum supported version
Java Development Kit (JDK) 1.7
Apache Maven 3.2

Known limitations

You cannot use Build Command to build projects that make use of classic rule projects, the classic rule engine, or COBOL.

If you synchronize a project from Rule Designer to Decision Center, the decision service POM file that you write for Build Command is not synchronized with the other project artifacts. You should keep this file in the source control environment where you store your rules.

Installing the Build Command plugin

In <InstallDir>/buildcommand/maven-plugin, open a command prompt.

To deploy the Build Command Maven plugin to a remote Maven repository, you must configure Maven in your environment. You then use the following command: mvn deploy:deploy-file -Dfile=rules-compiler-maven-plugin.jar -DpomFile=rules-compiler-maven-plugin.pom

If you do not have a remote repository, you can test the plugin locally. You run the following command: mvn install:install-file -Dfile=rules-compiler-maven-plugin.jar -DpomFile=rules-compiler-maven-plugin.pom

This command adds the following plugin in your local Maven repository: com/ibm/rules/buildcommand/rules-compiler-maven-plugin