Package org.apache.maven.execution
Class DefaultMavenExecutionRequestPopulator
java.lang.Object
org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
- All Implemented Interfaces:
- MavenExecutionRequestPopulator
@Named
public class DefaultMavenExecutionRequestPopulator
extends Object
implements MavenExecutionRequestPopulator
Assists in populating an execution request for invocation of Maven.
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultMavenExecutionRequestPopulator(MavenRepositorySystem repositorySystem) 
- 
Method SummaryModifier and TypeMethodDescriptionpopulateDefaults(MavenExecutionRequest request) Injects default values like plugin groups or repositories into the specified execution request.populateFromSettings(MavenExecutionRequest request, Settings settings) Deprecated.populateFromToolchains(MavenExecutionRequest request, PersistedToolchains toolchains) Copies the values from the given toolchains into the specified execution request.
- 
Constructor Details- 
DefaultMavenExecutionRequestPopulator
 
- 
- 
Method Details- 
populateFromToolchainspublic MavenExecutionRequest populateFromToolchains(MavenExecutionRequest request, PersistedToolchains toolchains) throws MavenExecutionRequestPopulationException Description copied from interface:MavenExecutionRequestPopulatorCopies the values from the given toolchains into the specified execution request. This method will replace any existing values in the execution request that are controlled by the toolchains. Hence, it is expected that this method is called on a new/empty execution request before the caller mutates it to fit its needs.- Specified by:
- populateFromToolchainsin interface- MavenExecutionRequestPopulator
- Parameters:
- request- The execution request to populate, must not be- null.
- toolchains- The toolchains to copy into the execution request, may be- null.
- Returns:
- The populated execution request, never null.
- Throws:
- MavenExecutionRequestPopulationException- If the execution request could not be populated.
 
- 
populateDefaultspublic MavenExecutionRequest populateDefaults(MavenExecutionRequest request) throws MavenExecutionRequestPopulationException Description copied from interface:MavenExecutionRequestPopulatorInjects default values like plugin groups or repositories into the specified execution request.- Specified by:
- populateDefaultsin interface- MavenExecutionRequestPopulator
- Parameters:
- request- The execution request to populate, must not be- null.
- Returns:
- The populated execution request, never null.
- Throws:
- MavenExecutionRequestPopulationException- If the execution request could not be populated.
 
- 
populateFromSettings@Deprecated public MavenExecutionRequest populateFromSettings(MavenExecutionRequest request, Settings settings) throws MavenExecutionRequestPopulationException Deprecated.Description copied from interface:MavenExecutionRequestPopulatorCopies the values from the given settings into the specified execution request. This method will replace any existing values in the execution request that are controlled by the settings. Hence, it is expected that this method is called on a new/empty execution request before the caller mutates it to fit its needs.- Specified by:
- populateFromSettingsin interface- MavenExecutionRequestPopulator
- Parameters:
- request- The execution request to populate, must not be- null.
- settings- The settings to copy into the execution request, may be- null.
- Returns:
- The populated execution request, never null.
- Throws:
- MavenExecutionRequestPopulationException- If the execution request could not be populated.
 
 
-