Skip to content

Commit

Permalink
Fix maven plugin api warning about using @component instead of @param…
Browse files Browse the repository at this point in the history
…eter for injecting the current MojoExecution
  • Loading branch information
giraciopide committed Mar 26, 2022
1 parent b3afd43 commit 0900c98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0900c98

Please sign in to comment.