Class ProjectActivation
java.lang.Object
org.apache.maven.execution.ProjectActivation
Container for storing the request from the user to activate or deactivate certain projects and optionally fail the
 build if those projects do not exist.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordProjectActivationSettings - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidactivateOptionalProject(String selector) Mark a project as optional and activated.voidactivateOptionalProjectNonRecursive(String selector) Mark a project as optional and activated.voidactivateRequiredProject(String selector) Mark a project as required and activated.voidaddProjectActivation(String selector, boolean active, boolean optional) Adds a project activation to the request.voiddeactivateOptionalProject(String selector) Mark a project as optional and deactivated.voiddeactivateRequiredProject(String selector) Mark a project as required and deactivated.Deprecated.Deprecated.UsegetRequiredActiveProjectSelectors()andgetOptionalActiveProjectSelectors()instead.booleanisEmpty()voidoverwriteActiveProjects(List<String> activeProjectSelectors) Deprecated.UseactivateOptionalProject(String)oractivateRequiredProject(String)instead.voidoverwriteInactiveProjects(List<String> inactiveProjectSelectors) Deprecated.UsedeactivateOptionalProject(String)ordeactivateRequiredProject(String)instead. 
- 
Constructor Details
- 
ProjectActivation
public ProjectActivation() 
 - 
 - 
Method Details
- 
getActivations
 - 
addProjectActivation
Adds a project activation to the request.- Parameters:
 selector- The selector of the project.active- Should the project be activated?optional- Can the build continue if the project does not exist?
 - 
getRequiredActiveProjectSelectors
 - 
getOptionalActiveProjectSelectors
 - 
getRequiredInactiveProjectSelectors
 - 
getOptionalInactiveProjectSelectors
 - 
getSelectedProjects
Deprecated.UsegetRequiredActiveProjectSelectors()andgetOptionalActiveProjectSelectors()instead.Mimics the pre-Maven 4 "selected projects" list. - 
getExcludedProjects
Deprecated.Mimics the pre-Maven 4 "excluded projects" list. - 
overwriteActiveProjects
Deprecated.UseactivateOptionalProject(String)oractivateRequiredProject(String)instead.Overwrites the active projects based on a pre-Maven 4 "active projects" list.- Parameters:
 activeProjectSelectors- AListof project selectors that must be activated.
 - 
overwriteInactiveProjects
Deprecated.UsedeactivateOptionalProject(String)ordeactivateRequiredProject(String)instead.Overwrites the inactive projects based on a pre-Maven 4 "inactive projects" list.- Parameters:
 inactiveProjectSelectors- AListof project selectors that must be deactivated.
 - 
activateRequiredProject
Mark a project as required and activated.- Parameters:
 selector- The selector of the project.
 - 
activateOptionalProject
Mark a project as optional and activated.- Parameters:
 selector- The selector of the project.
 - 
activateOptionalProjectNonRecursive
Mark a project as optional and activated.- Parameters:
 selector- The selector of the project.
 - 
deactivateRequiredProject
Mark a project as required and deactivated.- Parameters:
 selector- The selector of the project.
 - 
deactivateOptionalProject
Mark a project as optional and deactivated.- Parameters:
 selector- The selector of the project.
 - 
isEmpty
public boolean isEmpty() 
 - 
 
getRequiredInactiveProjectSelectors()andgetOptionalInactiveProjectSelectors()instead.