Interface ProfileSelector

All Known Implementing Classes:
DefaultProfileSelector

public interface ProfileSelector
Calculates the active profiles among a given collection of profiles.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.apache.maven.api.model.Profile>
    getActiveProfiles(Collection<org.apache.maven.api.model.Profile> profiles, ProfileActivationContext context, org.apache.maven.api.services.ModelProblemCollector problems)
    Determines the profiles which are active in the specified activation context.
  • Method Details

    • getActiveProfiles

      List<org.apache.maven.api.model.Profile> getActiveProfiles(Collection<org.apache.maven.api.model.Profile> profiles, ProfileActivationContext context, org.apache.maven.api.services.ModelProblemCollector problems)
      Determines the profiles which are active in the specified activation context. Active profiles will eventually be injected into the model.
      Parameters:
      profiles - The profiles whose activation status should be determined, must not be null.
      context - The environmental context used to determine the activation status of a profile, must not be null.
      problems - The container used to collect problems that were encountered, must not be null.
      Returns:
      The profiles that have been activated, never null.