Package org.apache.maven.project
Class DefaultProjectBuildingRequest
java.lang.Object
org.apache.maven.project.DefaultProjectBuildingRequest
- All Implemented Interfaces:
ProjectBuildingRequest
@Deprecated(since="4.0.0")
public class DefaultProjectBuildingRequest
extends Object
implements ProjectBuildingRequest
Deprecated.
DefaultProjectBuildingRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.project.ProjectBuildingRequest
ProjectBuildingRequest.RepositoryMerging -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProfile(Profile profile) Deprecated.Add aProfilethat has come from an external source.Deprecated.Deprecated.Gets the start time of the build.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Gets the merge mode used to combine repositories declared in the POM with the repositories specified in this requestorg.eclipse.aether.RepositorySystemSessionDeprecated.Deprecated.Gets the system properties to use for interpolation and profile activation.Deprecated.Gets the user properties to use for interpolation and profile activation.intDeprecated.Gets the level of validation to perform on processed models.booleanDeprecated.booleanDeprecated.booleanDeprecated.This got added when implementing MNG-2199 and is no longer used.voidsetActiveProfileIds(List<String> activeProfileIds) Deprecated.Set any active profiles that theProjectBuildershould consider while constructing aMavenProject.voidsetBuildStartInstant(Instant buildStartTime) Deprecated.Sets the start time of the build.voidsetBuildStartTime(Date buildStartTime) Deprecated.voidsetInactiveProfileIds(List<String> inactiveProfileIds) Deprecated.setLocalRepository(ArtifactRepository localRepository) Deprecated.setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories) Deprecated.setProcessPlugins(boolean processPlugins) Deprecated.voidsetProfiles(List<Profile> profiles) Deprecated.voidsetProject(MavenProject mavenProject) Deprecated.setRemoteRepositories(List<ArtifactRepository> remoteRepositories) Deprecated.setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging repositoryMerging) Deprecated.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) Deprecated.setResolveDependencies(boolean resolveDependencies) Deprecated.setResolveVersionRanges(boolean value) Deprecated.This got added when implementing MNG-2199 and is no longer used.setSystemProperties(Properties systemProperties) Deprecated.Sets the system properties to use for interpolation and profile activation.setUserProperties(Properties userProperties) Deprecated.Sets the user properties to use for interpolation and profile activation.setValidationLevel(int validationLevel) Deprecated.Controls the level of validation to perform on processed models.
-
Constructor Details
-
DefaultProjectBuildingRequest
public DefaultProjectBuildingRequest()Deprecated. -
DefaultProjectBuildingRequest
Deprecated.
-
-
Method Details
-
getProject
Deprecated.- Specified by:
getProjectin interfaceProjectBuildingRequest
-
setProject
Deprecated.- Specified by:
setProjectin interfaceProjectBuildingRequest
-
setLocalRepository
Deprecated.- Specified by:
setLocalRepositoryin interfaceProjectBuildingRequest
-
getLocalRepository
Deprecated.- Specified by:
getLocalRepositoryin interfaceProjectBuildingRequest
-
getRemoteRepositories
Deprecated.- Specified by:
getRemoteRepositoriesin interfaceProjectBuildingRequest
-
setRemoteRepositories
Deprecated.- Specified by:
setRemoteRepositoriesin interfaceProjectBuildingRequest
-
getPluginArtifactRepositories
Deprecated.- Specified by:
getPluginArtifactRepositoriesin interfaceProjectBuildingRequest
-
setPluginArtifactRepositories
public ProjectBuildingRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories) Deprecated.- Specified by:
setPluginArtifactRepositoriesin interfaceProjectBuildingRequest
-
getSystemProperties
Deprecated.Description 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 interfaceProjectBuildingRequest- Returns:
- The system properties, never
null.
-
setSystemProperties
Deprecated.Description 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 interfaceProjectBuildingRequest- Parameters:
systemProperties- The system properties, may benull.- Returns:
- This request, never
null.
-
getUserProperties
Deprecated.Description 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 interfaceProjectBuildingRequest- Returns:
- The user properties, never
null.
-
setUserProperties
Deprecated.Description 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 interfaceProjectBuildingRequest- Parameters:
userProperties- The user properties, may benull.- Returns:
- This request, never
null.
-
isProcessPlugins
public boolean isProcessPlugins()Deprecated.- Specified by:
isProcessPluginsin interfaceProjectBuildingRequest
-
setProcessPlugins
Deprecated.- Specified by:
setProcessPluginsin interfaceProjectBuildingRequest
-
setResolveDependencies
Deprecated.- Specified by:
setResolveDependenciesin interfaceProjectBuildingRequest
-
isResolveDependencies
public boolean isResolveDependencies()Deprecated.- Specified by:
isResolveDependenciesin interfaceProjectBuildingRequest
-
setResolveVersionRanges
Deprecated.This got added when implementing MNG-2199 and is no longer used. Commit 6cf9320942c34bc68205425ab696b1712ace9ba4 updated the way 'MavenProject' objects are initialized.- Specified by:
setResolveVersionRangesin interfaceProjectBuildingRequest- Since:
- 3.2.2
-
isResolveVersionRanges
Deprecated.This got added when implementing MNG-2199 and is no longer used. Commit 6cf9320942c34bc68205425ab696b1712ace9ba4 updated the way 'MavenProject' objects are initialized.- Specified by:
isResolveVersionRangesin interfaceProjectBuildingRequest- Since:
- 3.2.2
-
setValidationLevel
Deprecated.Description copied from interface:ProjectBuildingRequestControls the level of validation to perform on processed models. By default, models are validated in strict mode.- Specified by:
setValidationLevelin interfaceProjectBuildingRequest- Parameters:
validationLevel- The level of validation to perform on processed models, e.g.ModelBuildingRequest.VALIDATION_LEVEL_STRICT.- Returns:
- This configuration, never
null.
-
getValidationLevel
public int getValidationLevel()Deprecated.Description copied from interface:ProjectBuildingRequestGets the level of validation to perform on processed models.- Specified by:
getValidationLevelin interfaceProjectBuildingRequest- Returns:
- The level of validation to perform on processed models.
-
getActiveProfileIds
Deprecated.- Specified by:
getActiveProfileIdsin interfaceProjectBuildingRequest
-
setActiveProfileIds
Deprecated.Description copied from interface:ProjectBuildingRequestSet any active profiles that theProjectBuildershould consider while constructing aMavenProject.- Specified by:
setActiveProfileIdsin interfaceProjectBuildingRequest
-
getInactiveProfileIds
Deprecated.- Specified by:
getInactiveProfileIdsin interfaceProjectBuildingRequest
-
setInactiveProfileIds
Deprecated.- Specified by:
setInactiveProfileIdsin interfaceProjectBuildingRequest
-
setProfiles
Deprecated.- Specified by:
setProfilesin interfaceProjectBuildingRequest
-
addProfile
Deprecated.Description 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 interfaceProjectBuildingRequest- Parameters:
profile-
-
getProfiles
Deprecated.- Specified by:
getProfilesin interfaceProjectBuildingRequest
-
getBuildStartTime
Deprecated.Description copied from interface:ProjectBuildingRequestGets the start time of the build.- Specified by:
getBuildStartTimein interfaceProjectBuildingRequest- Returns:
- The start time of the build or
nullif unknown.
-
setBuildStartTime
Deprecated.Description copied from interface:ProjectBuildingRequestSets the start time of the build.- Specified by:
setBuildStartTimein interfaceProjectBuildingRequest- Parameters:
buildStartTime- The start time of the build, may benull.
-
getBuildStartInstant
Deprecated.Description copied from interface:ProjectBuildingRequestGets the start time of the build.- Specified by:
getBuildStartInstantin interfaceProjectBuildingRequest- Returns:
- The start time of the build or
nullif unknown.
-
setBuildStartInstant
Deprecated.Description copied from interface:ProjectBuildingRequestSets the start time of the build.- Specified by:
setBuildStartInstantin interfaceProjectBuildingRequest- Parameters:
buildStartTime- The start time of the build, may benull.
-
getRepositorySession
public org.eclipse.aether.RepositorySystemSession getRepositorySession()Deprecated.- Specified by:
getRepositorySessionin interfaceProjectBuildingRequest
-
setRepositorySession
public DefaultProjectBuildingRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) Deprecated.- Specified by:
setRepositorySessionin interfaceProjectBuildingRequest
-
setRepositoryMerging
public DefaultProjectBuildingRequest setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging repositoryMerging) Deprecated.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 interfaceProjectBuildingRequest- Parameters:
repositoryMerging- The repository merge mode, must not benull.- Returns:
- This request for chaining, never
null. - See Also:
-
getRepositoryMerging
Deprecated.Description 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 interfaceProjectBuildingRequest- Returns:
- The merge mode, never
null.
-
org.apache.maven.api.services.ProjectBuilderinstead