Annotation Type MavenProfile


@Target({TYPE,METHOD,PACKAGE}) @Retention(RUNTIME) @Documented @Inherited @Repeatable(MavenProfiles.class) @API(status=EXPERIMENTAL, since="0.9.0") public @interface MavenProfile
This annotation is intended to define a profile you would like to activate.

You can define the profile you would like to activate like this:

    @MavenProfile("run-its")
 

For multiple profiles:

    @MavenProfile({"run-its", "second-profile"})
 

This is the equivalent to the command line like: -Prun-its,second-profile

You can take advantage of the feature being a repeatable annotation like this:

    @MavenProfile("first-profile")
    @MavenProfile("second-profile")
 
Author:
Karl Heinz Marbaise
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String[] value
      Default:
      {""}