Annotation Type MojoParameter
-
@Retention(RUNTIME) @Repeatable(MojoParameters.class) @Inherited @Target({TYPE,METHOD,PARAMETER}) public @interface MojoParameter
Specifies a parameter value for a Mojo in a Maven plugin test. This annotation can be used to configure individual Mojo parameters without requiring a full POM file.The annotation is repeatable, allowing multiple parameters to be set on a single test method, parameter, or on the whole test class. For multiple parameters, you can either use multiple
@MojoParameterannotations or a singleMojoParametersannotation.Example usage with a single parameter:
{@code- Since:
- 3.4.0
- See Also:
MojoParameters,InjectMojo,MojoTest