openrewrite / rewrite

Automated mass refactoring of source code.
https://docs.openrewrite.org
Apache License 2.0
2.09k stars 312 forks source link

Rewrite command not building jar/war in multimodule project #2044

Closed visakini closed 2 years ago

visakini commented 2 years ago

Hi we are able to build jar/war file in our multimodule project with normal maven commands (mvn clean install ).

But while using rewrite along with maven command the jar/war is not getting created for the modules(mvn clean install rewrite:dryRun).

Since there is dependency on the modules we were getting error.

Please advise how to run rewrite command in case of multimodule project.

Note:Added the plugin in the parent pom.xml

tkvangorder commented 2 years ago

@visakini A few questions for you:

visakini commented 2 years ago

I am using 4.26.0 version. I am running at the top level Project. It doesnt show any error but it says No sources to compile and the jar/war is not built

tkvangorder commented 2 years ago

Sorry, I do not really have enough information to act on this issue. Can you provide a reproducible project? Any output from maven?

Adding rewrite:dryRun would add additional build tasks to your build and should not prevent any previous build tasks from executing.

tkvangorder commented 2 years ago

Also, can you run with debug and -e ?

visakini commented 2 years ago

It is working if i use mvn rewrite:dryRunNoFork .