Package org.apache.maven.model.building
Interface ModelBuildingRequest
- All Known Implementing Classes:
DefaultModelBuildingRequest
Deprecated.
Collects settings that control the building of effective models.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.Denotes validation as performed by Maven 2.0.static final int
Deprecated.Denotes validation as performed by Maven 3.0.static final int
Deprecated.Denotes validation as performed by Maven 3.1.static final int
Deprecated.Denotes validation as performed by Maven 4.0.static final int
Deprecated.Denotes minimal validation of POMs.static final int
Deprecated.Denotes strict validation as recommended by the current Maven version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the identifiers of those profiles that should be activated by explicit demand.Deprecated.Gets the start time of the build.Deprecated.Gets the file model to build (with profile activation).Deprecated.Gets the identifiers of those profiles that should be deactivated by explicit demand.Deprecated.Gets the model building listener to notify during the build process.Deprecated.Gets the model cache to use for reuse of previously built models.Deprecated.Gets the model resolver to use for resolution of mixins or parents that are not locally reachable from the project directory.Deprecated.Gets the source of the POM to process.Deprecated.UsegetPomPath()
instead.Deprecated.Gets the POM file of the project to build.Deprecated.Gets the external profiles that should be considered for model building.Deprecated.rawModel is never set, instead the fileModel is setDeprecated.Deprecated.Gets the system properties to use for interpolation and profile activation.Deprecated.Deprecated.Gets the user properties to use for interpolation and profile activation.int
Deprecated.Gets the level of validation to perform on processed models.Deprecated.boolean
Deprecated.Indicates whether the model should track the line/column number of the model source from which it was parsed.boolean
Deprecated.Indicates whether plugin executions and configurations should be processed.boolean
Deprecated.Indicates whether the model building should happen in two phases.setActiveProfileIds
(List<String> activeProfileIds) Deprecated.Sets the identifiers of those profiles that should be activated by explicit demand.setBuildStartTime
(Date buildStartTime) Deprecated.Sets the start time of the build.setFileModel
(Model fileModel) Deprecated.Set the file model with profile activationsetInactiveProfileIds
(List<String> inactiveProfileIds) Deprecated.Sets the identifiers of those profiles that should be deactivated by explicit demand.setLocationTracking
(boolean locationTracking) Deprecated.Enables/disables the tracking of line/column numbers for the model source being parsed.setModelBuildingListener
(ModelBuildingListener modelBuildingListener) Deprecated.Sets the model building listener to notify during the build process.setModelCache
(ModelCache modelCache) Deprecated.Sets the model cache to use for reuse of previously built models.setModelResolver
(ModelResolver modelResolver) Deprecated.Sets the model resolver to use for resolution of mixins or parents that are not locally reachable from the project directory.setModelSource
(ModelSource modelSource) Deprecated.Sets the source of the POM to process.setPomFile
(File pomFile) Deprecated.UsesetPomPath(Path)
instead.setPomPath
(Path pomPath) Deprecated.Sets the POM file of the project to build.setProcessPlugins
(boolean processPlugins) Deprecated.Controls the processing of plugin executions and configurations.setProfiles
(List<Profile> profiles) Deprecated.Sets the external profiles that should be considered for model building.setRawModel
(Model rawModel) Deprecated.setting the rawModel has no effect, instead the fileModel of phase one will be setsetRootDirectory
(Path rootDirectory) Deprecated.setSystemProperties
(Properties systemProperties) Deprecated.Sets the system properties to use for interpolation and profile activation.setTransformerContextBuilder
(TransformerContextBuilder contextBuilder) Deprecated.setTwoPhaseBuilding
(boolean twoPhaseBuilding) Deprecated.Enables/disables two-phase building.setUserProperties
(Properties userProperties) Deprecated.Sets the user properties to use for interpolation and profile activation.setValidationLevel
(int validationLevel) Deprecated.Sets the level of validation to perform on processed models.setWorkspaceModelResolver
(WorkspaceModelResolver workspaceResolver) Deprecated.
-
Field Details
-
VALIDATION_LEVEL_MINIMAL
static final int VALIDATION_LEVEL_MINIMALDeprecated.Denotes minimal validation of POMs. This validation level is meant for processing of POMs from repositories during metadata retrieval.- See Also:
-
VALIDATION_LEVEL_MAVEN_2_0
static final int VALIDATION_LEVEL_MAVEN_2_0Deprecated.Denotes validation as performed by Maven 2.0. This validation level is meant as a compatibility mode to allow users to migrate their projects.- See Also:
-
VALIDATION_LEVEL_MAVEN_3_0
static final int VALIDATION_LEVEL_MAVEN_3_0Deprecated.Denotes validation as performed by Maven 3.0. This validation level is meant for existing projects.- See Also:
-
VALIDATION_LEVEL_MAVEN_3_1
static final int VALIDATION_LEVEL_MAVEN_3_1Deprecated.Denotes validation as performed by Maven 3.1. This validation level is meant for existing projects.- See Also:
-
VALIDATION_LEVEL_MAVEN_4_0
static final int VALIDATION_LEVEL_MAVEN_4_0Deprecated.Denotes validation as performed by Maven 4.0. This validation level is meant for new projects.- See Also:
-
VALIDATION_LEVEL_STRICT
static final int VALIDATION_LEVEL_STRICTDeprecated.Denotes strict validation as recommended by the current Maven version.- See Also:
-
-
Method Details
-
getFileModel
Model getFileModel()Deprecated.Gets the file model to build (with profile activation). If not set, model source will be used to load file model.- Returns:
- The file model to build or
null
if not set. - Since:
- 4.0.0
-
setFileModel
Deprecated.Set the file model with profile activation- Parameters:
fileModel
-- Returns:
- This request, never
null
. - Since:
- 4.0.0
-
getRawModel
Deprecated.rawModel is never set, instead the fileModel is set -
setRawModel
Deprecated.setting the rawModel has no effect, instead the fileModel of phase one will be set -
getModelSource
ModelSource getModelSource()Deprecated.Gets the source of the POM to process.- Returns:
- The source of the POM or
null
if not set.
-
setModelSource
Deprecated.Sets the source of the POM to process. Eventually, eithersetModelSource(ModelSource)
orsetPomPath(Path)
must be set.- Parameters:
modelSource
- The source of the POM to process, may benull
.- Returns:
- This request, never
null
.
-
getPomFile
Deprecated.UsegetPomPath()
instead.Gets the POM file of the project to build.- Returns:
- The POM file of the project or
null
if not applicable (i.e. when processing a POM from the repository).
-
getPomPath
Path getPomPath()Deprecated.Gets the POM file of the project to build.- Returns:
- The POM file of the project or
null
if not applicable (i.e. when processing a POM from the repository). - Since:
- 4.0.0
-
setPomFile
Deprecated.UsesetPomPath(Path)
instead.Sets the POM file of the project to build. Note that providing the path to a POM file via this method will make the model builder operate in project mode. This mode is meant for effective models that are employed during the build process of a local project. Hence the effective model will support the notion of a project directory. To build the model for a POM from the repository, usesetModelSource(ModelSource)
in combination with aFileModelSource
instead.- Parameters:
pomFile
- The POM file of the project to build the effective model for, may benull
to build the model of some POM from the repository.- Returns:
- This request, never
null
.
-
setPomPath
Deprecated.Sets the POM file of the project to build. Note that providing the path to a POM file via this method will make the model builder operate in project mode. This mode is meant for effective models that are employed during the build process of a local project. Hence the effective model will support the notion of a project directory. To build the model for a POM from the repository, usesetModelSource(ModelSource)
in combination with aFileModelSource
instead.- Parameters:
pomPath
- The POM file of the project to build the effective model for, may benull
to build the model of some POM from the repository.- Returns:
- This request, never
null
. - Since:
- 4.0.0
-
getValidationLevel
int getValidationLevel()Deprecated.Gets the level of validation to perform on processed models.- Returns:
- The level of validation to perform on processed models.
-
setValidationLevel
Deprecated.Sets the level of validation to perform on processed models. For building of projects,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.- Parameters:
validationLevel
- The level of validation to perform on processed models.- Returns:
- This request, never
null
.
-
isProcessPlugins
boolean isProcessPlugins()Deprecated.Indicates whether plugin executions and configurations should be processed. If enabled, lifecycle-induced plugin executions will be injected into the model and common plugin configuration will be propagated to individual executions.- Returns:
true
if plugins should be processed,false
otherwise.
-
setProcessPlugins
Deprecated.Controls the processing of plugin executions and configurations.- Parameters:
processPlugins
-true
to enable plugin processing,false
otherwise.- Returns:
- This request, never
null
.
-
isTwoPhaseBuilding
boolean isTwoPhaseBuilding()Deprecated.Indicates whether the model building should happen in two phases. If enabled, the initial invocation of the model builder will only produce an interim result which may be used to analyze inter-model dependencies before the final invocation of the model builder is performed.- Returns:
true
if two-phase building is enabled,false
if the model should be build in a single step.
-
setTwoPhaseBuilding
Deprecated.Enables/disables two-phase building. If enabled, the initial invocation of the model builder will only produce an interim result which may be used to analyze inter-model dependencies before the final invocation of the model builder is performed.- Parameters:
twoPhaseBuilding
-true
to enable two-phase building,false
if the model should be build in a single step.- Returns:
- This request, never
null
.
-
isLocationTracking
boolean isLocationTracking()Deprecated.Indicates whether the model should track the line/column number of the model source from which it was parsed.- Returns:
true
if location tracking is enabled,false
otherwise.
-
setLocationTracking
Deprecated.Enables/disables the tracking of line/column numbers for the model source being parsed. By default, input locations are not tracked.- Parameters:
locationTracking
-true
to enable location tracking,false
to disable it.- Returns:
- This request, never
null
.
-
getProfiles
Deprecated.Gets the external profiles that should be considered for model building.- Returns:
- The external profiles that should be considered for model building, never
null
.
-
setProfiles
Deprecated.Sets the external profiles that should be considered for model building.- Parameters:
profiles
- The external profiles that should be considered for model building, may benull
.- Returns:
- This request, never
null
.
-
getActiveProfileIds
Deprecated.Gets the identifiers of those profiles that should be activated by explicit demand.- Returns:
- The identifiers of those profiles to activate, never
null
.
-
setActiveProfileIds
Deprecated.Sets the identifiers of those profiles that should be activated by explicit demand.- Parameters:
activeProfileIds
- The identifiers of those profiles to activate, may benull
.- Returns:
- This request, never
null
.
-
getInactiveProfileIds
Deprecated.Gets the identifiers of those profiles that should be deactivated by explicit demand.- Returns:
- The identifiers of those profiles to deactivate, never
null
.
-
setInactiveProfileIds
Deprecated.Sets the identifiers of those profiles that should be deactivated by explicit demand.- Parameters:
inactiveProfileIds
- The identifiers of those profiles to deactivate, may benull
.- Returns:
- This request, never
null
.
-
getSystemProperties
Properties getSystemProperties()Deprecated.Gets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()
and environment variables.- Returns:
- The system properties, never
null
.
-
setSystemProperties
Deprecated.Sets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()
and environment variables.- Parameters:
systemProperties
- The system properties, may benull
.- Returns:
- This request, never
null
.
-
getUserProperties
Properties getUserProperties()Deprecated.Gets the user properties to use for interpolation and profile activation. The user properties have been configured directly by the user on his discretion, e.g. via the-Dkey=value
parameter on the command line.- Returns:
- The user properties, never
null
.
-
setUserProperties
Deprecated.Sets the user properties to use for interpolation and profile activation. The user properties have been configured directly by the user on his discretion, e.g. via the-Dkey=value
parameter on the command line.- Parameters:
userProperties
- The user properties, may benull
.- Returns:
- This request, never
null
.
-
getBuildStartTime
Date getBuildStartTime()Deprecated.Gets the start time of the build.- Returns:
- The start time of the build or
null
if unknown.
-
setBuildStartTime
Deprecated.Sets the start time of the build.- Parameters:
buildStartTime
- The start time of the build, may benull
.- Returns:
- This request, never
null
.
-
getModelResolver
ModelResolver getModelResolver()Deprecated.Gets the model resolver to use for resolution of mixins or parents that are not locally reachable from the project directory.- Returns:
- The model resolver or
null
if not set.
-
setModelResolver
Deprecated.Sets the model resolver to use for resolution of mixins or parents that are not locally reachable from the project directory.- Parameters:
modelResolver
- The model resolver to use, nevernull
.- Returns:
- This request, never
null
.
-
getModelBuildingListener
ModelBuildingListener getModelBuildingListener()Deprecated.Gets the model building listener to notify during the build process.- Returns:
- The model building listener to notify or
null
if none.
-
setModelBuildingListener
Deprecated.Sets the model building listener to notify during the build process.- Parameters:
modelBuildingListener
- The model building listener to notify, may benull
.- Returns:
- This request, never
null
.
-
getModelCache
ModelCache getModelCache()Deprecated.Gets the model cache to use for reuse of previously built models.- Returns:
- The model cache or
null
if not set.
-
setModelCache
Deprecated.Sets the model cache to use for reuse of previously built models. This is an optional component that serves performance optimizations.- Parameters:
modelCache
- The model cache to use, may benull
.- Returns:
- This request, never
null
.
-
getWorkspaceModelResolver
WorkspaceModelResolver getWorkspaceModelResolver()Deprecated. -
setWorkspaceModelResolver
Deprecated. -
getTransformerContextBuilder
TransformerContextBuilder getTransformerContextBuilder()Deprecated. -
setTransformerContextBuilder
Deprecated. -
getRootDirectory
Path getRootDirectory()Deprecated. -
setRootDirectory
Deprecated.
-
ModelBuilder
instead