slachiewicz commented on code in PR #345: URL: https://github.com/apache/maven-plugin-tools/pull/345#discussion_r1885388942
########## maven-plugin-tools-annotations/src/site/apt/index.apt: ########## @@ -132,6 +110,27 @@ public class MyMojo // prefer using project.getBuild().getDirectory() private File target; + // pseudo-parameters (marked read-only) permitting injection of Maven build context objects + // sample objects taken from Maven API through PluginParameterExpressionEvaluator + // https://maven.apache.org/ref/current/maven-core/apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html + // plugins targeting Maven 3.2.5+ (after MNG-5695) should not use these pseudo-parameters any more, + // but @Inject and Maven APIs to get better compiler-time checks + + private final MyComponent component; + + private final MavenSession session; + + private final MavenProject project; + + private final MojoExecution mojoExecution; + + public MyMojo(MyComponent component, MavenSession session, MavenProject project, MojoExecution mojoExecution) { Review Comment: @Inject annotation missing -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org