Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Maven cannot automatically detect "provide javax.annotation.processing.Processor with ... " when using annotation processors

Open
#962 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Start with the two module declarations in the report and reproduce the annotation processor setup through . Compare Maven's behavior with the reported javac and jar command behavior. Done means the processor declared by module-info.java is detected without manually adding META-INF/services.

Written by the indexing model from the issue text.

Description

3.x bug
Affected version

latest version

Bug description

`module mod.processor {
requires java.compiler;
provides javax.annotation.processing.Processor with mod.processor.Proc;

exports mod.processor;

}`

module mod.user { exports mod.user; requires mod.processor; }

When declaring two modules, mod.processor as an annotation processor module, and mod.user as a application module, using processor in would be failing because maven cannot automatically detect it.

The current fix would be adding META-INF/services to manually expose the SPI interface.

I know it's a particular maven issue because when using javac and jar command directly would succeed without META-INF/services provided.

Dominant language
Java
Stars
261
Forks
194
Avg merge
1d 5h
Merged PRs (30d)
17

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-compiler-plugin

All issues in apache/maven-compiler-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.