Chapter 4. Downloading and building OptaPlanner examples
You can download the OptaPlanner examples as a part of the Red Hat Build of OptaPlanner sources package available on the Red Hat Customer Portal.
Procedure
Navigate to the Software Downloads page in the Red Hat Customer Portal (login required), and select the product and version from the drop-down options:
- Product: Red Hat Build of OptaPlanner
- Version: 8.29
- Download Red Hat Build of OptaPlanner 8.29 Sources.
Extract the
rhbop-8.29.0-red_hat_build_of_optaplanner-sources.zipfile.The extracted
org.red_hat_build_of_optaplanner-red_hat_build_of_optaplanner-8.29.0.Final-redhat-00009/red_hat_build_of_optaplanner-examples/src/main/java/org/optaplanner/examplesdirectory contains example source code.To build the examples, in the
org.red_hat_build_of_optaplanner-red_hat_build_of_optaplanner-8.29.0.Final-redhat-00009directory enter the following command:mvn clean install -Dquickly
mvn clean install -DquicklyCopy to Clipboard Copied! Toggle word wrap Toggle overflow Change to the examples directory:
red_hat_build_of_optaplanner-examples
red_hat_build_of_optaplanner-examplesCopy to Clipboard Copied! Toggle word wrap Toggle overflow To run the examples, enter the following command:
mvn exec java
mvn exec javaCopy to Clipboard Copied! Toggle word wrap Toggle overflow