public class DefaultMavenExecutionRequest extends Object implements 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 and Description |
---|
DefaultMavenExecutionRequest() |
public static MavenExecutionRequest copy(MavenExecutionRequest original)
public String getBaseDirectory()
getBaseDirectory
in interface MavenExecutionRequest
public ArtifactRepository getLocalRepository()
getLocalRepository
in interface MavenExecutionRequest
public File getLocalRepositoryPath()
getLocalRepositoryPath
in interface MavenExecutionRequest
public List<String> getGoals()
getGoals
in interface MavenExecutionRequest
public Properties getSystemProperties()
MavenExecutionRequest
System.getProperties()
and environment variables.getSystemProperties
in interface MavenExecutionRequest
null
.public Properties getUserProperties()
MavenExecutionRequest
-Dkey=value
parameter on the command
line.getUserProperties
in interface MavenExecutionRequest
null
.public File getPom()
getPom
in interface MavenExecutionRequest
public String getReactorFailureBehavior()
getReactorFailureBehavior
in interface MavenExecutionRequest
public List<String> getSelectedProjects()
getSelectedProjects
in interface MavenExecutionRequest
public List<String> getExcludedProjects()
getExcludedProjects
in interface MavenExecutionRequest
null
public String getResumeFrom()
getResumeFrom
in interface MavenExecutionRequest
public String getMakeBehavior()
getMakeBehavior
in interface MavenExecutionRequest
public Date getStartTime()
getStartTime
in interface MavenExecutionRequest
public boolean isShowErrors()
isShowErrors
in interface MavenExecutionRequest
public boolean isInteractiveMode()
isInteractiveMode
in interface MavenExecutionRequest
public MavenExecutionRequest setActiveProfiles(List<String> activeProfiles)
setActiveProfiles
in interface MavenExecutionRequest
public MavenExecutionRequest setInactiveProfiles(List<String> inactiveProfiles)
setInactiveProfiles
in interface MavenExecutionRequest
public MavenExecutionRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
MavenExecutionRequest
setRemoteRepositories
in interface MavenExecutionRequest
null
.public MavenExecutionRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories)
setPluginArtifactRepositories
in interface MavenExecutionRequest
public void setProjectBuildingConfiguration(ProjectBuildingRequest projectBuildingConfiguration)
public List<String> getActiveProfiles()
getActiveProfiles
in interface MavenExecutionRequest
public List<String> getInactiveProfiles()
getInactiveProfiles
in interface MavenExecutionRequest
public org.eclipse.aether.transfer.TransferListener getTransferListener()
getTransferListener
in interface MavenExecutionRequest
public int getLoggingLevel()
getLoggingLevel
in interface MavenExecutionRequest
public boolean isOffline()
isOffline
in interface MavenExecutionRequest
public boolean isUpdateSnapshots()
isUpdateSnapshots
in interface MavenExecutionRequest
public boolean isNoSnapshotUpdates()
isNoSnapshotUpdates
in interface MavenExecutionRequest
public String getGlobalChecksumPolicy()
getGlobalChecksumPolicy
in interface MavenExecutionRequest
public boolean isRecursive()
isRecursive
in interface MavenExecutionRequest
public MavenExecutionRequest setBaseDirectory(File basedir)
setBaseDirectory
in interface MavenExecutionRequest
public MavenExecutionRequest setStartTime(Date startTime)
setStartTime
in interface MavenExecutionRequest
public MavenExecutionRequest setShowErrors(boolean showErrors)
setShowErrors
in interface MavenExecutionRequest
public MavenExecutionRequest setGoals(List<String> goals)
setGoals
in interface MavenExecutionRequest
public MavenExecutionRequest setLocalRepository(ArtifactRepository localRepository)
setLocalRepository
in interface MavenExecutionRequest
public MavenExecutionRequest setLocalRepositoryPath(File localRepository)
setLocalRepositoryPath
in interface MavenExecutionRequest
public MavenExecutionRequest setLocalRepositoryPath(String localRepository)
setLocalRepositoryPath
in interface MavenExecutionRequest
public MavenExecutionRequest setSystemProperties(Properties properties)
MavenExecutionRequest
System.getProperties()
and environment variables.setSystemProperties
in interface MavenExecutionRequest
properties
- The system properties, may be null
.null
.public MavenExecutionRequest setUserProperties(Properties userProperties)
MavenExecutionRequest
-Dkey=value
parameter on the command
line.setUserProperties
in interface MavenExecutionRequest
userProperties
- The user properties, may be null
.null
.public MavenExecutionRequest setReactorFailureBehavior(String failureBehavior)
setReactorFailureBehavior
in interface MavenExecutionRequest
public MavenExecutionRequest setSelectedProjects(List<String> selectedProjects)
setSelectedProjects
in interface MavenExecutionRequest
public MavenExecutionRequest setExcludedProjects(List<String> excludedProjects)
setExcludedProjects
in interface MavenExecutionRequest
excludedProjects
- the projects to excludepublic MavenExecutionRequest setResumeFrom(String project)
setResumeFrom
in interface MavenExecutionRequest
public MavenExecutionRequest setMakeBehavior(String makeBehavior)
setMakeBehavior
in interface MavenExecutionRequest
public MavenExecutionRequest addActiveProfile(String profile)
addActiveProfile
in interface MavenExecutionRequest
public MavenExecutionRequest addInactiveProfile(String profile)
addInactiveProfile
in interface MavenExecutionRequest
public MavenExecutionRequest addActiveProfiles(List<String> profiles)
addActiveProfiles
in interface MavenExecutionRequest
public MavenExecutionRequest addInactiveProfiles(List<String> profiles)
addInactiveProfiles
in interface MavenExecutionRequest
public MavenExecutionRequest setUseReactor(boolean reactorActive)
public boolean useReactor()
@Deprecated public MavenExecutionRequest setPomFile(String pomFilename)
setPom(File)
public MavenExecutionRequest setPom(File pom)
setPom
in interface MavenExecutionRequest
public MavenExecutionRequest setInteractiveMode(boolean interactive)
setInteractiveMode
in interface MavenExecutionRequest
public MavenExecutionRequest setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener)
setTransferListener
in interface MavenExecutionRequest
public MavenExecutionRequest setLoggingLevel(int loggingLevel)
setLoggingLevel
in interface MavenExecutionRequest
public MavenExecutionRequest setOffline(boolean offline)
setOffline
in interface MavenExecutionRequest
public MavenExecutionRequest setUpdateSnapshots(boolean updateSnapshots)
setUpdateSnapshots
in interface MavenExecutionRequest
public MavenExecutionRequest setNoSnapshotUpdates(boolean noSnapshotUpdates)
setNoSnapshotUpdates
in interface MavenExecutionRequest
public MavenExecutionRequest setGlobalChecksumPolicy(String globalChecksumPolicy)
setGlobalChecksumPolicy
in interface MavenExecutionRequest
public List<Proxy> getProxies()
getProxies
in interface MavenExecutionRequest
public MavenExecutionRequest setProxies(List<Proxy> proxies)
setProxies
in interface MavenExecutionRequest
public MavenExecutionRequest addProxy(Proxy proxy)
addProxy
in interface MavenExecutionRequest
public List<Server> getServers()
getServers
in interface MavenExecutionRequest
public MavenExecutionRequest setServers(List<Server> servers)
setServers
in interface MavenExecutionRequest
public MavenExecutionRequest addServer(Server server)
addServer
in interface MavenExecutionRequest
public List<Mirror> getMirrors()
getMirrors
in interface MavenExecutionRequest
public MavenExecutionRequest setMirrors(List<Mirror> mirrors)
setMirrors
in interface MavenExecutionRequest
public MavenExecutionRequest addMirror(Mirror mirror)
addMirror
in interface MavenExecutionRequest
public List<Profile> getProfiles()
getProfiles
in interface MavenExecutionRequest
public MavenExecutionRequest setProfiles(List<Profile> profiles)
setProfiles
in interface MavenExecutionRequest
public List<String> getPluginGroups()
getPluginGroups
in interface MavenExecutionRequest
public MavenExecutionRequest setPluginGroups(List<String> pluginGroups)
setPluginGroups
in interface MavenExecutionRequest
public MavenExecutionRequest addPluginGroup(String pluginGroup)
addPluginGroup
in interface MavenExecutionRequest
public MavenExecutionRequest addPluginGroups(List<String> pluginGroups)
addPluginGroups
in interface MavenExecutionRequest
public MavenExecutionRequest setRecursive(boolean recursive)
setRecursive
in interface MavenExecutionRequest
public boolean isProjectPresent()
isProjectPresent
in interface MavenExecutionRequest
public MavenExecutionRequest setProjectPresent(boolean projectPresent)
setProjectPresent
in interface MavenExecutionRequest
public File getUserSettingsFile()
getUserSettingsFile
in interface MavenExecutionRequest
public MavenExecutionRequest setUserSettingsFile(File userSettingsFile)
setUserSettingsFile
in interface MavenExecutionRequest
public File getGlobalSettingsFile()
getGlobalSettingsFile
in interface MavenExecutionRequest
public MavenExecutionRequest setGlobalSettingsFile(File globalSettingsFile)
setGlobalSettingsFile
in interface MavenExecutionRequest
public File getUserToolchainsFile()
getUserToolchainsFile
in interface MavenExecutionRequest
public MavenExecutionRequest setUserToolchainsFile(File userToolchainsFile)
setUserToolchainsFile
in interface MavenExecutionRequest
public File getGlobalToolchainsFile()
getGlobalToolchainsFile
in interface MavenExecutionRequest
public MavenExecutionRequest setGlobalToolchainsFile(File globalToolchainsFile)
setGlobalToolchainsFile
in interface MavenExecutionRequest
globalToolchainsFile
- the global toolchains filepublic MavenExecutionRequest addRemoteRepository(ArtifactRepository repository)
addRemoteRepository
in interface MavenExecutionRequest
public List<ArtifactRepository> getRemoteRepositories()
getRemoteRepositories
in interface MavenExecutionRequest
public MavenExecutionRequest addPluginArtifactRepository(ArtifactRepository repository)
addPluginArtifactRepository
in interface MavenExecutionRequest
public List<ArtifactRepository> getPluginArtifactRepositories()
getPluginArtifactRepositories
in interface MavenExecutionRequest
public ProjectBuildingRequest getProjectBuildingRequest()
getProjectBuildingRequest
in interface MavenExecutionRequest
public MavenExecutionRequest addProfile(Profile profile)
addProfile
in interface MavenExecutionRequest
public org.eclipse.aether.RepositoryCache getRepositoryCache()
getRepositoryCache
in interface MavenExecutionRequest
public MavenExecutionRequest setRepositoryCache(org.eclipse.aether.RepositoryCache repositoryCache)
setRepositoryCache
in interface MavenExecutionRequest
public ExecutionListener getExecutionListener()
getExecutionListener
in interface MavenExecutionRequest
public MavenExecutionRequest setExecutionListener(ExecutionListener executionListener)
setExecutionListener
in interface MavenExecutionRequest
public void setDegreeOfConcurrency(int degreeOfConcurrency)
MavenExecutionRequest
setDegreeOfConcurrency
in interface MavenExecutionRequest
public int getDegreeOfConcurrency()
getDegreeOfConcurrency
in interface MavenExecutionRequest
public org.eclipse.aether.repository.WorkspaceReader getWorkspaceReader()
getWorkspaceReader
in interface MavenExecutionRequest
public MavenExecutionRequest setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader)
setWorkspaceReader
in interface MavenExecutionRequest
public boolean isCacheTransferError()
isCacheTransferError
in interface MavenExecutionRequest
public MavenExecutionRequest setCacheTransferError(boolean cacheTransferError)
setCacheTransferError
in interface MavenExecutionRequest
public boolean isCacheNotFound()
isCacheNotFound
in interface MavenExecutionRequest
public MavenExecutionRequest setCacheNotFound(boolean cacheNotFound)
setCacheNotFound
in interface MavenExecutionRequest
public boolean isUseLegacyLocalRepository()
isUseLegacyLocalRepository
in interface MavenExecutionRequest
public MavenExecutionRequest setUseLegacyLocalRepository(boolean useLegacyLocalRepositoryManager)
setUseLegacyLocalRepository
in interface MavenExecutionRequest
public MavenExecutionRequest setBuilderId(String builderId)
MavenExecutionRequest
Builder
used by Maven by specification
of the builder's id.setBuilderId
in interface MavenExecutionRequest
public String getBuilderId()
MavenExecutionRequest
Builder
used by Maven by specification
of the builders id.getBuilderId
in interface MavenExecutionRequest
public Map<String,List<ToolchainModel>> getToolchains()
getToolchains
in interface MavenExecutionRequest
null
public MavenExecutionRequest setToolchains(Map<String,List<ToolchainModel>> toolchains)
setToolchains
in interface MavenExecutionRequest
toolchains
- all toolchains grouped by typepublic void setMultiModuleProjectDirectory(File directory)
setMultiModuleProjectDirectory
in interface MavenExecutionRequest
public File getMultiModuleProjectDirectory()
getMultiModuleProjectDirectory
in interface MavenExecutionRequest
public MavenExecutionRequest setEventSpyDispatcher(EventSpyDispatcher eventSpyDispatcher)
setEventSpyDispatcher
in interface MavenExecutionRequest
public EventSpyDispatcher getEventSpyDispatcher()
getEventSpyDispatcher
in interface MavenExecutionRequest
public Map<String,Object> getData()
getData
in interface MavenExecutionRequest
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.