此内容没有您所选择的语言版本。

Chapter 4. Installing the Red Hat Business Optimizer engine in your application


Red Hat Business Optimizer can be installed using Maven or other applications, such as Gradle, Ivy, or Buildr.

Prerequisite

The Red Hat Decision Manager has been downloaded and installed from the Red Hat Customer Portal. See Getting started with decision services for more information about installing Red Hat Decision Manager.

Procedure

  1. Get the Red Hat Business Optimizer optaplanner-core JARs at the Red Hat JBoss Maven Repository.
  2. Identify the latest version by checking the Red Hat JBoss Maven Repository.
  3. Add a dependency to optaplanner-core in your project’s pom.xml:

      <dependency>
          <groupId>org.optaplanner</groupId>
          <artifactId>optaplanner-core</artifactId>
          <version>{MAVEN_ARTIFACT_VERSION}</version>
      </dependency>
    Copy to Clipboard Toggle word wrap
  4. (Optional) Add any other Red Hat Business Optimizer engine modules that you require, such as the optaplanner-persistence-jpa or optaplanner-persistence-xstream integration modules. For more information about how to configure Red Hat Business Optimizer for use with other Java technologies, see the Optaplanner documentation.
Note

The optaplanner-benchmark module is included as part of the engine, however, it is recommended to be used as a separate module, as demonstrated in the this Employee Rostering module. This is to avoid leaking the optaplanner-benchmark into the .war file.

Alternatively, if you are using Ant (without Ivy) you can install the engine by copying all of the JARs from the downloaded ZIP’s binaries directory. Manually verify that your classpath does not contain duplicate JARs.

Note

The downloaded .zip file binaries directory contains far more JARs then optaplanner-core actually uses. It also contains the JARs used by other modules, such as optaplanner-benchmark.

Check the Maven repository pom.xml files to determine the minimal dependency set for a specific version of a specific module.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat