|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.sonatype.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.sonatype.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 ProjectBuildingRequestpublic void setProject(MavenProject mavenProject)
setProject in interface ProjectBuildingRequestpublic ProjectBuildingRequest setLocalRepository(ArtifactRepository localRepository)
setLocalRepository in interface ProjectBuildingRequestpublic ArtifactRepository getLocalRepository()
getLocalRepository in interface ProjectBuildingRequestpublic List<ArtifactRepository> getRemoteRepositories()
getRemoteRepositories in interface ProjectBuildingRequestpublic ProjectBuildingRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
setRemoteRepositories in interface ProjectBuildingRequestpublic List<ArtifactRepository> getPluginArtifactRepositories()
getPluginArtifactRepositories in interface ProjectBuildingRequestpublic ProjectBuildingRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories)
setPluginArtifactRepositories in interface ProjectBuildingRequestpublic Properties getSystemProperties()
ProjectBuildingRequestSystem.getProperties() and environment variables.
getSystemProperties in interface ProjectBuildingRequestnull.public ProjectBuildingRequest setSystemProperties(Properties systemProperties)
ProjectBuildingRequestSystem.getProperties() and environment variables.
setSystemProperties in interface ProjectBuildingRequestsystemProperties - The system properties, may be null.
null.public Properties getUserProperties()
ProjectBuildingRequest-Dkey=value parameter on the command
line.
getUserProperties in interface ProjectBuildingRequestnull.public ProjectBuildingRequest setUserProperties(Properties userProperties)
ProjectBuildingRequest-Dkey=value parameter on the command
line.
setUserProperties in interface ProjectBuildingRequestuserProperties - The user properties, may be null.
null.public boolean isProcessPlugins()
isProcessPlugins in interface ProjectBuildingRequestpublic ProjectBuildingRequest setProcessPlugins(boolean processPlugins)
setProcessPlugins in interface ProjectBuildingRequestpublic ProjectBuildingRequest setResolveDependencies(boolean resolveDependencies)
setResolveDependencies in interface ProjectBuildingRequestpublic boolean isResolveDependencies()
isResolveDependencies in interface ProjectBuildingRequestpublic ProjectBuildingRequest setValidationLevel(int validationLevel)
ProjectBuildingRequest
setValidationLevel in interface ProjectBuildingRequestvalidationLevel - The level of validation to perform on processed models, e.g.
ModelBuildingRequest.VALIDATION_LEVEL_STRICT.
null.public int getValidationLevel()
ProjectBuildingRequest
getValidationLevel in interface ProjectBuildingRequestpublic List<String> getActiveProfileIds()
getActiveProfileIds in interface ProjectBuildingRequestpublic void setActiveProfileIds(List<String> activeProfileIds)
ProjectBuildingRequestProjectBuilder should consider while constructing
a MavenProject.
setActiveProfileIds in interface ProjectBuildingRequestpublic List<String> getInactiveProfileIds()
getInactiveProfileIds in interface ProjectBuildingRequestpublic void setInactiveProfileIds(List<String> inactiveProfileIds)
setInactiveProfileIds in interface ProjectBuildingRequestpublic void setProfiles(List<Profile> profiles)
setProfiles in interface ProjectBuildingRequestpublic void addProfile(Profile profile)
ProjectBuildingRequestProfile 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 ProjectBuildingRequestpublic List<Profile> getProfiles()
getProfiles in interface ProjectBuildingRequestpublic Date getBuildStartTime()
ProjectBuildingRequest
getBuildStartTime in interface ProjectBuildingRequestnull if unknown.public void setBuildStartTime(Date buildStartTime)
ProjectBuildingRequest
setBuildStartTime in interface ProjectBuildingRequestbuildStartTime - The start time of the build, may be null.public org.sonatype.aether.RepositorySystemSession getRepositorySession()
getRepositorySession in interface ProjectBuildingRequestpublic DefaultProjectBuildingRequest setRepositorySession(org.sonatype.aether.RepositorySystemSession repositorySession)
setRepositorySession in interface ProjectBuildingRequestpublic DefaultProjectBuildingRequest setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging repositoryMerging)
ProjectBuildingRequest
setRepositoryMerging in interface ProjectBuildingRequestrepositoryMerging - The repository merge mode, must not be null.
null.ProjectBuildingRequest.setRemoteRepositories(List)public ProjectBuildingRequest.RepositoryMerging getRepositoryMerging()
ProjectBuildingRequest
getRepositoryMerging in interface ProjectBuildingRequestnull.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||