Package org.apache.maven.project
Interface ProjectBuildingRequest
- All Known Implementing Classes:
DefaultProjectBuildingRequest
Deprecated.
ProjectBuildingRequest
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDeprecated.The possible merge modes for combining remote repositories. -
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 buildStartInstant) 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.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.
-
Method Details
-
setLocalRepository
Deprecated. -
getLocalRepository
ArtifactRepository getLocalRepository()Deprecated. -
setRemoteRepositories
Deprecated. -
getRemoteRepositories
List<ArtifactRepository> getRemoteRepositories()Deprecated. -
setPluginArtifactRepositories
ProjectBuildingRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories) Deprecated. -
getPluginArtifactRepositories
List<ArtifactRepository> getPluginArtifactRepositories()Deprecated. -
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.
-
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.
-
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=valueparameter on the command line.- Parameters:
userProperties- The user 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=valueparameter on the command line.- Returns:
- The user properties, never
null.
-
setProject
Deprecated. -
getProject
MavenProject getProject()Deprecated. -
setProcessPlugins
Deprecated. -
isProcessPlugins
boolean isProcessPlugins()Deprecated. -
setResolveDependencies
Deprecated. -
isResolveDependencies
boolean isResolveDependencies()Deprecated. -
setValidationLevel
Deprecated.Controls the level of validation to perform on processed models. By default, models are validated in strict mode.- Parameters:
validationLevel- The level of validation to perform on processed models, e.g.ModelBuildingRequest.VALIDATION_LEVEL_STRICT.- Returns:
- This configuration, never
null.
-
getValidationLevel
int getValidationLevel()Deprecated.Gets the level of validation to perform on processed models.- Returns:
- The level of validation to perform on processed models.
-
setActiveProfileIds
Deprecated.Set any active profiles that theProjectBuildershould consider while constructing aMavenProject. -
getActiveProfileIds
Deprecated. -
setInactiveProfileIds
Deprecated. -
getInactiveProfileIds
Deprecated. -
addProfile
Deprecated.Add 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.- Parameters:
profile-
-
setProfiles
Deprecated. -
getProfiles
Deprecated. -
getBuildStartTime
Deprecated.Gets the start time of the build.- Returns:
- The start time of the build or
nullif unknown.
-
setBuildStartTime
Deprecated.Sets the start time of the build.- Parameters:
buildStartTime- The start time of the build, may benull.
-
getBuildStartInstant
Instant getBuildStartInstant()Deprecated.Gets the start time of the build.- Returns:
- The start time of the build or
nullif unknown.
-
setBuildStartInstant
Deprecated.Sets the start time of the build.- Parameters:
buildStartInstant- The start time of the build, may benull.
-
getRepositorySession
org.eclipse.aether.RepositorySystemSession getRepositorySession()Deprecated. -
setRepositorySession
ProjectBuildingRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) Deprecated. -
setRepositoryMerging
Deprecated.Sets the merge mode used to combine repositories declared in the POM with the repositories specified in this request.- Parameters:
mode- The repository merge mode, must not benull.- Returns:
- This request for chaining, never
null. - See Also:
-
getRepositoryMerging
ProjectBuildingRequest.RepositoryMerging getRepositoryMerging()Deprecated.Gets the merge mode used to combine repositories declared in the POM with the repositories specified in this request- Returns:
- The merge mode, never
null.
-
isResolveVersionRanges
Deprecated.This got added when implementing MNG-2199 and is no longer used. Commit 6cf9320942c34bc68205425ab696b1712ace9ba4 updated the way 'MavenProject' objects are initialized.- Since:
- 3.2.2
-
setResolveVersionRanges
Deprecated.This got added when implementing MNG-2199 and is no longer used. Commit 6cf9320942c34bc68205425ab696b1712ace9ba4 updated the way 'MavenProject' objects are initialized.- Since:
- 3.2.2
-
org.apache.maven.api.services.ProjectBuilderinstead