Create your project
Start a new Mateu project from one of the three front doors below, or add Mateu to an existing project by hand. Either way there is no separate frontend project.
Start a new project
Section titled “Start a new project”All three front doors generate the same project, from the same templates: the official starters, which CI compiles and boots on every change. The Mateu version is the latest release on Maven Central.
| Front door | How |
|---|---|
| IntelliJ IDEA (Mateu plugin) | File › New › Project… › Mateu — choose the options, the project opens when it is created. |
| VS Code (Mateu extension) | Command palette › Mateu: New Project… — quick picks, then a folder; the project opens when it is created. |
| Maven | mvn archetype:generate -DarchetypeGroupId=io.mateu -DarchetypeArtifactId=mateu-archetype -DarchetypeVersion=3.0-beta.57 -DgroupId=com.acme -DartifactId=my-app -Dauthoring=code |
The first choice is how you author the UI:
| Authoring | What you get | Runtimes |
|---|---|---|
| Code | Screens are classes: @UI (Java), [UI] (C#) or @ui (Python). An app shell with a menu, a home page and a Product CRUD — or, with the Home only sample, the shell and the home page alone. | Spring Boot MVC/WebFlux, Quarkus, Micronaut, Helidon MP, .NET, Python |
| YAML only, served by a backend | No UI code at all: the Spring Boot main class plus src/main/resources/specs/ui/ — a type: UI mount (with its home:), routes.yaml, an app shell, a home page, a listing and sources.yaml with sample data. See the YAML quickstart. | Spring Boot MVC |
| YAML only, static | No backend: the same YAML, bundled at build time into a folder of static files for any CDN. | none — mvn package writes target/mateu-bundle/ |
| Code + YAML | App shell, routes and the home page as YAML; the Product CRUD as a Java view model bound in routes.yaml. | Spring Boot MVC/WebFlux, Quarkus |
Whatever you pick, the project runs out of the box and opens on its home page; with the products sample, the home page’s call to action and the Products menu entry lead to the products.
Then, where they apply: the runtime, the renderer (Vaadin, or Oracle Redwood for Spring
Boot), the sample to start from, sample pages from the page templates (for the YAML flavours, in
the IDEs) and the Maven coordinates. The archetype takes -Dauthoring=code|yaml|static,
-Drenderer=vaadin|redwood and -Dsample=crud|empty, on Spring Boot (MVC), with any JDK from 21 on. The build tool is Maven.
Every generated project carries an AGENTS.md — what the project is, its layout, how to run it,
where the UI is declared and the rules an AI assistant must respect (view models are per request,
store() on AutoCrud, routes.yaml…, or for a YAML-only project: edit specs/ui, add no Java
UI) — and a CLAUDE.md that imports it, so Claude Code and the tools that read AGENTS.md
(Codex, Cursor, Copilot…) get the same guidance. See Use Mateu with AI assistants.
Add Mateu by hand
Section titled “Add Mateu by hand”The setup is a Maven dependency plus an annotation processor.
Choose your framework
Section titled “Choose your framework”| Framework | Module |
|---|---|
| Spring Boot MVC | mateu-mvc |
| Spring Boot WebFlux | mateu-webflux |
| Quarkus | mateu-quarkus |
| Micronaut | mateu-micronaut |
| Helidon MP | mateu-helidon-mp |
Common setup pattern
Section titled “Common setup pattern”All integrations follow the same steps:
- Import
io.mateu:mateu-bom(so no Mateu artifact needs its own version) - Add the framework-specific Mateu core dependency
- Add the annotation processor to the compiler’s processor path (never as a regular dependency)
- Add a renderer dependency (choose your design system)
The annotation processor generates the framework-specific controllers and routes from your @UI classes at compile time. You do not write controllers by hand.
All five adapters serve the same HTTP contract — the UI endpoints, streamed actions (Server-Sent
Events, e.g. a LongTask), the SPA deep-link fallback, the renderers’ error log, asset caching,
YAML-defined mounts and the optional MCP endpoint — and read the same
configuration properties. Cross-origin access and MCP
are off until you turn them on.
Choose a renderer
Section titled “Choose a renderer”All integrations support the same set of frontends — change renderer by swapping one dependency:
| Artifact | Design system |
|---|---|
mateu-vaadin | Vaadin (default, recommended) |
mateu-redwood | Oracle Redwood, on Visual Builder — loads Oracle’s components from its CDN under your Oracle terms (licensing) |
Before you start
Section titled “Before you start”See Prerequisites for Java version and build tool requirements.