-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with resolving rewrite plugin on parent pom #475
Comments
Confirmed with Maven 3.8.7
|
Reading the plugin prefix resolution documentation it's not clear to me why this would not resolve for this sample project. On one of my own multi module Maven projects the shorthand still works fine. Worst case you can configure a |
even if I add a goalPrefix it doesn't work |
So it appears we've encountered this before #103 ; the accidental way I found around this is using a profile on the parent. <profile>
<id>openrewrite</id>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>4.38.2</version>
<configuration>
<activeRecipes>
<recipe>org.openrewrite.java.cleanup.Cleanup</recipe>
</activeRecipes>
<failOnDryRunResults>true</failOnDryRunResults>
</configuration>
</plugin>
</plugins>
</build>
</profile> Welcome to see if that will get you past this point for now and applying recipes! |
Hi , any ETA or fix version when this will be fixed ? |
Hi !
When I try to use openrewrite inside a parent pom the rewrite maven plugin is not found. Here a sample parent pom:
If I then try to call my recipe I cannot run
mvn rewrite:run
but need to call the plugin like this:mvn org.openrewrite.maven:rewrite-maven-plugin:run
The text was updated successfully, but these errors were encountered: