Skip to content

Commit

Permalink
Fix documentation example for maven.AddPlugin
Browse files Browse the repository at this point in the history
The <executions> 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
  • Loading branch information
minisu authored Feb 23, 2024
1 parent 7acd005 commit ebe47f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class AddPlugin extends Recipe {

@Option(displayName = "Executions",
description = "Optional executions provided as raw XML.",
example = "<execution><phase>generate-sources</phase><goals><goal>add-source</goal></goals></execution>",
example = "<executions><execution><phase>generate-sources</phase><goals><goal>add-source</goal></goals></execution></executions>",
required = false)
@Nullable
String executions;
Expand Down

0 comments on commit ebe47f6

Please sign in to comment.