Skip to content

Added annotation processor support for dev mode hot reload#2026

Merged
venmanyarun merged 5 commits into
OpenLiberty:mainfrom
sajeerzeji:GHMAVEN2021-annotation_processor_paths_issue
Jun 3, 2026
Merged

Added annotation processor support for dev mode hot reload#2026
venmanyarun merged 5 commits into
OpenLiberty:mainfrom
sajeerzeji:GHMAVEN2021-annotation_processor_paths_issue

Conversation

@sajeerzeji
Copy link
Copy Markdown
Contributor

@sajeerzeji sajeerzeji commented May 29, 2026

Fixes #2021

  • Enhanced JavaCompilerOptions (ci.common)
    Added annotationProcessorPath field and methods to support the -processorpath compiler option
  • Updated DevMojo.getMavenCompilerOptions()
    Extracts annotationProcessorPaths from maven-compiler-plugin configuration and resolves artifacts
  • Added integration test
    Created DevAnnotationProcessorTest with a Lombok-based test project to verify annotation processors work correctly during recompilation

Before:

Screen.Recording.2026-06-03.at.4.35.32.PM.mov

After

Screen.Recording.2026-06-03.at.4.43.46.PM.mov

@venmanyarun venmanyarun merged commit 3fa9211 into OpenLiberty:main Jun 3, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Annotation processors not run during hot reloads (Java 25)

3 participants