Package org.apache.maven.api.services
Interface ModelBuilderRequest
Request used to build a 
Project using
 the ProjectBuilder service.
 TODO: replace ModelRepositoryHolder with just the enum for the strategy
 TODO: replace validation level with an enum (though, we usually need just a boolean)- Since:
- 4.0.0
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intDenotes validation as performed by Maven 2.0.static final intDenotes validation as performed by Maven 3.0.static final intDenotes validation as performed by Maven 3.1.static final intDenotes validation as performed by Maven 4.0.static final intDenotes minimal validation of POMs.static final intDenotes strict validation as recommended by the current Maven version.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ModelBuilderRequestbuild(ModelBuilderRequest request, ModelSource source) static ModelBuilderRequeststatic ModelBuilderRequestbuild(Session session, ModelSource source) builder()builder(ModelBuilderRequest request) List of profile ids that have been explicitly activated by the user.List of profile ids that have been explicitly deactivated by the user.Defines external profiles that may be activated for the given model.Provides a map of system properties.Provides a map of user properties.intbooleanbooleanSpecifies whether plugin processing should take place for the built model.booleanIndicates if the model to be built is a local project or a dependency.boolean
- 
Field Details- 
VALIDATION_LEVEL_MINIMALstatic final int VALIDATION_LEVEL_MINIMALDenotes minimal validation of POMs. This validation level is meant for processing of POMs from repositories during metadata retrieval.- See Also:
 
- 
VALIDATION_LEVEL_MAVEN_2_0static final int VALIDATION_LEVEL_MAVEN_2_0Denotes 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_0static final int VALIDATION_LEVEL_MAVEN_3_0Denotes validation as performed by Maven 3.0. This validation level is meant for existing projects.- See Also:
 
- 
VALIDATION_LEVEL_MAVEN_3_1static final int VALIDATION_LEVEL_MAVEN_3_1Denotes validation as performed by Maven 3.1. This validation level is meant for existing projects.- See Also:
 
- 
VALIDATION_LEVEL_MAVEN_4_0static final int VALIDATION_LEVEL_MAVEN_4_0Denotes validation as performed by Maven 4.0. This validation level is meant for new projects.- See Also:
 
- 
VALIDATION_LEVEL_STRICTstatic final int VALIDATION_LEVEL_STRICTDenotes strict validation as recommended by the current Maven version.- See Also:
 
 
- 
- 
Method Details- 
getSession
- 
getSource
- 
getValidationLevelint getValidationLevel()
- 
isTwoPhaseBuildingboolean isTwoPhaseBuilding()
- 
isLocationTrackingboolean isLocationTracking()
- 
isProjectBuildboolean isProjectBuild()Indicates if the model to be built is a local project or a dependency. In case the project is loaded externally from a remote repository (as a dependency or even as an external parent), the POM will be parsed in a lenient way. Local POMs are parsed more strictly.
- 
isProcessPluginsboolean isProcessPlugins()Specifies whether plugin processing should take place for the built model. This involves merging plugins specified by thePackaging, configuration expansion (merging configuration defined globally for a given plugin usingConfigurationContainer.getConfiguration()into the configuration for eachPluginExecution.
- 
getProfilesDefines external profiles that may be activated for the given model. Those are external profiles usually defined inSettings.getProfiles().
- 
getActiveProfileIdsList of profile ids that have been explicitly activated by the user.
- 
getInactiveProfileIdsList of profile ids that have been explicitly deactivated by the user.
- 
getSystemPropertiesProvides a map of system properties.
- 
getUserPropertiesProvides a map of user properties. User properties
- 
getModelResolver
- 
getModelRepositoryHolder
- 
getModelCache
- 
getListener
- 
getInterimResult
- 
getTransformerContextBuilder
- 
build@Nonnull static ModelBuilderRequest build(@Nonnull ModelBuilderRequest request, @Nonnull ModelSource source) 
- 
build
- 
build
- 
builder
- 
builder
 
-