Package org.apache.maven.project
Class DefaultProjectBuildingRequest
java.lang.Object
org.apache.maven.project.DefaultProjectBuildingRequest
- All Implemented Interfaces:
- ProjectBuildingRequest
DefaultProjectBuildingRequest
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.maven.project.ProjectBuildingRequestProjectBuildingRequest.RepositoryMerging
- 
Constructor SummaryConstructorsConstructorDescription
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddProfile(Profile profile) Add aProfilethat has come from an external source.Gets the start time of the build.Gets the merge mode used to combine repositories declared in the POM with the repositories specified in this requestorg.eclipse.aether.RepositorySystemSessionGets the system properties to use for interpolation and profile activation.Gets the user properties to use for interpolation and profile activation.intGets the level of validation to perform on processed models.booleanbooleanbooleanDeprecated.This got added when implementing MNG-2199 and is no longer used.voidsetActiveProfileIds(List<String> activeProfileIds) Set any active profiles that theProjectBuildershould consider while constructing aMavenProject.voidsetBuildStartTime(Date buildStartTime) Sets the start time of the build.voidsetInactiveProfileIds(List<String> inactiveProfileIds) setLocalRepository(ArtifactRepository localRepository) setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories) setProcessPlugins(boolean processPlugins) voidsetProfiles(List<Profile> profiles) voidsetProject(MavenProject mavenProject) setRemoteRepositories(List<ArtifactRepository> remoteRepositories) setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging repositoryMerging) Sets the merge mode used to combine repositories declared in the POM with the repositories specified in this request.setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) setResolveDependencies(boolean resolveDependencies) setResolveVersionRanges(boolean value) Deprecated.This got added when implementing MNG-2199 and is no longer used.setSystemProperties(Properties systemProperties) Sets the system properties to use for interpolation and profile activation.setUserProperties(Properties userProperties) Sets the user properties to use for interpolation and profile activation.setValidationLevel(int validationLevel) Controls the level of validation to perform on processed models.
- 
Constructor Details- 
DefaultProjectBuildingRequestpublic DefaultProjectBuildingRequest()
- 
DefaultProjectBuildingRequest
 
- 
- 
Method Details- 
getProject- Specified by:
- getProjectin interface- ProjectBuildingRequest
 
- 
setProject- Specified by:
- setProjectin interface- ProjectBuildingRequest
 
- 
setLocalRepository- Specified by:
- setLocalRepositoryin interface- ProjectBuildingRequest
 
- 
getLocalRepository- Specified by:
- getLocalRepositoryin interface- ProjectBuildingRequest
 
- 
getRemoteRepositories- Specified by:
- getRemoteRepositoriesin interface- ProjectBuildingRequest
 
- 
setRemoteRepositories- Specified by:
- setRemoteRepositoriesin interface- ProjectBuildingRequest
 
- 
getPluginArtifactRepositories- Specified by:
- getPluginArtifactRepositoriesin interface- ProjectBuildingRequest
 
- 
setPluginArtifactRepositoriespublic ProjectBuildingRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories) - Specified by:
- setPluginArtifactRepositoriesin interface- ProjectBuildingRequest
 
- 
getSystemPropertiesDescription copied from interface:ProjectBuildingRequestGets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()and environment variables.- Specified by:
- getSystemPropertiesin interface- ProjectBuildingRequest
- Returns:
- The system properties, never null.
 
- 
setSystemPropertiesDescription copied from interface:ProjectBuildingRequestSets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()and environment variables.- Specified by:
- setSystemPropertiesin interface- ProjectBuildingRequest
- Parameters:
- systemProperties- The system properties, may be- null.
- Returns:
- This request, never null.
 
- 
getUserPropertiesDescription copied from interface:ProjectBuildingRequestGets 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=valueparameter on the command line.- Specified by:
- getUserPropertiesin interface- ProjectBuildingRequest
- Returns:
- The user properties, never null.
 
- 
setUserPropertiesDescription copied from interface:ProjectBuildingRequestSets 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=valueparameter on the command line.- Specified by:
- setUserPropertiesin interface- ProjectBuildingRequest
- Parameters:
- userProperties- The user properties, may be- null.
- Returns:
- This request, never null.
 
- 
isProcessPluginspublic boolean isProcessPlugins()- Specified by:
- isProcessPluginsin interface- ProjectBuildingRequest
 
- 
setProcessPlugins- Specified by:
- setProcessPluginsin interface- ProjectBuildingRequest
 
- 
setResolveDependencies- Specified by:
- setResolveDependenciesin interface- ProjectBuildingRequest
 
- 
isResolveDependenciespublic boolean isResolveDependencies()- Specified by:
- isResolveDependenciesin interface- ProjectBuildingRequest
 
- 
setResolveVersionRangesDeprecated.This got added when implementing MNG-2199 and is no longer used. Commit 6cf9320942c34bc68205425ab696b1712ace9ba4 updated the way 'MavenProject' objects are initialized.- Specified by:
- setResolveVersionRangesin interface- ProjectBuildingRequest
- Since:
- 3.2.2
 
- 
isResolveVersionRangesDeprecated.This got added when implementing MNG-2199 and is no longer used. Commit 6cf9320942c34bc68205425ab696b1712ace9ba4 updated the way 'MavenProject' objects are initialized.- Specified by:
- isResolveVersionRangesin interface- ProjectBuildingRequest
- Since:
- 3.2.2
 
- 
setValidationLevelDescription copied from interface:ProjectBuildingRequestControls the level of validation to perform on processed models. By default, models are validated in strict mode.- Specified by:
- setValidationLevelin interface- ProjectBuildingRequest
- Parameters:
- validationLevel- The level of validation to perform on processed models, e.g.- ModelBuildingRequest.VALIDATION_LEVEL_STRICT.
- Returns:
- This configuration, never null.
 
- 
getValidationLevelpublic int getValidationLevel()Description copied from interface:ProjectBuildingRequestGets the level of validation to perform on processed models.- Specified by:
- getValidationLevelin interface- ProjectBuildingRequest
- Returns:
- The level of validation to perform on processed models.
 
- 
getActiveProfileIds- Specified by:
- getActiveProfileIdsin interface- ProjectBuildingRequest
 
- 
setActiveProfileIdsDescription copied from interface:ProjectBuildingRequestSet any active profiles that theProjectBuildershould consider while constructing aMavenProject.- Specified by:
- setActiveProfileIdsin interface- ProjectBuildingRequest
 
- 
getInactiveProfileIds- Specified by:
- getInactiveProfileIdsin interface- ProjectBuildingRequest
 
- 
setInactiveProfileIds- Specified by:
- setInactiveProfileIdsin interface- ProjectBuildingRequest
 
- 
setProfiles- Specified by:
- setProfilesin interface- ProjectBuildingRequest
 
- 
addProfileDescription copied from interface:ProjectBuildingRequestAdd aProfilethat has come from an external source. This may be from a custom configuration like the MavenCLI settings.xml file, or from a custom dialog in an IDE integration like M2Eclipse.- Specified by:
- addProfilein interface- ProjectBuildingRequest
- Parameters:
- profile-
 
- 
getProfiles- Specified by:
- getProfilesin interface- ProjectBuildingRequest
 
- 
getBuildStartTimeDescription copied from interface:ProjectBuildingRequestGets the start time of the build.- Specified by:
- getBuildStartTimein interface- ProjectBuildingRequest
- Returns:
- The start time of the build or nullif unknown.
 
- 
setBuildStartTimeDescription copied from interface:ProjectBuildingRequestSets the start time of the build.- Specified by:
- setBuildStartTimein interface- ProjectBuildingRequest
- Parameters:
- buildStartTime- The start time of the build, may be- null.
 
- 
getRepositorySessionpublic org.eclipse.aether.RepositorySystemSession getRepositorySession()- Specified by:
- getRepositorySessionin interface- ProjectBuildingRequest
 
- 
setRepositorySessionpublic DefaultProjectBuildingRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) - Specified by:
- setRepositorySessionin interface- ProjectBuildingRequest
 
- 
setRepositoryMergingpublic DefaultProjectBuildingRequest setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging repositoryMerging) Description copied from interface:ProjectBuildingRequestSets the merge mode used to combine repositories declared in the POM with the repositories specified in this request.- Specified by:
- setRepositoryMergingin interface- ProjectBuildingRequest
- Parameters:
- repositoryMerging- The repository merge mode, must not be- null.
- Returns:
- This request for chaining, never null.
- See Also:
 
- 
getRepositoryMergingDescription copied from interface:ProjectBuildingRequestGets the merge mode used to combine repositories declared in the POM with the repositories specified in this request- Specified by:
- getRepositoryMergingin interface- ProjectBuildingRequest
- Returns:
- The merge mode, never null.
 
 
-