Package org.apache.maven.model.profile
Interface ProfileSelector
- All Known Implementing Classes:
DefaultProfileSelector
Deprecated.
Calculates the active profiles among a given collection of profiles.
-
Method Summary
Modifier and TypeMethodDescriptiongetActiveProfiles
(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Deprecated.Determines the profiles which are active in the specified activation context.getActiveProfilesV4
(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Deprecated.Determines the profiles which are active in the specified activation context.
-
Method Details
-
getActiveProfiles
List<Profile> getActiveProfiles(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Deprecated.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 benull
.context
- The environmental context used to determine the activation status of a profile, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.- Returns:
- The profiles that have been activated, never
null
.
-
getActiveProfilesV4
default List<Profile> getActiveProfilesV4(Collection<Profile> profiles, ProfileActivationContext context, ModelProblemCollector problems) Deprecated.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 benull
.context
- The environmental context used to determine the activation status of a profile, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.- Returns:
- The profiles that have been activated, never
null
.
-
ModelBuilder
instead