From 0900c9855a9dcc7ca187cffac65d2933f5ba7d4f Mon Sep 17 00:00:00 2001 From: Marco Nicolini Date: Sat, 26 Mar 2022 16:48:39 +0100 Subject: [PATCH] Fix maven plugin api warning about using @Component instead of @Parameter for injecting the current MojoExecution --- .../dev/dimlight/maven/plugin/shellcheck/ShellCheckMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/dimlight/maven/plugin/shellcheck/ShellCheckMojo.java b/src/main/java/dev/dimlight/maven/plugin/shellcheck/ShellCheckMojo.java index 879eb5d..e4f8c00 100644 --- a/src/main/java/dev/dimlight/maven/plugin/shellcheck/ShellCheckMojo.java +++ b/src/main/java/dev/dimlight/maven/plugin/shellcheck/ShellCheckMojo.java @@ -166,7 +166,7 @@ public class ShellCheckMojo extends AbstractMojo { @Parameter(required = true, defaultValue = "${session}", readonly = true) private MavenSession mavenSession; - @Component + @Parameter(defaultValue = "${mojoExecution}", readonly = true) private MojoExecution execution; // used to get the execution id @Component