Package org.apache.maven.execution
Interface MavenExecutionRequest
-
- All Known Implementing Classes:
DefaultMavenExecutionRequest
public interface MavenExecutionRequest
- Author:
- Jason van Zyl
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHECKSUM_POLICY_FAIL
static String
CHECKSUM_POLICY_WARN
static int
LOGGING_LEVEL_DEBUG
static int
LOGGING_LEVEL_DISABLED
static int
LOGGING_LEVEL_ERROR
static int
LOGGING_LEVEL_FATAL
static int
LOGGING_LEVEL_INFO
static int
LOGGING_LEVEL_WARN
static String
REACTOR_FAIL_AT_END
static String
REACTOR_FAIL_FAST
static String
REACTOR_FAIL_NEVER
static String
REACTOR_MAKE_BOTH
static String
REACTOR_MAKE_DOWNSTREAM
static String
REACTOR_MAKE_UPSTREAM
-
Method Summary
-
-
-
Field Detail
-
LOGGING_LEVEL_DEBUG
static final int LOGGING_LEVEL_DEBUG
- See Also:
- Constant Field Values
-
LOGGING_LEVEL_INFO
static final int LOGGING_LEVEL_INFO
- See Also:
- Constant Field Values
-
LOGGING_LEVEL_WARN
static final int LOGGING_LEVEL_WARN
- See Also:
- Constant Field Values
-
LOGGING_LEVEL_ERROR
static final int LOGGING_LEVEL_ERROR
- See Also:
- Constant Field Values
-
LOGGING_LEVEL_FATAL
static final int LOGGING_LEVEL_FATAL
- See Also:
- Constant Field Values
-
LOGGING_LEVEL_DISABLED
static final int LOGGING_LEVEL_DISABLED
- See Also:
- Constant Field Values
-
REACTOR_FAIL_FAST
static final String REACTOR_FAIL_FAST
- See Also:
- Constant Field Values
-
REACTOR_FAIL_AT_END
static final String REACTOR_FAIL_AT_END
- See Also:
- Constant Field Values
-
REACTOR_FAIL_NEVER
static final String REACTOR_FAIL_NEVER
- See Also:
- Constant Field Values
-
REACTOR_MAKE_UPSTREAM
static final String REACTOR_MAKE_UPSTREAM
- See Also:
- Constant Field Values
-
REACTOR_MAKE_DOWNSTREAM
static final String REACTOR_MAKE_DOWNSTREAM
- See Also:
- Constant Field Values
-
REACTOR_MAKE_BOTH
static final String REACTOR_MAKE_BOTH
- See Also:
- Constant Field Values
-
CHECKSUM_POLICY_FAIL
static final String CHECKSUM_POLICY_FAIL
- See Also:
- Constant Field Values
-
CHECKSUM_POLICY_WARN
static final String CHECKSUM_POLICY_WARN
- See Also:
- Constant Field Values
-
-
Method Detail
-
setBaseDirectory
MavenExecutionRequest setBaseDirectory(File basedir)
-
getBaseDirectory
String getBaseDirectory()
-
setStartTime
MavenExecutionRequest setStartTime(Date start)
-
getStartTime
Date getStartTime()
-
setGoals
MavenExecutionRequest setGoals(List<String> goals)
-
setSystemProperties
MavenExecutionRequest setSystemProperties(Properties systemProperties)
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.- Parameters:
systemProperties
- The system properties, may benull
.- Returns:
- This request, never
null
.
-
getSystemProperties
Properties getSystemProperties()
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.- Returns:
- The system properties, never
null
.
-
setUserProperties
MavenExecutionRequest setUserProperties(Properties userProperties)
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.- Parameters:
userProperties
- The user properties, may benull
.- Returns:
- This request, never
null
.
-
getUserProperties
Properties getUserProperties()
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.- Returns:
- The user properties, never
null
.
-
setReactorFailureBehavior
MavenExecutionRequest setReactorFailureBehavior(String failureBehavior)
-
getReactorFailureBehavior
String getReactorFailureBehavior()
-
setSelectedProjects
MavenExecutionRequest setSelectedProjects(List<String> projects)
-
setExcludedProjects
MavenExecutionRequest setExcludedProjects(List<String> projects)
- Parameters:
projects
- the projects to exclude- Returns:
- this MavenExecutionRequest
- Since:
- 3.2
-
getExcludedProjects
List<String> getExcludedProjects()
- Returns:
- the excluded projects, never
null
- Since:
- 3.2
-
setResumeFrom
MavenExecutionRequest setResumeFrom(String project)
-
getResumeFrom
String getResumeFrom()
-
setMakeBehavior
MavenExecutionRequest setMakeBehavior(String makeBehavior)
-
getMakeBehavior
String getMakeBehavior()
-
setDegreeOfConcurrency
void setDegreeOfConcurrency(int degreeOfConcurrency)
Set's the parallel degree of concurrency used by the build.- Parameters:
degreeOfConcurrency
-
-
getDegreeOfConcurrency
int getDegreeOfConcurrency()
- Returns:
- the degree of concurrency for the build.
-
setRecursive
MavenExecutionRequest setRecursive(boolean recursive)
-
isRecursive
boolean isRecursive()
-
setPom
MavenExecutionRequest setPom(File pom)
-
getPom
File getPom()
-
setShowErrors
MavenExecutionRequest setShowErrors(boolean showErrors)
-
isShowErrors
boolean isShowErrors()
-
setTransferListener
MavenExecutionRequest setTransferListener(org.eclipse.aether.transfer.TransferListener transferListener)
-
getTransferListener
org.eclipse.aether.transfer.TransferListener getTransferListener()
-
setLoggingLevel
MavenExecutionRequest setLoggingLevel(int loggingLevel)
-
getLoggingLevel
int getLoggingLevel()
-
setUpdateSnapshots
MavenExecutionRequest setUpdateSnapshots(boolean updateSnapshots)
-
isUpdateSnapshots
boolean isUpdateSnapshots()
-
setNoSnapshotUpdates
MavenExecutionRequest setNoSnapshotUpdates(boolean noSnapshotUpdates)
-
isNoSnapshotUpdates
boolean isNoSnapshotUpdates()
-
setGlobalChecksumPolicy
MavenExecutionRequest setGlobalChecksumPolicy(String globalChecksumPolicy)
-
getGlobalChecksumPolicy
String getGlobalChecksumPolicy()
-
setLocalRepositoryPath
MavenExecutionRequest setLocalRepositoryPath(String localRepository)
-
setLocalRepositoryPath
MavenExecutionRequest setLocalRepositoryPath(File localRepository)
-
getLocalRepositoryPath
File getLocalRepositoryPath()
-
setLocalRepository
MavenExecutionRequest setLocalRepository(ArtifactRepository repository)
-
getLocalRepository
ArtifactRepository getLocalRepository()
-
setInteractiveMode
MavenExecutionRequest setInteractiveMode(boolean interactive)
-
isInteractiveMode
boolean isInteractiveMode()
-
setOffline
MavenExecutionRequest setOffline(boolean offline)
-
isOffline
boolean isOffline()
-
isCacheTransferError
boolean isCacheTransferError()
-
setCacheTransferError
MavenExecutionRequest setCacheTransferError(boolean cacheTransferError)
-
isCacheNotFound
boolean isCacheNotFound()
-
setCacheNotFound
MavenExecutionRequest setCacheNotFound(boolean cacheNotFound)
-
addProfile
MavenExecutionRequest addProfile(Profile profile)
-
setProfiles
MavenExecutionRequest setProfiles(List<Profile> profiles)
-
addActiveProfile
MavenExecutionRequest addActiveProfile(String profile)
-
addActiveProfiles
MavenExecutionRequest addActiveProfiles(List<String> profiles)
-
setActiveProfiles
MavenExecutionRequest setActiveProfiles(List<String> profiles)
-
addInactiveProfile
MavenExecutionRequest addInactiveProfile(String profile)
-
addInactiveProfiles
MavenExecutionRequest addInactiveProfiles(List<String> profiles)
-
setInactiveProfiles
MavenExecutionRequest setInactiveProfiles(List<String> profiles)
-
setProxies
MavenExecutionRequest setProxies(List<Proxy> proxies)
-
addProxy
MavenExecutionRequest addProxy(Proxy proxy)
-
setServers
MavenExecutionRequest setServers(List<Server> servers)
-
addServer
MavenExecutionRequest addServer(Server server)
-
setMirrors
MavenExecutionRequest setMirrors(List<Mirror> mirrors)
-
addMirror
MavenExecutionRequest addMirror(Mirror mirror)
-
setPluginGroups
MavenExecutionRequest setPluginGroups(List<String> pluginGroups)
-
addPluginGroup
MavenExecutionRequest addPluginGroup(String pluginGroup)
-
addPluginGroups
MavenExecutionRequest addPluginGroups(List<String> pluginGroups)
-
isProjectPresent
boolean isProjectPresent()
-
setProjectPresent
MavenExecutionRequest setProjectPresent(boolean isProjectPresent)
-
getUserSettingsFile
File getUserSettingsFile()
-
setUserSettingsFile
MavenExecutionRequest setUserSettingsFile(File userSettingsFile)
-
getGlobalSettingsFile
File getGlobalSettingsFile()
-
setGlobalSettingsFile
MavenExecutionRequest setGlobalSettingsFile(File globalSettingsFile)
-
addRemoteRepository
MavenExecutionRequest addRemoteRepository(ArtifactRepository repository)
-
addPluginArtifactRepository
MavenExecutionRequest addPluginArtifactRepository(ArtifactRepository repository)
-
setRemoteRepositories
MavenExecutionRequest setRemoteRepositories(List<ArtifactRepository> repositories)
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.- Parameters:
repositories
-- Returns:
- This request, never
null
.
-
getRemoteRepositories
List<ArtifactRepository> getRemoteRepositories()
-
setPluginArtifactRepositories
MavenExecutionRequest setPluginArtifactRepositories(List<ArtifactRepository> repositories)
-
getPluginArtifactRepositories
List<ArtifactRepository> getPluginArtifactRepositories()
-
setRepositoryCache
MavenExecutionRequest setRepositoryCache(org.eclipse.aether.RepositoryCache repositoryCache)
-
getRepositoryCache
org.eclipse.aether.RepositoryCache getRepositoryCache()
-
getWorkspaceReader
org.eclipse.aether.repository.WorkspaceReader getWorkspaceReader()
-
setWorkspaceReader
MavenExecutionRequest setWorkspaceReader(org.eclipse.aether.repository.WorkspaceReader workspaceReader)
-
getUserToolchainsFile
File getUserToolchainsFile()
-
setUserToolchainsFile
MavenExecutionRequest setUserToolchainsFile(File userToolchainsFile)
-
getGlobalToolchainsFile
File getGlobalToolchainsFile()
- Returns:
- the global toolchains file
- Since:
- 3.3.0
-
setGlobalToolchainsFile
MavenExecutionRequest setGlobalToolchainsFile(File globalToolchainsFile)
- Parameters:
globalToolchainsFile
- the global toolchains file- Returns:
- this request
- Since:
- 3.3.0
-
getExecutionListener
ExecutionListener getExecutionListener()
-
setExecutionListener
MavenExecutionRequest setExecutionListener(ExecutionListener executionListener)
-
getProjectBuildingRequest
ProjectBuildingRequest getProjectBuildingRequest()
-
isUseLegacyLocalRepository
@Deprecated boolean isUseLegacyLocalRepository()
Deprecated.Since 3.9 there is no direct Maven2 interop offered at LRM level. See Resolver Configuration page optionaether.artifactResolver.simpleLrmInterop
that provides similar semantics. This method should be never invoked, and always returnsfalse
.- Since:
- 3.1
-
setUseLegacyLocalRepository
@Deprecated MavenExecutionRequest setUseLegacyLocalRepository(boolean useLegacyLocalRepository)
Deprecated.Since 3.9 there is no direct Maven2 interop offered at LRM level. See Resolver Configuration page optionaether.artifactResolver.simpleLrmInterop
that provides similar semantics. This method should be never invoked, and ignores parameter (value remains alwaysfalse
).- Since:
- 3.1
-
setBuilderId
MavenExecutionRequest setBuilderId(String builderId)
Controls theBuilder
used by Maven by specification of the builder's id.- Since:
- 3.2.0
-
getBuilderId
String getBuilderId()
Controls theBuilder
used by Maven by specification of the builders id.- Since:
- 3.2.0
-
setToolchains
MavenExecutionRequest setToolchains(Map<String,List<ToolchainModel>> toolchains)
- Parameters:
toolchains
- all toolchains grouped by type- Returns:
- this request
- Since:
- 3.3.0
-
getToolchains
Map<String,List<ToolchainModel>> getToolchains()
- Returns:
- all toolchains grouped by type, never
null
- Since:
- 3.3.0
-
setMultiModuleProjectDirectory
void setMultiModuleProjectDirectory(File file)
- Since:
- 3.3.0
-
getMultiModuleProjectDirectory
File getMultiModuleProjectDirectory()
- Since:
- 3.3.0
-
setEventSpyDispatcher
MavenExecutionRequest setEventSpyDispatcher(EventSpyDispatcher eventSpyDispatcher)
- Since:
- 3.3.0
-
getEventSpyDispatcher
EventSpyDispatcher getEventSpyDispatcher()
- Since:
- 3.3.0
-
-