Interface MavenOptions
- All Superinterfaces:
Options
- All Known Implementing Classes:
CommonsCliMavenOptions
,LayeredMavenOptions
Defines the options specific to Maven operations.
This interface extends the general
Options
interface, adding Maven-specific configuration options.
These options represent the various flags and settings available through the Maven CLI,
as well as those that can be specified in the maven.config
file. They provide fine-grained
control over Maven's behavior during the build process.
- Since:
- 4.0.0
-
Field Summary
Fields inherited from interface org.apache.maven.api.cli.Options
SOURCE_CLI
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of profiles to activate.alsoMake()
Indicates whether Maven should also build the specified projects' dependencies.Indicates whether Maven should also build the specified projects' dependents.Returns the path to an alternate POM file.atFile()
Specifies "@file"-like file, to load up command line from.builder()
Returns the id of the build strategy to use.Indicates whether Maven should cache the "not found" status of artifacts that were not found in remote repositories.Indicates whether Maven should run all builds but defer error reporting to the end.failFast()
Indicates whether Maven should stop at the first failure in a multi-module build.Indicates whether Maven should never fail the build, regardless of project result.goals()
Returns the list of goals and phases to execute.Indicates whether Maven should ignore transitive repositories.Indicates whether Maven should operate in non-recursive mode (i.e., not build child modules).Indicates whether Maven should not display transfer progress when downloading or uploading.projects()
Returns the list of specified reactor projects to build instead of all projects.Indicates whether Maven should use relaxed checksum verification.resume()
Indicates whether Maven should resume from the last failed project in a previous build.Returns the project to resume the build from.Indicates whether Maven should use strict artifact descriptor policy.Indicates whether Maven should use strict checksum verification.Indicates whether Maven should suppress SNAPSHOT updates.threads()
Returns the number of threads used for parallel builds.Indicates whether Maven should force a check for updated snapshots on remote repositories.Methods inherited from interface org.apache.maven.api.cli.Options
altInstallationSettings, altInstallationToolchains, altProjectSettings, altUserSettings, altUserToolchains, color, displayHelp, failOnSeverity, forceInteractive, help, interpolate, logFile, nonInteractive, offline, quiet, rawStreams, showErrors, showVersion, showVersionAndExit, source, userProperties, verbose, warnAboutDeprecatedOptions
-
Method Details
-
alternatePomFile
-
nonRecursive
-
updateSnapshots
-
activatedProfiles
-
suppressSnapshotUpdates
-
strictChecksums
-
relaxedChecksums
-
failFast
-
failAtEnd
-
failNever
-
resume
-
resumeFrom
-
projects
-
alsoMake
-
alsoMakeDependents
-
threads
-
builder
-
noTransferProgress
-
cacheArtifactNotFound
-
strictArtifactDescriptorPolicy
-
ignoreTransitiveRepositories
-
atFile
-
goals
-