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 Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Denotes validation as performed by Maven 2.0.static final int
Denotes validation as performed by Maven 3.0.static final int
Denotes validation as performed by Maven 3.1.static final int
Denotes validation as performed by Maven 4.0.static final int
Denotes minimal validation of POMs.static final int
Denotes strict validation as recommended by the current Maven version. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelBuilderRequest
build
(ModelBuilderRequest request, ModelSource source) static ModelBuilderRequest
static ModelBuilderRequest
build
(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.int
boolean
boolean
Specifies whether plugin processing should take place for the built model.boolean
Indicates if the model to be built is a local project or a dependency.boolean
-
Field Details
-
VALIDATION_LEVEL_MINIMAL
static 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_0
static 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_0
static 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_1
static 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_0
static 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_STRICT
static final int VALIDATION_LEVEL_STRICTDenotes strict validation as recommended by the current Maven version.- See Also:
-
-
Method Details
-
getSession
-
getSource
-
getValidationLevel
int getValidationLevel() -
isTwoPhaseBuilding
boolean isTwoPhaseBuilding() -
isLocationTracking
boolean isLocationTracking() -
isProjectBuild
boolean 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. -
isProcessPlugins
boolean 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
. -
getProfiles
Defines external profiles that may be activated for the given model. Those are external profiles usually defined inSettings.getProfiles()
. -
getActiveProfileIds
List of profile ids that have been explicitly activated by the user. -
getInactiveProfileIds
List of profile ids that have been explicitly deactivated by the user. -
getSystemProperties
Provides a map of system properties. -
getUserProperties
Provides 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
-