Skip to main content
Version: 8.4 / 3.12.0

Optimize plugin system

Optimize allows you to adapt the behavior of Optimize, e.g. to decide which kind of data should be analyzed and to tackle technical issues.

Have a look at the Optimize Examples Repository to see some use cases for the plugin system and how plugins can be implemented and used.

Set up your environment

First, add the Optimize plugin to your project via maven:

<version>{{< currentVersionAlias >}}</version>

It is important to use the same plugin environment version as the Optimize version you plan to use. Optimize rejects plugins that are built with different Optimize versions to avoid compatibility problems. This also means that to update to newer Optimize versions it is necessary to build the plugin again with the new version.

To tell Maven where to find the plugin environment, add the following repository to your project:


To make this work, you need to add your nexus credentials and the server to your settings.xml.

It is required to create an uber jar so Optimize can load third-party dependencies and to validate the used Optimize version. You can add the following to your project:


By default, Optimize loads plugin classes isolated from the classes used in Optimize. This allows you to use library versions for the plugin that differ from those used in Optimize.

If you want to use the provided Optimize dependencies instead, it is possible to exclude them from the uber jar by setting the scope of those dependencies to provided. Then, Optimize does not load them from the plugin. This might have side effects if the used version in the plugin is different to the one provided by Optimize. To get an overview of what is already provided by Optimize, have a look at the third-party libraries.

Debug your plugin

To start Optimize in debug mode, execute the Optimize start script with a debug parameter.

On Unix systems, this could look like the following

  • For the demo distribution:
./ --debug
  • For the production distribution:
./ --debug

On a Windows system this could look like the following:

  • For the demo distribution:
.\optimize-demo.bat --debug
  • For the production distribution:
.\optimize-startup.bat --debug

By default, this will open up a debug port on 9999. Once you have set this up, you need to open the project where you implemented the plugin in your favorite IDE and connect to the debug port.

To change the default debug port, have a look into on Linux/Mac or optimize-startup.bat on Windows systems. There, you should find a variable called DEBUG_PORT which allows you to customize the port.