public interface ProjectBuildingRequest
Modifier and Type | Interface and Description |
---|---|
static class |
ProjectBuildingRequest.RepositoryMerging
The possible merge modes for combining remote repositories.
|
Modifier and Type | Method and Description |
---|---|
void |
addProfile(Profile profile)
Add a
Profile that has come from an external source. |
List<String> |
getActiveProfileIds() |
Date |
getBuildStartTime()
Gets the start time of the build.
|
List<String> |
getInactiveProfileIds() |
ArtifactRepository |
getLocalRepository() |
List<ArtifactRepository> |
getPluginArtifactRepositories() |
List<Profile> |
getProfiles() |
MavenProject |
getProject() |
List<ArtifactRepository> |
getRemoteRepositories() |
ProjectBuildingRequest.RepositoryMerging |
getRepositoryMerging()
Gets the merge mode used to combine repositories declared in the POM with the repositories specified in this
request
|
org.eclipse.aether.RepositorySystemSession |
getRepositorySession() |
Properties |
getSystemProperties()
Gets the system properties to use for interpolation and profile activation.
|
Properties |
getUserProperties()
Gets the user properties to use for interpolation and profile activation.
|
int |
getValidationLevel()
Gets the level of validation to perform on processed models.
|
boolean |
isProcessPlugins() |
boolean |
isResolveDependencies() |
boolean |
isResolveVersionRanges()
Deprecated.
This got added when implementing MNG-2199 and is no longer used.
Commit 6cf9320942c34bc68205425ab696b1712ace9ba4 updated the way 'MavenProject' objects are initialized.
|
void |
setActiveProfileIds(List<String> activeProfileIds)
Set any active profiles that the
ProjectBuilder should consider while constructing
a MavenProject . |
void |
setBuildStartTime(Date buildStartTime)
Sets the start time of the build.
|
void |
setInactiveProfileIds(List<String> inactiveProfileIds) |
ProjectBuildingRequest |
setLocalRepository(ArtifactRepository localRepository) |
ProjectBuildingRequest |
setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories) |
ProjectBuildingRequest |
setProcessPlugins(boolean processPlugins) |
void |
setProfiles(List<Profile> profiles) |
void |
setProject(MavenProject mavenProject) |
ProjectBuildingRequest |
setRemoteRepositories(List<ArtifactRepository> remoteRepositories) |
ProjectBuildingRequest |
setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging mode)
Sets the merge mode used to combine repositories declared in the POM with the repositories specified in this
request.
|
ProjectBuildingRequest |
setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession) |
ProjectBuildingRequest |
setResolveDependencies(boolean resolveDependencies) |
ProjectBuildingRequest |
setResolveVersionRanges(boolean value)
Deprecated.
This got added when implementing MNG-2199 and is no longer used.
Commit 6cf9320942c34bc68205425ab696b1712ace9ba4 updated the way 'MavenProject' objects are initialized.
|
ProjectBuildingRequest |
setSystemProperties(Properties systemProperties)
Sets the system properties to use for interpolation and profile activation.
|
ProjectBuildingRequest |
setUserProperties(Properties userProperties)
Sets the user properties to use for interpolation and profile activation.
|
ProjectBuildingRequest |
setValidationLevel(int validationLevel)
Controls the level of validation to perform on processed models.
|
ProjectBuildingRequest setLocalRepository(ArtifactRepository localRepository)
ArtifactRepository getLocalRepository()
ProjectBuildingRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
List<ArtifactRepository> getRemoteRepositories()
ProjectBuildingRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories)
List<ArtifactRepository> getPluginArtifactRepositories()
ProjectBuildingRequest setSystemProperties(Properties systemProperties)
System.getProperties()
and environment variables.systemProperties
- The system properties, may be null
.null
.Properties getSystemProperties()
System.getProperties()
and environment variables.null
.ProjectBuildingRequest setUserProperties(Properties userProperties)
-Dkey=value
parameter on the command
line.userProperties
- The user properties, may be null
.null
.Properties getUserProperties()
-Dkey=value
parameter on the command
line.null
.void setProject(MavenProject mavenProject)
MavenProject getProject()
ProjectBuildingRequest setProcessPlugins(boolean processPlugins)
boolean isProcessPlugins()
ProjectBuildingRequest setResolveDependencies(boolean resolveDependencies)
boolean isResolveDependencies()
ProjectBuildingRequest setValidationLevel(int validationLevel)
validationLevel
- The level of validation to perform on processed models, e.g.
ModelBuildingRequest.VALIDATION_LEVEL_STRICT
.null
.int getValidationLevel()
void setActiveProfileIds(List<String> activeProfileIds)
ProjectBuilder
should consider while constructing
a MavenProject
.void addProfile(Profile profile)
Profile
that 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.profile
- Date getBuildStartTime()
null
if unknown.void setBuildStartTime(Date buildStartTime)
buildStartTime
- The start time of the build, may be null
.org.eclipse.aether.RepositorySystemSession getRepositorySession()
ProjectBuildingRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession)
ProjectBuildingRequest setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging mode)
mode
- The repository merge mode, must not be null
.null
.setRemoteRepositories(List)
ProjectBuildingRequest.RepositoryMerging getRepositoryMerging()
null
.@Deprecated boolean isResolveVersionRanges()
@Deprecated ProjectBuildingRequest setResolveVersionRanges(boolean value)
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.