Development Setup

Prerequisites

  • JDK 21 or later — the code compiles with --release 21; the CI builds run on Java 21, 25 and 27.
  • Maven — the repository has no Maven wrapper. The Maven build downloads Node.js and npm for the frontend itself (frontend-maven-plugin; the versions are node.version and npm.version in the root pom.xml).
  • Git.
  • Docker — optional. The Docker-based tests, docker compose and the Docker image need it. Pass -DnoDocker to skip the tests that start containers.
  • Node.js 24 or later and npm 11 or later — only to run the npm scripts of STUDIO/studio-ui or STUDIO/studio-mcp yourself, or the built-in MCP server of a Studio started outside Docker.
  • Lombok in the IDE — the code uses Lombok, so enable annotation processing.

Get the Code

git clone https://github.com/openl-tablets/openl-tablets.git
cd openl-tablets

Build

mvn clean install -Dquick -DnoPerf -T1C   # fast development build
mvn clean install -DskipTests              # no tests; also drops ITEST and the archetypes from the reactor
mvn clean install                          # everything, with all tests
Flag Effect
-Dquick Skips heavy tests.
-DnoPerf Relaxes the memory limits of the tests.
-DnoDocker Skips the tests that start Docker containers.
-DskipTests Skips all tests and drops the integration-test modules from the reactor.
-Pitest Adds the integration-test modules back to a -DskipTests build.
-Dnpm.test.skip Skips the Vitest suites of studio-ui and studio-mcp.
-Dnpm.typecheck.skip Skips the tsc --noEmit pass of studio-ui.
-Dnpm.lint.skip Skips the ESLint pass of studio-ui.
-Dnpm.build.skip Skips the production bundle of studio-ui and the build of studio-mcp.
-Dsonar Enables JaCoCo, which writes the coverage report of verify.

The build writes the web applications of OpenL Studio and Rule Services to STUDIO/studio-backend/target/webapp and WSFrontend/org.openl.rules.ruleservice.ws/target/webapp. The coverage report is jacoco-report/target/site/jacoco-aggregate/jacoco.xml.

Run

The whole stack in Docker

docker compose up --build

The file is compose.yaml; see Deployment for what it starts.

The frontend with hot reload

With a backend on port 8080, for example the stack above:

cd STUDIO/studio-ui
npm install
npm run start

The Vite dev server listens on http://localhost:3100 and proxies /rest, /ws, /login, /logout, /licenses and /docs to http://localhost:8080.

The DEMO package

DEMO/ builds the package that starts OpenL Studio and Rule Services on Jetty; see the Demo Package Guide.

Test

mvn test -pl <module-path>                       # one module
mvn test -pl <module-path> -Dtest=ClassName#method   # one test
mvn verify -pl ITEST/itest.smoke -am             # one integration suite
cd STUDIO/studio-ui && npx vitest run src/<file>.test.tsx   # one frontend test
cd STUDIO/studio-mcp && npm test -- src/<file>.test.ts      # one test of the MCP server
mvn test -pl STUDIO/studio-docs                  # the user guides: links, images, Markdown

New or changed Java code keeps at least 80% line coverage on the diff. The tests of integration suites are described in ITEST/AGENTS.md.

Format

.editorconfig sets LF line endings, a 4-space indent for Java and XML, and 120 characters per line. Run

mvn validate -N

before every commit. Spotless formats the files locally, and CI fails on a file that is not formatted. The same command checks that the versions copied into the Dockerfile and the DEMO/start* scripts match the Maven properties.

Conventions

  • AGENTS.md in the root of the repository and the AGENTS.md file of each module hold the coding rules and the commit convention.
  • Codebase Tour shows where the code lives.