Annotation Type MavenGoal


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Inherited @Repeatable(MavenGoals.class) @API(status=EXPERIMENTAL, since="0.9.0") public @interface MavenGoal
@MavenGoal is used to define the goals which will be executed during an integration test.

When applied at the class level, all test methods within that class are automatically inheriting the given goal.

You can define a goal on command line for Maven like the following:

    @MavenGoal("install")
 

For multiple command line options:

    @MavenGoal("clean")
    @MavenGoal("install")
 

This is the equivalent to the command line like: mvn clean install

The annotation @MavenGoal is an repeatable annotation.

Since:
0.9.0
Author:
Karl Heinz Marbaise
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String[] value
      Default:
      {"package"}