Skip to main content
The Maven plugin runs the schema engine as part of your build and owns two output trees: generated sources and a discovery resource. This page is the reference for that machinery; for the end-to-end setup, start at the quickstart.

The generator block

A Java generator block sets four things the other languages don’t need:
repost/schema.repost
Source and resources are one transaction: a regeneration replaces both together or restores the previous tree — a crash never leaves a half-written client or a stale registry. Point output/resourceOutput at build-output directories (as above); they are regenerated, not committed.

The engine

The plugin resolves and runs a signed, platform-specific schema engine (sh.repost:repost-schema-engine:0.9.0) — nothing else to install. Pin a different engine build with <engineVersion> on the plugin (or -Drepost.engineVersion=…); the checksum and signature are verified before the engine runs, and a mismatch fails the build.

Generate and check

The plugin binds to the build. Two goals:
repost:generate runs in the generate-sources phase, so mvn compile already has your client. repost:check regenerates into an isolated directory, hashes the result, and fails if it differs from the committed output without writing to your source tree — the CI gate that proves generated code is in sync. The repost CLI generates the identical tree from the same schema, so a teammate without Maven can regenerate too.

GENERATE versus multi-module AGGREGATE_ONLY

Every module runs in one of two modes (<schemaMode>; default GENERATE):
  • GENERATE — run the engine on this module’s schema, emit the client and its registry, and aggregate any client registries found on the compile classpath. This is what a single-module app or a schema library uses.
  • AGGREGATE_ONLY — run no engine and generate no client. Only merge the registries published by dependency modules into one application registry. An application module that consumes clients from several schema libraries uses this so it never regenerates code it doesn’t own.
In a multi-module build, each schema library stays GENERATE (it owns and publishes one client), and the application module sets AGGREGATE_ONLY:
Application module — pom.xml

Continue

Schema workflow

Version the schema with migrations and deploy it to your environment.

Configuration

Credentials, timeouts, retries, and transport options with production defaults.

Frameworks

Spring Boot, Jakarta CDI, and the framework-neutral core pattern.