This sample shows how to integrate the Lombok library (https://projectlombok.org/) into an Axon Ivy project. Lombok 1.18.18 and Axon Ivy 9.3.4 is used.
The commit illustrates what changes are required in your Ivy Project to use Lombok. In order to make Lombok work in Axon Ivy Designer and with Maven, the following settings must be made.
Append -javaagent:/Use/your/path/.m2/repository/org/projectlombok/lombok/1.18.18/lombok-1.18.18.jar
to the AxonIvyDesigner.ini
which is located in your Axon Ivy Designer directory. Make sure you use your path to the Lombok Jar.
Set the MAVEN_OPTS
environment variable in your terminal before running maven commands.
Windows:
set MAVEN_OPTS="-javaagent:<YourLombokJarPath> --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED"
macOS:
export MAVEN_OPTS="-javaagent:<YourLombokJarPath> --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED"
Where <YourLombokJarPath>
points to your local Lombok jar.
Our ci.yaml also indicates how to use Maven and Lombok.