|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.project.DefaultProjectBuildingRequest
public class DefaultProjectBuildingRequest
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.maven.project.ProjectBuildingRequest |
---|
ProjectBuildingRequest.RepositoryMerging |
Constructor Summary | |
---|---|
DefaultProjectBuildingRequest()
|
|
DefaultProjectBuildingRequest(ProjectBuildingRequest request)
|
Method Summary | |
---|---|
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()
|
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)
|
DefaultProjectBuildingRequest |
setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging repositoryMerging)
Sets the merge mode used to combine repositories declared in the POM with the repositories specified in this request. |
DefaultProjectBuildingRequest |
setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession)
|
ProjectBuildingRequest |
setResolveDependencies(boolean resolveDependencies)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultProjectBuildingRequest()
public DefaultProjectBuildingRequest(ProjectBuildingRequest request)
Method Detail |
---|
public MavenProject getProject()
getProject
in interface ProjectBuildingRequest
public void setProject(MavenProject mavenProject)
setProject
in interface ProjectBuildingRequest
public ProjectBuildingRequest setLocalRepository(ArtifactRepository localRepository)
setLocalRepository
in interface ProjectBuildingRequest
public ArtifactRepository getLocalRepository()
getLocalRepository
in interface ProjectBuildingRequest
public List<ArtifactRepository> getRemoteRepositories()
getRemoteRepositories
in interface ProjectBuildingRequest
public ProjectBuildingRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
setRemoteRepositories
in interface ProjectBuildingRequest
public List<ArtifactRepository> getPluginArtifactRepositories()
getPluginArtifactRepositories
in interface ProjectBuildingRequest
public ProjectBuildingRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories)
setPluginArtifactRepositories
in interface ProjectBuildingRequest
public Properties getSystemProperties()
ProjectBuildingRequest
System.getProperties()
and environment variables.
getSystemProperties
in interface ProjectBuildingRequest
null
.public ProjectBuildingRequest setSystemProperties(Properties systemProperties)
ProjectBuildingRequest
System.getProperties()
and environment variables.
setSystemProperties
in interface ProjectBuildingRequest
systemProperties
- The system properties, may be null
.
null
.public Properties getUserProperties()
ProjectBuildingRequest
-Dkey=value
parameter on the command
line.
getUserProperties
in interface ProjectBuildingRequest
null
.public ProjectBuildingRequest setUserProperties(Properties userProperties)
ProjectBuildingRequest
-Dkey=value
parameter on the command
line.
setUserProperties
in interface ProjectBuildingRequest
userProperties
- The user properties, may be null
.
null
.public boolean isProcessPlugins()
isProcessPlugins
in interface ProjectBuildingRequest
public ProjectBuildingRequest setProcessPlugins(boolean processPlugins)
setProcessPlugins
in interface ProjectBuildingRequest
public ProjectBuildingRequest setResolveDependencies(boolean resolveDependencies)
setResolveDependencies
in interface ProjectBuildingRequest
public boolean isResolveDependencies()
isResolveDependencies
in interface ProjectBuildingRequest
public ProjectBuildingRequest setValidationLevel(int validationLevel)
ProjectBuildingRequest
setValidationLevel
in interface ProjectBuildingRequest
validationLevel
- The level of validation to perform on processed models, e.g.
ModelBuildingRequest.VALIDATION_LEVEL_STRICT
.
null
.public int getValidationLevel()
ProjectBuildingRequest
getValidationLevel
in interface ProjectBuildingRequest
public List<String> getActiveProfileIds()
getActiveProfileIds
in interface ProjectBuildingRequest
public void setActiveProfileIds(List<String> activeProfileIds)
ProjectBuildingRequest
ProjectBuilder
should consider while constructing
a MavenProject
.
setActiveProfileIds
in interface ProjectBuildingRequest
public List<String> getInactiveProfileIds()
getInactiveProfileIds
in interface ProjectBuildingRequest
public void setInactiveProfileIds(List<String> inactiveProfileIds)
setInactiveProfileIds
in interface ProjectBuildingRequest
public void setProfiles(List<Profile> profiles)
setProfiles
in interface ProjectBuildingRequest
public void addProfile(Profile profile)
ProjectBuildingRequest
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.
addProfile
in interface ProjectBuildingRequest
public List<Profile> getProfiles()
getProfiles
in interface ProjectBuildingRequest
public Date getBuildStartTime()
ProjectBuildingRequest
getBuildStartTime
in interface ProjectBuildingRequest
null
if unknown.public void setBuildStartTime(Date buildStartTime)
ProjectBuildingRequest
setBuildStartTime
in interface ProjectBuildingRequest
buildStartTime
- The start time of the build, may be null
.public org.eclipse.aether.RepositorySystemSession getRepositorySession()
getRepositorySession
in interface ProjectBuildingRequest
public DefaultProjectBuildingRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession)
setRepositorySession
in interface ProjectBuildingRequest
public DefaultProjectBuildingRequest setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging repositoryMerging)
ProjectBuildingRequest
setRepositoryMerging
in interface ProjectBuildingRequest
repositoryMerging
- The repository merge mode, must not be null
.
null
.ProjectBuildingRequest.setRemoteRepositories(List)
public ProjectBuildingRequest.RepositoryMerging getRepositoryMerging()
ProjectBuildingRequest
getRepositoryMerging
in interface ProjectBuildingRequest
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |