Package org.apache.maven.execution
Class DefaultMavenExecutionRequest
- java.lang.Object
-
- org.apache.maven.execution.DefaultMavenExecutionRequest
-
- All Implemented Interfaces:
MavenExecutionRequest
public class DefaultMavenExecutionRequest extends java.lang.Object implements MavenExecutionRequest
- Author:
- Jason van Zyl
-
-
Field Summary
-
Fields inherited from interface org.apache.maven.execution.MavenExecutionRequest
CHECKSUM_POLICY_FAIL, CHECKSUM_POLICY_WARN, LOGGING_LEVEL_DEBUG, LOGGING_LEVEL_DISABLED, LOGGING_LEVEL_ERROR, LOGGING_LEVEL_FATAL, LOGGING_LEVEL_INFO, LOGGING_LEVEL_WARN, REACTOR_FAIL_AT_END, REACTOR_FAIL_FAST, REACTOR_FAIL_NEVER, REACTOR_MAKE_BOTH, REACTOR_MAKE_DOWNSTREAM, REACTOR_MAKE_UPSTREAM
-
-
Constructor Summary
Constructors Constructor Description DefaultMavenExecutionRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MavenExecutionRequest
addActiveProfile(java.lang.String profile)
MavenExecutionRequest
addActiveProfiles(java.util.List<java.lang.String> profiles)
MavenExecutionRequest
addInactiveProfile(java.lang.String profile)
MavenExecutionRequest
addInactiveProfiles(java.util.List<java.lang.String> profiles)
MavenExecutionRequest
addMirror(org.apache.maven.settings.Mirror mirror)
MavenExecutionRequest
addPluginArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository repository)
MavenExecutionRequest
addPluginGroup(java.lang.String pluginGroup)
MavenExecutionRequest
addPluginGroups(java.util.List<java.lang.String> pluginGroups)
MavenExecutionRequest
addProfile(org.apache.maven.model.Profile profile)
MavenExecutionRequest
addProxy(org.apache.maven.settings.Proxy proxy)
MavenExecutionRequest
addRemoteRepository(org.apache.maven.artifact.repository.ArtifactRepository repository)
MavenExecutionRequest
addServer(org.apache.maven.settings.Server server)
static MavenExecutionRequest
copy(MavenExecutionRequest original)
java.util.List<java.lang.String>
getActiveProfiles()
java.lang.String
getBaseDirectory()
java.lang.String
getBuilderId()
Controls theBuilder
used by Maven by specification of the builders id.java.util.Map<java.lang.String,java.lang.Object>
getData()
int
getDegreeOfConcurrency()
EventSpyDispatcher
getEventSpyDispatcher()
java.util.List<java.lang.String>
getExcludedProjects()
ExecutionListener
getExecutionListener()
java.lang.String
getGlobalChecksumPolicy()
java.io.File
getGlobalSettingsFile()
java.io.File
getGlobalToolchainsFile()
java.util.List<java.lang.String>
getGoals()
java.util.List<java.lang.String>
getInactiveProfiles()
org.apache.maven.artifact.repository.ArtifactRepository
getLocalRepository()
java.io.File
getLocalRepositoryPath()
int
getLoggingLevel()
java.lang.String
getMakeBehavior()
java.util.List<org.apache.maven.settings.Mirror>
getMirrors()
java.io.File
getMultiModuleProjectDirectory()
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository>
getPluginArtifactRepositories()
java.util.List<java.lang.String>
getPluginGroups()
java.io.File
getPom()
java.util.List<org.apache.maven.model.Profile>
getProfiles()
ProjectBuildingRequest
getProjectBuildingRequest()
java.util.List<org.apache.maven.settings.Proxy>
getProxies()
java.lang.String
getReactorFailureBehavior()
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository>
getRemoteRepositories()
org.eclipse.aether.RepositoryCache
getRepositoryCache()
java.lang.String
getResumeFrom()
java.util.List<java.lang.String>
getSelectedProjects()
java.util.List<org.apache.maven.settings.Server>
getServers()
java.util.Date
getStartTime()
java.util.Properties
getSystemProperties()
Gets the system properties to use for interpolation and profile activation.java.util.Map<java.lang.String,java.util.List<ToolchainModel>>
getToolchains()
org.eclipse.aether.transfer.TransferListener
getTransferListener()
java.util.Properties
getUserProperties()
Gets the user properties to use for interpolation and profile activation.java.io.File
getUserSettingsFile()
java.io.File
getUserToolchainsFile()
org.eclipse.aether.repository.WorkspaceReader
getWorkspaceReader()
boolean
isCacheNotFound()
boolean
isCacheTransferError()
boolean
isInteractiveMode()
boolean
isNoSnapshotUpdates()
boolean
isOffline()
boolean
isProjectPresent()
boolean
isRecursive()
boolean
isShowErrors()
boolean
isUpdateSnapshots()
boolean
isUseLegacyLocalRepository()
MavenExecutionRequest
setActiveProfiles(java.util.List<java.lang.String> activeProfiles)
MavenExecutionRequest
setBaseDirectory(java.io.File basedir)
MavenExecutionRequest
setBuilderId(java.lang.String builderId)
Controls theBuilder
used by Maven by specification of the builder's id.MavenExecutionRequest
setCacheNotFound(boolean cacheNotFound)
MavenExecutionRequest
setCacheTransferError(boolean cacheTransferError)
void
setDegreeOfConcurrency(int degreeOfConcurrency)
Set's the parallel degree of concurrency used by the build.MavenExecutionRequest
setEventSpyDispatcher(EventSpyDispatcher eventSpyDispatcher)
MavenExecutionRequest
setExcludedProjects(java.util.List<java.lang.String> excludedProjects)
MavenExecutionRequest
setExecutionListener(ExecutionListener executionListener)
MavenExecutionRequest
setGlobalChecksumPolicy(java.lang.String globalChecksumPolicy)
MavenExecutionRequest
setGlobalSettingsFile(java.io.File globalSettingsFile)
MavenExecutionRequest
setGlobalToolchainsFile(java.io.File globalToolchainsFile)
MavenExecutionRequest
setGoals(java.util.List<java.lang.String> goals)
MavenExecutionRequest
setInactiveProfiles(java.util.List<java.lang.String> inactiveProfiles)
MavenExecutionRequest
setInteractiveMode(boolean interactive)
MavenExecutionRequest
setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
MavenExecutionRequest
setLocalRepositoryPath(java.io.File localRepository)
MavenExecutionRequest
setLocalRepositoryPath(java.lang.String localRepository)
MavenExecutionRequest
setLoggingLevel(int loggingLevel)
MavenExecutionRequest
setMakeBehavior(java.lang.String makeBehavior)
MavenExecutionRequest
setMirrors(java.util.List<org.apache.maven.settings.Mirror> mirrors)
void
setMultiModuleProjectDirectory(java.io.File directory)
MavenExecutionRequest
setNoSnapshotUpdates(boolean noSnapshotUpdates)
MavenExecutionRequest
setOffline(boolean offline)
MavenExecutionRequest
setPluginArtifactRepositories(java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> pluginArtifactRepositories)
MavenExecutionRequest
setPluginGroups(java.util.List<java.lang.String> pluginGroups)
MavenExecutionRequest
setPom(java.io.File pom)
MavenExecutionRequest
setPomFile(java.lang.String pomFilename)
Deprecated.usesetPom(File)
MavenExecutionRequest
setProfiles(java.util.List<org.apache.maven.model.Profile> profiles)
void
setProjectBuildingConfiguration(ProjectBuildingRequest projectBuildingConfiguration)
MavenExecutionRequest
setProjectPresent(boolean projectPresent)
MavenExecutionRequest
setProxies(java.util.List<org.apache.maven.settings.Proxy> proxies)
MavenExecutionRequest
setReactorFailureBehavior(java.lang.String failureBehavior)
MavenExecutionRequest
setRecursive(boolean recursive)
MavenExecutionRequest
setRemoteRepositories(java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
Set a new list of remote repositories to use the execution request.MavenExecutionRequest
setRepositoryCache(org.eclipse.aether.RepositoryCache repositoryCache)
MavenExecutionRequest
setResumeFrom(java.lang.String project)
MavenExecutionRequest
setSelectedProjects(java.util.List<java.lang.String> selectedProjects)
MavenExecutionRequest
setServers(java.util.List<org.apache.maven.settings.Server> servers)
MavenExecutionRequest
setShowErrors(boolean showErrors)
MavenExecutionRequest
setStartTime(java.util.Date startTime)
MavenExecutionRequest
setSystemProperties(java.util.Properties properties)
Sets the system properties to use for interpolation and profile activation.MavenExecutionRequest
setToolchains(java.util.Map<java.lang.String,java.util.List<ToolchainModel>> toolchains)
MavenExecutionRequest
setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener)
MavenExecutionRequest
setUpdateSnapshots(boolean updateSnapshots)
MavenExecutionRequest
setUseLegacyLocalRepository(boolean useLegacyLocalRepositoryManager)
MavenExecutionRequest
setUseReactor(boolean reactorActive)
MavenExecutionRequest
setUserProperties(java.util.Properties userProperties)
Sets the user properties to use for interpolation and profile activation.MavenExecutionRequest
setUserSettingsFile(java.io.File userSettingsFile)
MavenExecutionRequest
setUserToolchainsFile(java.io.File userToolchainsFile)
MavenExecutionRequest
setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader)
boolean
useReactor()
-
-
-
Method Detail
-
copy
public static MavenExecutionRequest copy(MavenExecutionRequest original)
-
getBaseDirectory
public java.lang.String getBaseDirectory()
- Specified by:
getBaseDirectory
in interfaceMavenExecutionRequest
-
getLocalRepository
public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
- Specified by:
getLocalRepository
in interfaceMavenExecutionRequest
-
getLocalRepositoryPath
public java.io.File getLocalRepositoryPath()
- Specified by:
getLocalRepositoryPath
in interfaceMavenExecutionRequest
-
getGoals
public java.util.List<java.lang.String> getGoals()
- Specified by:
getGoals
in interfaceMavenExecutionRequest
-
getSystemProperties
public java.util.Properties getSystemProperties()
Description copied from interface:MavenExecutionRequest
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.- Specified by:
getSystemProperties
in interfaceMavenExecutionRequest
- Returns:
- The system properties, never
null
.
-
getUserProperties
public java.util.Properties getUserProperties()
Description copied from interface:MavenExecutionRequest
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=value
parameter on the command line.- Specified by:
getUserProperties
in interfaceMavenExecutionRequest
- Returns:
- The user properties, never
null
.
-
getPom
public java.io.File getPom()
- Specified by:
getPom
in interfaceMavenExecutionRequest
-
getReactorFailureBehavior
public java.lang.String getReactorFailureBehavior()
- Specified by:
getReactorFailureBehavior
in interfaceMavenExecutionRequest
-
getSelectedProjects
public java.util.List<java.lang.String> getSelectedProjects()
- Specified by:
getSelectedProjects
in interfaceMavenExecutionRequest
-
getExcludedProjects
public java.util.List<java.lang.String> getExcludedProjects()
- Specified by:
getExcludedProjects
in interfaceMavenExecutionRequest
- Returns:
- the excluded projects, never
null
-
getResumeFrom
public java.lang.String getResumeFrom()
- Specified by:
getResumeFrom
in interfaceMavenExecutionRequest
-
getMakeBehavior
public java.lang.String getMakeBehavior()
- Specified by:
getMakeBehavior
in interfaceMavenExecutionRequest
-
getStartTime
public java.util.Date getStartTime()
- Specified by:
getStartTime
in interfaceMavenExecutionRequest
-
isShowErrors
public boolean isShowErrors()
- Specified by:
isShowErrors
in interfaceMavenExecutionRequest
-
isInteractiveMode
public boolean isInteractiveMode()
- Specified by:
isInteractiveMode
in interfaceMavenExecutionRequest
-
setActiveProfiles
public MavenExecutionRequest setActiveProfiles(java.util.List<java.lang.String> activeProfiles)
- Specified by:
setActiveProfiles
in interfaceMavenExecutionRequest
-
setInactiveProfiles
public MavenExecutionRequest setInactiveProfiles(java.util.List<java.lang.String> inactiveProfiles)
- Specified by:
setInactiveProfiles
in interfaceMavenExecutionRequest
-
setRemoteRepositories
public MavenExecutionRequest setRemoteRepositories(java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
Description copied from interface:MavenExecutionRequest
Set a new list of remote repositories to use the execution request. This is necessary if you perform transformations on the remote repositories being used. For example if you replace existing repositories with mirrors then it's easier to just replace the whole list with a new list of transformed repositories.- Specified by:
setRemoteRepositories
in interfaceMavenExecutionRequest
- Returns:
- This request, never
null
.
-
setPluginArtifactRepositories
public MavenExecutionRequest setPluginArtifactRepositories(java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> pluginArtifactRepositories)
- Specified by:
setPluginArtifactRepositories
in interfaceMavenExecutionRequest
-
setProjectBuildingConfiguration
public void setProjectBuildingConfiguration(ProjectBuildingRequest projectBuildingConfiguration)
-
getActiveProfiles
public java.util.List<java.lang.String> getActiveProfiles()
- Specified by:
getActiveProfiles
in interfaceMavenExecutionRequest
-
getInactiveProfiles
public java.util.List<java.lang.String> getInactiveProfiles()
- Specified by:
getInactiveProfiles
in interfaceMavenExecutionRequest
-
getTransferListener
public org.eclipse.aether.transfer.TransferListener getTransferListener()
- Specified by:
getTransferListener
in interfaceMavenExecutionRequest
-
getLoggingLevel
public int getLoggingLevel()
- Specified by:
getLoggingLevel
in interfaceMavenExecutionRequest
-
isOffline
public boolean isOffline()
- Specified by:
isOffline
in interfaceMavenExecutionRequest
-
isUpdateSnapshots
public boolean isUpdateSnapshots()
- Specified by:
isUpdateSnapshots
in interfaceMavenExecutionRequest
-
isNoSnapshotUpdates
public boolean isNoSnapshotUpdates()
- Specified by:
isNoSnapshotUpdates
in interfaceMavenExecutionRequest
-
getGlobalChecksumPolicy
public java.lang.String getGlobalChecksumPolicy()
- Specified by:
getGlobalChecksumPolicy
in interfaceMavenExecutionRequest
-
isRecursive
public boolean isRecursive()
- Specified by:
isRecursive
in interfaceMavenExecutionRequest
-
setBaseDirectory
public MavenExecutionRequest setBaseDirectory(java.io.File basedir)
- Specified by:
setBaseDirectory
in interfaceMavenExecutionRequest
-
setStartTime
public MavenExecutionRequest setStartTime(java.util.Date startTime)
- Specified by:
setStartTime
in interfaceMavenExecutionRequest
-
setShowErrors
public MavenExecutionRequest setShowErrors(boolean showErrors)
- Specified by:
setShowErrors
in interfaceMavenExecutionRequest
-
setGoals
public MavenExecutionRequest setGoals(java.util.List<java.lang.String> goals)
- Specified by:
setGoals
in interfaceMavenExecutionRequest
-
setLocalRepository
public MavenExecutionRequest setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
- Specified by:
setLocalRepository
in interfaceMavenExecutionRequest
-
setLocalRepositoryPath
public MavenExecutionRequest setLocalRepositoryPath(java.io.File localRepository)
- Specified by:
setLocalRepositoryPath
in interfaceMavenExecutionRequest
-
setLocalRepositoryPath
public MavenExecutionRequest setLocalRepositoryPath(java.lang.String localRepository)
- Specified by:
setLocalRepositoryPath
in interfaceMavenExecutionRequest
-
setSystemProperties
public MavenExecutionRequest setSystemProperties(java.util.Properties properties)
Description copied from interface:MavenExecutionRequest
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.- Specified by:
setSystemProperties
in interfaceMavenExecutionRequest
- Parameters:
properties
- The system properties, may benull
.- Returns:
- This request, never
null
.
-
setUserProperties
public MavenExecutionRequest setUserProperties(java.util.Properties userProperties)
Description copied from interface:MavenExecutionRequest
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=value
parameter on the command line.- Specified by:
setUserProperties
in interfaceMavenExecutionRequest
- Parameters:
userProperties
- The user properties, may benull
.- Returns:
- This request, never
null
.
-
setReactorFailureBehavior
public MavenExecutionRequest setReactorFailureBehavior(java.lang.String failureBehavior)
- Specified by:
setReactorFailureBehavior
in interfaceMavenExecutionRequest
-
setSelectedProjects
public MavenExecutionRequest setSelectedProjects(java.util.List<java.lang.String> selectedProjects)
- Specified by:
setSelectedProjects
in interfaceMavenExecutionRequest
-
setExcludedProjects
public MavenExecutionRequest setExcludedProjects(java.util.List<java.lang.String> excludedProjects)
- Specified by:
setExcludedProjects
in interfaceMavenExecutionRequest
- Parameters:
excludedProjects
- the projects to exclude- Returns:
- this MavenExecutionRequest
-
setResumeFrom
public MavenExecutionRequest setResumeFrom(java.lang.String project)
- Specified by:
setResumeFrom
in interfaceMavenExecutionRequest
-
setMakeBehavior
public MavenExecutionRequest setMakeBehavior(java.lang.String makeBehavior)
- Specified by:
setMakeBehavior
in interfaceMavenExecutionRequest
-
addActiveProfile
public MavenExecutionRequest addActiveProfile(java.lang.String profile)
- Specified by:
addActiveProfile
in interfaceMavenExecutionRequest
-
addInactiveProfile
public MavenExecutionRequest addInactiveProfile(java.lang.String profile)
- Specified by:
addInactiveProfile
in interfaceMavenExecutionRequest
-
addActiveProfiles
public MavenExecutionRequest addActiveProfiles(java.util.List<java.lang.String> profiles)
- Specified by:
addActiveProfiles
in interfaceMavenExecutionRequest
-
addInactiveProfiles
public MavenExecutionRequest addInactiveProfiles(java.util.List<java.lang.String> profiles)
- Specified by:
addInactiveProfiles
in interfaceMavenExecutionRequest
-
setUseReactor
public MavenExecutionRequest setUseReactor(boolean reactorActive)
-
useReactor
public boolean useReactor()
-
setPomFile
@Deprecated public MavenExecutionRequest setPomFile(java.lang.String pomFilename)
Deprecated.usesetPom(File)
-
setPom
public MavenExecutionRequest setPom(java.io.File pom)
- Specified by:
setPom
in interfaceMavenExecutionRequest
-
setInteractiveMode
public MavenExecutionRequest setInteractiveMode(boolean interactive)
- Specified by:
setInteractiveMode
in interfaceMavenExecutionRequest
-
setTransferListener
public MavenExecutionRequest setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener)
- Specified by:
setTransferListener
in interfaceMavenExecutionRequest
-
setLoggingLevel
public MavenExecutionRequest setLoggingLevel(int loggingLevel)
- Specified by:
setLoggingLevel
in interfaceMavenExecutionRequest
-
setOffline
public MavenExecutionRequest setOffline(boolean offline)
- Specified by:
setOffline
in interfaceMavenExecutionRequest
-
setUpdateSnapshots
public MavenExecutionRequest setUpdateSnapshots(boolean updateSnapshots)
- Specified by:
setUpdateSnapshots
in interfaceMavenExecutionRequest
-
setNoSnapshotUpdates
public MavenExecutionRequest setNoSnapshotUpdates(boolean noSnapshotUpdates)
- Specified by:
setNoSnapshotUpdates
in interfaceMavenExecutionRequest
-
setGlobalChecksumPolicy
public MavenExecutionRequest setGlobalChecksumPolicy(java.lang.String globalChecksumPolicy)
- Specified by:
setGlobalChecksumPolicy
in interfaceMavenExecutionRequest
-
getProxies
public java.util.List<org.apache.maven.settings.Proxy> getProxies()
- Specified by:
getProxies
in interfaceMavenExecutionRequest
-
setProxies
public MavenExecutionRequest setProxies(java.util.List<org.apache.maven.settings.Proxy> proxies)
- Specified by:
setProxies
in interfaceMavenExecutionRequest
-
addProxy
public MavenExecutionRequest addProxy(org.apache.maven.settings.Proxy proxy)
- Specified by:
addProxy
in interfaceMavenExecutionRequest
-
getServers
public java.util.List<org.apache.maven.settings.Server> getServers()
- Specified by:
getServers
in interfaceMavenExecutionRequest
-
setServers
public MavenExecutionRequest setServers(java.util.List<org.apache.maven.settings.Server> servers)
- Specified by:
setServers
in interfaceMavenExecutionRequest
-
addServer
public MavenExecutionRequest addServer(org.apache.maven.settings.Server server)
- Specified by:
addServer
in interfaceMavenExecutionRequest
-
getMirrors
public java.util.List<org.apache.maven.settings.Mirror> getMirrors()
- Specified by:
getMirrors
in interfaceMavenExecutionRequest
-
setMirrors
public MavenExecutionRequest setMirrors(java.util.List<org.apache.maven.settings.Mirror> mirrors)
- Specified by:
setMirrors
in interfaceMavenExecutionRequest
-
addMirror
public MavenExecutionRequest addMirror(org.apache.maven.settings.Mirror mirror)
- Specified by:
addMirror
in interfaceMavenExecutionRequest
-
getProfiles
public java.util.List<org.apache.maven.model.Profile> getProfiles()
- Specified by:
getProfiles
in interfaceMavenExecutionRequest
-
setProfiles
public MavenExecutionRequest setProfiles(java.util.List<org.apache.maven.model.Profile> profiles)
- Specified by:
setProfiles
in interfaceMavenExecutionRequest
-
getPluginGroups
public java.util.List<java.lang.String> getPluginGroups()
- Specified by:
getPluginGroups
in interfaceMavenExecutionRequest
-
setPluginGroups
public MavenExecutionRequest setPluginGroups(java.util.List<java.lang.String> pluginGroups)
- Specified by:
setPluginGroups
in interfaceMavenExecutionRequest
-
addPluginGroup
public MavenExecutionRequest addPluginGroup(java.lang.String pluginGroup)
- Specified by:
addPluginGroup
in interfaceMavenExecutionRequest
-
addPluginGroups
public MavenExecutionRequest addPluginGroups(java.util.List<java.lang.String> pluginGroups)
- Specified by:
addPluginGroups
in interfaceMavenExecutionRequest
-
setRecursive
public MavenExecutionRequest setRecursive(boolean recursive)
- Specified by:
setRecursive
in interfaceMavenExecutionRequest
-
isProjectPresent
public boolean isProjectPresent()
- Specified by:
isProjectPresent
in interfaceMavenExecutionRequest
-
setProjectPresent
public MavenExecutionRequest setProjectPresent(boolean projectPresent)
- Specified by:
setProjectPresent
in interfaceMavenExecutionRequest
-
getUserSettingsFile
public java.io.File getUserSettingsFile()
- Specified by:
getUserSettingsFile
in interfaceMavenExecutionRequest
-
setUserSettingsFile
public MavenExecutionRequest setUserSettingsFile(java.io.File userSettingsFile)
- Specified by:
setUserSettingsFile
in interfaceMavenExecutionRequest
-
getGlobalSettingsFile
public java.io.File getGlobalSettingsFile()
- Specified by:
getGlobalSettingsFile
in interfaceMavenExecutionRequest
-
setGlobalSettingsFile
public MavenExecutionRequest setGlobalSettingsFile(java.io.File globalSettingsFile)
- Specified by:
setGlobalSettingsFile
in interfaceMavenExecutionRequest
-
getUserToolchainsFile
public java.io.File getUserToolchainsFile()
- Specified by:
getUserToolchainsFile
in interfaceMavenExecutionRequest
-
setUserToolchainsFile
public MavenExecutionRequest setUserToolchainsFile(java.io.File userToolchainsFile)
- Specified by:
setUserToolchainsFile
in interfaceMavenExecutionRequest
-
getGlobalToolchainsFile
public java.io.File getGlobalToolchainsFile()
- Specified by:
getGlobalToolchainsFile
in interfaceMavenExecutionRequest
- Returns:
- the global toolchains file
-
setGlobalToolchainsFile
public MavenExecutionRequest setGlobalToolchainsFile(java.io.File globalToolchainsFile)
- Specified by:
setGlobalToolchainsFile
in interfaceMavenExecutionRequest
- Parameters:
globalToolchainsFile
- the global toolchains file- Returns:
- this request
-
addRemoteRepository
public MavenExecutionRequest addRemoteRepository(org.apache.maven.artifact.repository.ArtifactRepository repository)
- Specified by:
addRemoteRepository
in interfaceMavenExecutionRequest
-
getRemoteRepositories
public java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
- Specified by:
getRemoteRepositories
in interfaceMavenExecutionRequest
-
addPluginArtifactRepository
public MavenExecutionRequest addPluginArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository repository)
- Specified by:
addPluginArtifactRepository
in interfaceMavenExecutionRequest
-
getPluginArtifactRepositories
public java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getPluginArtifactRepositories()
- Specified by:
getPluginArtifactRepositories
in interfaceMavenExecutionRequest
-
getProjectBuildingRequest
public ProjectBuildingRequest getProjectBuildingRequest()
- Specified by:
getProjectBuildingRequest
in interfaceMavenExecutionRequest
-
addProfile
public MavenExecutionRequest addProfile(org.apache.maven.model.Profile profile)
- Specified by:
addProfile
in interfaceMavenExecutionRequest
-
getRepositoryCache
public org.eclipse.aether.RepositoryCache getRepositoryCache()
- Specified by:
getRepositoryCache
in interfaceMavenExecutionRequest
-
setRepositoryCache
public MavenExecutionRequest setRepositoryCache(org.eclipse.aether.RepositoryCache repositoryCache)
- Specified by:
setRepositoryCache
in interfaceMavenExecutionRequest
-
getExecutionListener
public ExecutionListener getExecutionListener()
- Specified by:
getExecutionListener
in interfaceMavenExecutionRequest
-
setExecutionListener
public MavenExecutionRequest setExecutionListener(ExecutionListener executionListener)
- Specified by:
setExecutionListener
in interfaceMavenExecutionRequest
-
setDegreeOfConcurrency
public void setDegreeOfConcurrency(int degreeOfConcurrency)
Description copied from interface:MavenExecutionRequest
Set's the parallel degree of concurrency used by the build.- Specified by:
setDegreeOfConcurrency
in interfaceMavenExecutionRequest
-
getDegreeOfConcurrency
public int getDegreeOfConcurrency()
- Specified by:
getDegreeOfConcurrency
in interfaceMavenExecutionRequest
- Returns:
- the degree of concurrency for the build.
-
getWorkspaceReader
public org.eclipse.aether.repository.WorkspaceReader getWorkspaceReader()
- Specified by:
getWorkspaceReader
in interfaceMavenExecutionRequest
-
setWorkspaceReader
public MavenExecutionRequest setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader)
- Specified by:
setWorkspaceReader
in interfaceMavenExecutionRequest
-
isCacheTransferError
public boolean isCacheTransferError()
- Specified by:
isCacheTransferError
in interfaceMavenExecutionRequest
-
setCacheTransferError
public MavenExecutionRequest setCacheTransferError(boolean cacheTransferError)
- Specified by:
setCacheTransferError
in interfaceMavenExecutionRequest
-
isCacheNotFound
public boolean isCacheNotFound()
- Specified by:
isCacheNotFound
in interfaceMavenExecutionRequest
-
setCacheNotFound
public MavenExecutionRequest setCacheNotFound(boolean cacheNotFound)
- Specified by:
setCacheNotFound
in interfaceMavenExecutionRequest
-
isUseLegacyLocalRepository
public boolean isUseLegacyLocalRepository()
- Specified by:
isUseLegacyLocalRepository
in interfaceMavenExecutionRequest
-
setUseLegacyLocalRepository
public MavenExecutionRequest setUseLegacyLocalRepository(boolean useLegacyLocalRepositoryManager)
- Specified by:
setUseLegacyLocalRepository
in interfaceMavenExecutionRequest
-
setBuilderId
public MavenExecutionRequest setBuilderId(java.lang.String builderId)
Description copied from interface:MavenExecutionRequest
Controls theBuilder
used by Maven by specification of the builder's id.- Specified by:
setBuilderId
in interfaceMavenExecutionRequest
-
getBuilderId
public java.lang.String getBuilderId()
Description copied from interface:MavenExecutionRequest
Controls theBuilder
used by Maven by specification of the builders id.- Specified by:
getBuilderId
in interfaceMavenExecutionRequest
-
getToolchains
public java.util.Map<java.lang.String,java.util.List<ToolchainModel>> getToolchains()
- Specified by:
getToolchains
in interfaceMavenExecutionRequest
- Returns:
- all toolchains grouped by type, never
null
-
setToolchains
public MavenExecutionRequest setToolchains(java.util.Map<java.lang.String,java.util.List<ToolchainModel>> toolchains)
- Specified by:
setToolchains
in interfaceMavenExecutionRequest
- Parameters:
toolchains
- all toolchains grouped by type- Returns:
- this request
-
setMultiModuleProjectDirectory
public void setMultiModuleProjectDirectory(java.io.File directory)
- Specified by:
setMultiModuleProjectDirectory
in interfaceMavenExecutionRequest
-
getMultiModuleProjectDirectory
public java.io.File getMultiModuleProjectDirectory()
- Specified by:
getMultiModuleProjectDirectory
in interfaceMavenExecutionRequest
-
setEventSpyDispatcher
public MavenExecutionRequest setEventSpyDispatcher(EventSpyDispatcher eventSpyDispatcher)
- Specified by:
setEventSpyDispatcher
in interfaceMavenExecutionRequest
-
getEventSpyDispatcher
public EventSpyDispatcher getEventSpyDispatcher()
- Specified by:
getEventSpyDispatcher
in interfaceMavenExecutionRequest
-
getData
public java.util.Map<java.lang.String,java.lang.Object> getData()
- Specified by:
getData
in interfaceMavenExecutionRequest
-
-