org.apache.maven.execution
Class DefaultMavenExecutionRequestPopulator

java.lang.Object
  extended by org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
All Implemented Interfaces:
MavenExecutionRequestPopulator

@Component(role=MavenExecutionRequestPopulator.class)
public class DefaultMavenExecutionRequestPopulator
extends Object
implements MavenExecutionRequestPopulator


Constructor Summary
DefaultMavenExecutionRequestPopulator()
           
 
Method Summary
 ArtifactRepository createLocalRepository(MavenExecutionRequest request)
           
 MavenExecutionRequest populateDefaults(MavenExecutionRequest request)
          Injects default values like plugin groups or repositories into the specified execution request.
 MavenExecutionRequest populateFromSettings(MavenExecutionRequest request, Settings settings)
          Copies the values from the given settings into the specified execution request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMavenExecutionRequestPopulator

public DefaultMavenExecutionRequestPopulator()
Method Detail

populateFromSettings

public MavenExecutionRequest populateFromSettings(MavenExecutionRequest request,
                                                  Settings settings)
                                           throws MavenExecutionRequestPopulationException
Description copied from interface: MavenExecutionRequestPopulator
Copies 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:
populateFromSettings in 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.

createLocalRepository

public ArtifactRepository createLocalRepository(MavenExecutionRequest request)
                                         throws MavenExecutionRequestPopulationException
Throws:
MavenExecutionRequestPopulationException

populateDefaults

public MavenExecutionRequest populateDefaults(MavenExecutionRequest request)
                                       throws MavenExecutionRequestPopulationException
Description copied from interface: MavenExecutionRequestPopulator
Injects default values like plugin groups or repositories into the specified execution request.

Specified by:
populateDefaults in 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.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.