Class Features

java.lang.Object
org.apache.maven.api.feature.Features

public final class Features extends Object
Centralized class for Maven Core feature information. Features configured are supposed to be final in a given maven session.
Since:
4.0.0
  • Method Details

    • mavenMaven3Personality

      public static boolean mavenMaven3Personality(@Nullable Map<String,?> userProperties)
      Check if the personality is "maven3".
    • consumerPom

      public static boolean consumerPom(@Nullable Map<String,?> userProperties)
      Check if the consumer POM feature is active.
    • consumerPomFlatten

      public static boolean consumerPomFlatten(@Nullable Map<String,?> userProperties)
      Check if consumer POM flattening is enabled.
    • consumerPomRemoveUnusedManagedDependencies

      public static boolean consumerPomRemoveUnusedManagedDependencies(@Nullable Map<String,?> userProperties)
      Check if unused managed dependency removal is enabled during consumer POM flattening.
    • consumerPomSanitizeRepositories

      public static boolean consumerPomSanitizeRepositories(@Nullable Map<String,?> userProperties)
      Check if consumer POM repository sanitization is enabled: when active, only repositories declared in the project's own POM file are published in the consumer POM, while repositories inherited from parent POMs or injected by active settings.xml profiles are removed.
    • discoverSubprojects

      public static boolean discoverSubprojects(@Nullable Map<String,?> userProperties)
      Check if automatic subproject discovery is enabled for POM-packaged projects.