You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recipe wrongly assumes the plugin tag to be one of those tags that contain groupid, artifactid, etc., but that's not the case here. It might be useful to require a potential plugin tag to contain a nested artifactId tag, that field should be mandatory everywhere, right?
if (isPluginTag() && !t.getChild("groupId").isPresent()) {
I'm leaning towards adding a && t.getChild("artifactId").isPresent() in the recipe, as that would have the least performance impact, and is unlikely to negatively affect other use cases.
What version of OpenRewrite are you using?
maven plugin 5.47.3
What is the smallest, simplest way to reproduce the problem?
Have this maven enforcer configuration in a
pom.xml
.Run
org.openrewrite.maven.cleanup.ExplicitPluginGroupId
.What did you expect to see?
No change.
What did you see instead?
The content of the most inner nested plugin tag has been changed to this:
The recipe wrongly assumes the
plugin
tag to be one of those tags that contain groupid, artifactid, etc., but that's not the case here. It might be useful to require a potentialplugin
tag to contain a nestedartifactId
tag, that field should be mandatory everywhere, right?Are you interested in contributing a fix to OpenRewrite?
The text was updated successfully, but these errors were encountered: