public interface ConfigurationStage<DIST_OR_CONFIG extends ConfigurationStage,DAEMON_TRIGGER_TYPE extends DaemonBuildTrigger> extends BuildStage<DAEMON_TRIGGER_TYPE>
| Modifier and Type | Method and Description |
|---|---|
DIST_OR_CONFIG |
addProperty(String key,
String value)
Adds the property to the list of properties.
|
DIST_OR_CONFIG |
addShellEnvironment(String name,
String value)
Adds the specified environment variable to the Maven invocation.
|
DIST_OR_CONFIG |
setAlsoMake(boolean alsoMake)
Enable the 'also make' mode.
|
DIST_OR_CONFIG |
setAlsoMakeDependents(boolean alsoMakeDependents)
Enable the 'also make dependents' mode.
|
DIST_OR_CONFIG |
setAlternatePomFile(String pomFile)
Sets an alternate POM file.
|
DIST_OR_CONFIG |
setBatchMode(boolean batchMode)
Sets the interaction mode of the Maven invocation.
|
DIST_OR_CONFIG |
setBuilder(String id)
The id of the build strategy to use.
|
DIST_OR_CONFIG |
setDebug(boolean debug)
Sets the debug mode of the Maven invocation.
|
DIST_OR_CONFIG |
setDebugLoggerLevel()
Sets the threshold of current
InvokerLogger to InvokerLogger.DEBUG. |
DIST_OR_CONFIG |
setGlobalChecksumPolicy(org.apache.maven.shared.invoker.InvocationRequest.CheckSumPolicy globalChecksumPolicy)
Sets the checksum mode of the Maven invocation.
|
DIST_OR_CONFIG |
setGlobalSettingsFile(File globalSettingsFile)
Sets the path to the global settings for the Maven invocation.
|
DIST_OR_CONFIG |
setGlobalToolchainsFile(File toolchains)
Sets the alternate path for the global toolchains file Equivalent of
-gt or --global-toolchains |
DIST_OR_CONFIG |
setGoals(List<String> goals)
Sets the goals for the Maven invocation.
|
DIST_OR_CONFIG |
setGoals(String... goals)
Sets the goals for the Maven invocation.
|
DIST_OR_CONFIG |
setInputStream(InputStream inputStream)
Sets the input stream used to provide input for the invoked Maven build.
|
DIST_OR_CONFIG |
setJavaHome(File javaHome)
Sets the path to the base directory of the Java installation used to run Maven.
|
DIST_OR_CONFIG |
setLocalRepositoryDirectory(File localRepositoryDirectory)
Sets the path to the base directory of the local repository to use for the Maven invocation.
|
DIST_OR_CONFIG |
setLogger(org.apache.maven.shared.invoker.InvokerLogger invokerLogger)
Sets the input stream used to provide input for the invoked Maven build.
|
DIST_OR_CONFIG |
setMavenOpts(String mavenOpts)
Sets the value of the MAVEN_OPTS environment variable.
|
DIST_OR_CONFIG |
setNonPluginUpdates(boolean nonPluginUpdates)
Specifies whether Maven should check for plugin updates.
|
DIST_OR_CONFIG |
setOffline(boolean offline)
Sets the network mode of the Maven invocation.
|
DIST_OR_CONFIG |
setProfiles(List<String> profiles)
Sets the profiles for the Maven invocation.
|
DIST_OR_CONFIG |
setProfiles(String... profiles)
Sets the profiles for the Maven invocation.
|
DIST_OR_CONFIG |
setProjects(List<String> projects)
Sets the reactor project list.
|
DIST_OR_CONFIG |
setProjects(String... projects)
Sets the reactor project list.
|
DIST_OR_CONFIG |
setProperties(Properties properties)
Sets the system properties for the Maven invocation.
|
DIST_OR_CONFIG |
setQuiet()
Puts the build output into the quiet mode.
|
DIST_OR_CONFIG |
setQuiet(boolean quiet)
Sets if the build output shold be in the quiet mode or not.
|
DIST_OR_CONFIG |
setReactorFailureBehavior(org.apache.maven.shared.invoker.InvocationRequest.ReactorFailureBehavior reactorFailureBehavior)
Sets the failure mode of the Maven invocation.
|
DIST_OR_CONFIG |
setRecursive(boolean recursive)
Sets the recursion behavior of a reactor invocation.
|
DIST_OR_CONFIG |
setResumeFrom(String resumeFrom)
Resume reactor from specified project.
|
DIST_OR_CONFIG |
setShellEnvironmentInherited(boolean shellEnvironmentInherited)
Specifies whether the environment variables of the current process should be propagated to the Maven invocation.
|
DIST_OR_CONFIG |
setShowErrors(boolean showErrors)
Sets the exception output mode of the Maven invocation.
|
DIST_OR_CONFIG |
setShowVersion(boolean showVersion)
enable displaying version without stopping the build Equivalent of -V or --show-version
|
DIST_OR_CONFIG |
setThreads(String threads)
Thread count, for instance 2.0C where C is core multiplied Equivalent of -T or --threads
|
DIST_OR_CONFIG |
setToolchainsFile(File toolchainsFile)
Sets the alternate path for the user toolchains file Equivalent of -t or --toolchains
|
DIST_OR_CONFIG |
setUpdateSnapshots(boolean updateSnapshots)
Specifies whether Maven should enforce an update check for plugins and snapshots.
|
DIST_OR_CONFIG |
setUserSettingsFile(File userSettingsFile)
Sets the path to the user settings for the Maven invocation.
|
DIST_OR_CONFIG |
setWorkingDirectory(File workingDirectory)
Sets the working directory for the Maven invocation.
|
DIST_OR_CONFIG |
skipTests(boolean skipTests)
Specifies whether the test of the project should be skipped during Maven build - Equivalent of --skipTests.
|
build, ignoreFailure, ignoreFailureuseAsDaemonDIST_OR_CONFIG setBatchMode(boolean batchMode)
-B and --batch-modebatchMode - true if Maven should be executed in non-interactive mode, false if the
interactive modes is used.DIST_OR_CONFIG setOffline(boolean offline)
offline - true if Maven should be executed in offline mode, false if the online mode is used.DIST_OR_CONFIG setDebug(boolean debug)
debug - true if Maven should be executed in debug mode, false if the normal mode should be used.DIST_OR_CONFIG setShowErrors(boolean showErrors)
showErrors - true if Maven should print stack traces, false otherwise.DIST_OR_CONFIG setUpdateSnapshots(boolean updateSnapshots)
updateSnapshots - true if plugins and snapshots should be updated, false otherwise.DIST_OR_CONFIG setReactorFailureBehavior(org.apache.maven.shared.invoker.InvocationRequest.ReactorFailureBehavior reactorFailureBehavior)
-ff and --fail-fast, -fae
and --fail-at-end, -fn and --fail-neverfailureBehavior - The failure mode, must be one of InvocationRequest.ReactorFailureBehavior#FailFast,
InvocationRequest.ReactorFailureBehavior#FailAtEnd and InvocationRequest.ReactorFailureBehavior#FailNever.DIST_OR_CONFIG setBuilder(String id)
--builder id. Note. This is available since Maven
3.2.1id - The builder id.DIST_OR_CONFIG setLocalRepositoryDirectory(File localRepositoryDirectory)
localRepositoryDirectory - The path to the base directory of the local repository, may be null.DIST_OR_CONFIG setLogger(org.apache.maven.shared.invoker.InvokerLogger invokerLogger)
invokerLogger - The input stream used to provide input for the invoked Maven build, may be null if not required.DIST_OR_CONFIG setWorkingDirectory(File workingDirectory)
workingDirectory - The working directory for the Maven invocation, may be null to derive the working directory from the base directory of the processed POM.DIST_OR_CONFIG setInputStream(InputStream inputStream)
inputStream - The input stream used to provide input for the invoked Maven build, may be null if not required.DIST_OR_CONFIG setJavaHome(File javaHome)
javaHome - The path to the base directory of the Java installation used to run Maven, may be null to use the default Java home.DIST_OR_CONFIG setProperties(Properties properties)
properties - The system properties for the Maven invocation, may be null if not set.DIST_OR_CONFIG addProperty(String key, String value)
key - The key of the property to be addedvalue - The value of the property to be addedDIST_OR_CONFIG skipTests(boolean skipTests)
trueskipTests - false the test of the project should be invokedDIST_OR_CONFIG setGoals(List<String> goals)
goals - The goals for the Maven invocation, may be null to execute the POMs default goal.DIST_OR_CONFIG setGoals(String... goals)
goals - The goals for the Maven invocation, may be null to execute the POMs default goal.DIST_OR_CONFIG setProfiles(List<String> profiles)
profiles - The profiles for the Maven invocation, may be null to use the default profiles.DIST_OR_CONFIG setProfiles(String... profiles)
profiles - The profiles for the Maven invocation, may be null to use the default profiles.DIST_OR_CONFIG setShellEnvironmentInherited(boolean shellEnvironmentInherited)
shellEnvironmentInherited - true if the environment variables should be propagated, false otherwise.DIST_OR_CONFIG setUserSettingsFile(File userSettingsFile)
userSettingsFile - The path to the user settings for the Maven invocation, may be null to load the user settings from the default location.DIST_OR_CONFIG setGlobalSettingsFile(File globalSettingsFile)
globalSettingsFile - The path to the global settings for the Maven invocation, may be null to load the global settings from the default location.DIST_OR_CONFIG setToolchainsFile(File toolchainsFile)
toolchainsFile - the alternate path for the user toolchains fileDIST_OR_CONFIG setGlobalToolchainsFile(File toolchains)
-gt or --global-toolchainstoolchains - the alternate path for the global toolchains fileDIST_OR_CONFIG setGlobalChecksumPolicy(org.apache.maven.shared.invoker.InvocationRequest.CheckSumPolicy globalChecksumPolicy)
-c or --lax-checksums, -C
or --strict-checksumsglobalChecksumPolicy - The checksum mode, must be one of InvocationRequest.CheckSumPolicy#Warn and
InvocationRequest.CheckSumPolicy#Fail.DIST_OR_CONFIG setNonPluginUpdates(boolean nonPluginUpdates)
Equivalent of -npu or --no-plugin-updates note: Ineffective with Maven3, only kept for backward compatibility
nonPluginUpdates - true if plugin updates should be suppressed, false otherwise.DIST_OR_CONFIG setRecursive(boolean recursive)
recursive - true if sub modules should be build, false otherwise.DIST_OR_CONFIG addShellEnvironment(String name, String value)
name - The name of the environment variable, must not be null.value - The value of the environment variable, must not be null.DIST_OR_CONFIG setMavenOpts(String mavenOpts)
mavenOpts - The value of the MAVEN_OPTS environment variable, may be null to use the default options.DIST_OR_CONFIG setShowVersion(boolean showVersion)
showVersion - enable displaying versionDIST_OR_CONFIG setThreads(String threads)
threads - the threadcountDIST_OR_CONFIG setProjects(List<String> projects)
projects - the reactor project listDIST_OR_CONFIG setProjects(String... projects)
projects - the reactor project listDIST_OR_CONFIG setAlsoMake(boolean alsoMake)
alsoMake - enable 'also make' modeDIST_OR_CONFIG setAlsoMakeDependents(boolean alsoMakeDependents)
alsoMakeDependents - enable 'also make' modeDIST_OR_CONFIG setResumeFrom(String resumeFrom)
resumeFrom - set the project to resume fromDIST_OR_CONFIG setQuiet(boolean quiet)
BuiltProject.getMavenLog(). Default is falsequiet - If the build should be in quite mode;DIST_OR_CONFIG setQuiet()
BuiltProject.getMavenLog().DIST_OR_CONFIG setAlternatePomFile(String pomFile)
pomFile - the alternate POM file (or directory with pom.xml), may be null to use the already processed pom.DIST_OR_CONFIG setDebugLoggerLevel()
InvokerLogger to InvokerLogger.DEBUG.
As a result, you will see (among other things) the command that will be used for Maven build invocation.Copyright © 2024 JBoss by Red Hat. All rights reserved.