public interface ModelBuildingRequest
| Modifier and Type | Field and Description | 
|---|---|
| static int | VALIDATION_LEVEL_MAVEN_2_0Denotes validation as performed by Maven 2.0. | 
| static int | VALIDATION_LEVEL_MAVEN_3_0Denotes validation as performed by Maven 3.0. | 
| static int | VALIDATION_LEVEL_MAVEN_3_1Denotes validation as performed by Maven 3.1. | 
| static int | VALIDATION_LEVEL_MINIMALDenotes minimal validation of POMs. | 
| static int | VALIDATION_LEVEL_STRICTDenotes strict validation as recommended by the current Maven version. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<String> | getActiveProfileIds()Gets the identifiers of those profiles that should be activated by explicit demand. | 
| Date | getBuildStartTime()Gets the start time of the build. | 
| List<String> | getInactiveProfileIds()Gets the identifiers of those profiles that should be deactivated by explicit demand. | 
| ModelBuildingListener | getModelBuildingListener()Gets the model building listener to notify during the build process. | 
| ModelCache | getModelCache()Gets the model cache to use for reuse of previously built models. | 
| ModelResolver | getModelResolver()Gets the model resolver to use for resolution of mixins or parents that are not locally reachable from the
 project directory. | 
| ModelSource | getModelSource()Gets the source of the POM to process. | 
| File | getPomFile()Gets the POM file of the project to build. | 
| List<Profile> | getProfiles()Gets the external profiles that should be considered for model building. | 
| Model | getRawModel()Gets the raw model to build. | 
| Properties | getSystemProperties()Gets the system properties to use for interpolation and profile activation. | 
| Properties | getUserProperties()Gets the user properties to use for interpolation and profile activation. | 
| int | getValidationLevel()Gets the level of validation to perform on processed models. | 
| WorkspaceModelResolver | getWorkspaceModelResolver() | 
| boolean | isLocationTracking()Indicates whether the model should track the line/column number of the model source from which it was parsed. | 
| boolean | isProcessPlugins()Indicates whether plugin executions and configurations should be processed. | 
| boolean | isTwoPhaseBuilding()Indicates whether the model building should happen in two phases. | 
| ModelBuildingRequest | setActiveProfileIds(List<String> activeProfileIds)Sets the identifiers of those profiles that should be activated by explicit demand. | 
| ModelBuildingRequest | setBuildStartTime(Date buildStartTime)Sets the start time of the build. | 
| ModelBuildingRequest | setInactiveProfileIds(List<String> inactiveProfileIds)Sets the identifiers of those profiles that should be deactivated by explicit demand. | 
| ModelBuildingRequest | setLocationTracking(boolean locationTracking)Enables/disables the tracking of line/column numbers for the model source being parsed. | 
| ModelBuildingRequest | setModelBuildingListener(ModelBuildingListener modelBuildingListener)Sets the model building listener to notify during the build process. | 
| ModelBuildingRequest | setModelCache(ModelCache modelCache)Sets the model cache to use for reuse of previously built models. | 
| ModelBuildingRequest | setModelResolver(ModelResolver modelResolver)Sets the model resolver to use for resolution of mixins or parents that are not locally reachable from the
 project directory. | 
| ModelBuildingRequest | setModelSource(ModelSource modelSource)Sets the source of the POM to process. | 
| ModelBuildingRequest | setPomFile(File pomFile)Sets the POM file of the project to build. | 
| ModelBuildingRequest | setProcessPlugins(boolean processPlugins)Controls the processing of plugin executions and configurations. | 
| ModelBuildingRequest | setProfiles(List<Profile> profiles)Sets the external profiles that should be considered for model building. | 
| ModelBuildingRequest | setRawModel(Model rawModel)Set raw model. | 
| ModelBuildingRequest | setSystemProperties(Properties systemProperties)Sets the system properties to use for interpolation and profile activation. | 
| ModelBuildingRequest | setTwoPhaseBuilding(boolean twoPhaseBuilding)Enables/disables two-phase building. | 
| ModelBuildingRequest | setUserProperties(Properties userProperties)Sets the user properties to use for interpolation and profile activation. | 
| ModelBuildingRequest | setValidationLevel(int validationLevel)Sets the level of validation to perform on processed models. | 
| ModelBuildingRequest | setWorkspaceModelResolver(WorkspaceModelResolver workspaceResolver) | 
static final int VALIDATION_LEVEL_MINIMAL
static final int VALIDATION_LEVEL_MAVEN_2_0
static final int VALIDATION_LEVEL_MAVEN_3_0
static final int VALIDATION_LEVEL_MAVEN_3_1
static final int VALIDATION_LEVEL_STRICT
Model getRawModel()
null if not set.ModelBuildingRequest setRawModel(Model rawModel)
rawModel - ModelSource getModelSource()
null if not set.ModelBuildingRequest setModelSource(ModelSource modelSource)
setModelSource(ModelSource) or
 setPomFile(File) must be set.modelSource - The source of the POM to process, may be null.null.File getPomFile()
null if not applicable (i.e. when processing a POM from the
         repository).ModelBuildingRequest setPomFile(File pomFile)
setModelSource(ModelSource) in combination with a
 FileModelSource instead.pomFile - The POM file of the project to build the effective model for, may be null to build the
            model of some POM from the repository.null.int getValidationLevel()
ModelBuildingRequest setValidationLevel(int validationLevel)
VALIDATION_LEVEL_STRICT should be used to ensure proper building. For the mere retrieval of dependencies
 during artifact resolution, VALIDATION_LEVEL_MINIMAL should be used to account for models of poor
 quality. By default, models are validated in strict mode.validationLevel - The level of validation to perform on processed models.null.boolean isProcessPlugins()
true if plugins should be processed, false otherwise.ModelBuildingRequest setProcessPlugins(boolean processPlugins)
processPlugins - true to enable plugin processing, false otherwise.null.boolean isTwoPhaseBuilding()
true if two-phase building is enabled, false if the model should be build in a single
         step.ModelBuildingRequest setTwoPhaseBuilding(boolean twoPhaseBuilding)
twoPhaseBuilding - true to enable two-phase building, false if the model should be build in
            a single step.null.boolean isLocationTracking()
true if location tracking is enabled, false otherwise.ModelBuildingRequest setLocationTracking(boolean locationTracking)
locationTracking - true to enable location tracking, false to disable it.null.List<Profile> getProfiles()
null.ModelBuildingRequest setProfiles(List<Profile> profiles)
profiles - The external profiles that should be considered for model building, may be null.null.List<String> getActiveProfileIds()
null.ModelBuildingRequest setActiveProfileIds(List<String> activeProfileIds)
activeProfileIds - The identifiers of those profiles to activate, may be null.null.List<String> getInactiveProfileIds()
null.ModelBuildingRequest setInactiveProfileIds(List<String> inactiveProfileIds)
inactiveProfileIds - The identifiers of those profiles to deactivate, may be null.null.Properties getSystemProperties()
System.getProperties() and environment variables.null.ModelBuildingRequest setSystemProperties(Properties systemProperties)
System.getProperties() and environment variables.systemProperties - The system properties, may be null.null.Properties getUserProperties()
-Dkey=value parameter on the command
 line.null.ModelBuildingRequest setUserProperties(Properties userProperties)
-Dkey=value parameter on the command
 line.userProperties - The user properties, may be null.null.Date getBuildStartTime()
null if unknown.ModelBuildingRequest setBuildStartTime(Date buildStartTime)
buildStartTime - The start time of the build, may be null.null.ModelResolver getModelResolver()
null if not set.ModelBuildingRequest setModelResolver(ModelResolver modelResolver)
modelResolver - The model resolver to use, never null.null.ModelBuildingListener getModelBuildingListener()
null if none.ModelBuildingRequest setModelBuildingListener(ModelBuildingListener modelBuildingListener)
modelBuildingListener - The model building listener to notify, may be null.null.ModelCache getModelCache()
null if not set.ModelBuildingRequest setModelCache(ModelCache modelCache)
modelCache - The model cache to use, may be null.null.WorkspaceModelResolver getWorkspaceModelResolver()
ModelBuildingRequest setWorkspaceModelResolver(WorkspaceModelResolver workspaceResolver)
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.