Annotation Interface InjectMojo


@Deprecated(since="4.0.0-rc-6", forRemoval=true) @Target({METHOD,PARAMETER}) @Retention(RUNTIME) @Inherited public @interface InjectMojo
Deprecated, for removal: This API element is subject to removal in a future version.
Use InjectMojo instead
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Specifies the goal of the Mojo to instantiate.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Specifies an optional POM file to use for Mojo configuration.
  • Element Details

    • goal

      String goal
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies the goal of the Mojo to instantiate. This is a required attribute that maps to the Mojo's @Mojo(name = "...") annotation value.
      Returns:
      the goal name of the Mojo to test
    • pom

      String pom
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies an optional POM file to use for Mojo configuration. The path is relative to the test class location.

      If not specified, the default project configuration will be used.

      Returns:
      the path to a custom POM file, or an empty string to use defaults
      Default:
      ""