Annotation Interface MojoExecutionScoped


@Scope @Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface MojoExecutionScoped
Indicates that the annotated bean has a lifespan limited to a given mojo execution, which means each mojo execution will result in a different instance being injected.

The following objects will be bound to the mojo execution scope:

  • org.apache.maven.api.MojoExecution
  • org.apache.maven.api.Project
  • org.apache.maven.api.plugin.Log
Since:
4.0.0