From ebe47f6d7e1d8d830c47f9a6ae0fd7a101fe2710 Mon Sep 17 00:00:00 2001 From: Henrik S Date: Fri, 23 Feb 2024 12:03:05 +0100 Subject: [PATCH] Fix documentation example for maven.AddPlugin The element has to be included by the user, as is made clear in the AddPluginTest: https://github.com/openrewrite/rewrite/blob/main/rewrite-maven/src/test/java/org/openrewrite/maven/AddPluginTest.java#L125-L139 --- .../src/main/java/org/openrewrite/maven/AddPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewrite-maven/src/main/java/org/openrewrite/maven/AddPlugin.java b/rewrite-maven/src/main/java/org/openrewrite/maven/AddPlugin.java index 4da7f898e47..68617b42c35 100644 --- a/rewrite-maven/src/main/java/org/openrewrite/maven/AddPlugin.java +++ b/rewrite-maven/src/main/java/org/openrewrite/maven/AddPlugin.java @@ -72,7 +72,7 @@ public class AddPlugin extends Recipe { @Option(displayName = "Executions", description = "Optional executions provided as raw XML.", - example = "generate-sourcesadd-source", + example = "generate-sourcesadd-source", required = false) @Nullable String executions;