-
Notifications
You must be signed in to change notification settings - Fork 92
OpenRewrite fails when multi-module project has an annotation processor dependency on one of the submodules #1080
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of OpenRewrite are you using?
I am using
- Maven plugin v6.21.0
- rewrite-recipe-bom v3.16.0
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a multi-module project.
What is the smallest, simplest way to reproduce the problem?
I'll try to come up with a sample project, time permitting, but basically have a multi-module maven project where submodule a expresses an annotation processor dependency on submodule b. Then, a mvn clean rewrite:run will fail.
Note that a mvn clean install rewrite:run will succeed (workaround).
What did you expect to see?
Well, a working maven rewrite run :)
What did you see instead?
A failed run.
What is the full stack trace of any errors you encountered?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.1:compile (default-compile) on project a: Resolution of annotationProcessorPath dependencies failed: The following artifacts could not be resolved: b:jar:0.1-SNAPSHOT (absent): Could not find artifact b:jar:0.1-SNAPSHOT in artifact-registry (artifactregistry://xxx) -> [Help 1]
Are you interested in contributing a fix to OpenRewrite?
Time permitting
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
No status