Skip to content

[MDEP-907] Resolve maven-compiler-plugin annotationProcessorPaths in go-offline - #1792

Merged
slachiewicz merged 2 commits into
apache:masterfrom
slachiewicz:agent/mdep-907-processor-paths
Nov 14, 2026
Merged

slachiewicz merged 2 commits into
apache:masterfrom
slachiewicz:agent/mdep-907-processor-paths

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

dependency:go-offline also resolves the annotationProcessorPaths of maven-compiler-plugin, with their transitive dependencies, so a Maven 3 build that compiles with annotation processors works offline afterwards. Each compiler configuration (plugin level and each execution) is resolved separately, as the compiler does, and annotationProcessorPathsUseDepMgmt is honoured. A path without a version takes it from dependencyManagement or is skipped with a warning. Exclusions are read by groupId and artifactId only.

Fixes #1413


To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
check one of the following:

@slachiewicz slachiewicz added the bug Something isn't working label Nov 13, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 14, 2026 08:31
@slachiewicz slachiewicz added enhancement New feature or request and removed bug Something isn't working labels Nov 14, 2026
@slachiewicz
slachiewicz merged commit 1b30278 into apache:master Nov 14, 2026
14 checks passed
@github-actions github-actions Bot added this to the 3.12.0 milestone Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MDEP-907] annotationProcessorPaths from maven-compiler-plugin are not resolved when using dependency:go-offline

1 participant