Package org.apache.maven.execution
Class ProfileActivation
java.lang.Object
org.apache.maven.execution.ProfileActivation
Container for storing the request from the user to activate or de-activate certain profiles and optionally fail the
 build if those profiles do not exist.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidMark a profile as optional and activated.voidMark a profile as required and activated.voidaddProfileActivation(String id, boolean active, boolean optional) Adds a profile activation to the request.voidMark a profile as optional and deactivated.voidMark a profile as required and deactivated.Deprecated.Deprecated.UsegetRequiredInactiveProfileIds()andgetOptionalInactiveProfileIds()instead.voidoverwriteActiveProfiles(List<String> activeProfileIds) Deprecated.UseactivateOptionalProfile(String)oractivateRequiredProfile(String)instead.voidoverwriteInactiveProfiles(List<String> inactiveProfileIds) Deprecated.UsedeactivateOptionalProfile(String)ordeactivateRequiredProfile(String)instead.
- 
Constructor Details- 
ProfileActivationpublic ProfileActivation()
 
- 
- 
Method Details- 
getActiveProfilesDeprecated.UsegetRequiredActiveProfileIds()andgetOptionalActiveProfileIds()instead.Mimics the pre-Maven 4 "active profiles" list.
- 
getInactiveProfilesDeprecated.UsegetRequiredInactiveProfileIds()andgetOptionalInactiveProfileIds()instead.Mimics the pre-Maven 4 "inactive profiles" list.
- 
overwriteActiveProfilesDeprecated.UseactivateOptionalProfile(String)oractivateRequiredProfile(String)instead.Overwrites the active profiles based on a pre-Maven 4 "active profiles" list.- Parameters:
- activeProfileIds- A- Listof profile IDs that must be activated.
 
- 
overwriteInactiveProfilesDeprecated.UsedeactivateOptionalProfile(String)ordeactivateRequiredProfile(String)instead.Overwrites the inactive profiles based on a pre-Maven 4 "inactive profiles" list.- Parameters:
- inactiveProfileIds- A- Listof profile IDs that must be deactivated.
 
- 
activateRequiredProfileMark a profile as required and activated.- Parameters:
- id- The identifier of the profile.
 
- 
activateOptionalProfileMark a profile as optional and activated.- Parameters:
- id- The identifier of the profile.
 
- 
deactivateRequiredProfileMark a profile as required and deactivated.- Parameters:
- id- The identifier of the profile.
 
- 
deactivateOptionalProfileMark a profile as optional and deactivated.- Parameters:
- id- The identifier of the profile.
 
- 
addProfileActivationAdds a profile activation to the request.- Parameters:
- id- The identifier of the profile.
- active- Should the profile be activated?
- optional- Can the build continue if the profile does not exist?
 
- 
getRequiredActiveProfileIds- Returns:
- Required active profile identifiers, never null.
 
- 
getOptionalActiveProfileIds- Returns:
- Optional active profile identifiers, never null.
 
- 
getRequiredInactiveProfileIds- Returns:
- Required inactive profile identifiers, never null.
 
- 
getOptionalInactiveProfileIds- Returns:
- Optional inactive profile identifiers, never null.
 
 
- 
getRequiredActiveProfileIds()andgetOptionalActiveProfileIds()instead.