Package org.apache.maven.api
Class Constants
java.lang.Object
org.apache.maven.api.Constants
Configuration constants.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Build timestamp format.static final String
User property for enabling/disabling the consumer POM feature.static final String
User property for overriding calculated "build number" for snapshot deploys.static final String
Extensions class path.static final String
Maven home.static final String
Maven installation configuration directory.static final String
Maven installation extensions.static final String
Maven installation settings.static final String
Maven installation toolchains.static final String
ProjectBuilder parallelism.static final String
Plugin validation level.static final String
Plugin validation exclusions.static final String
Maven project configuration directory.static final String
Maven project extensions.static final String
Maven project settings.static final String
User controlled relocations.static final String
Maven central repository URL.static final String
Maven local repository.static final String
User property for chained LRM: the new "head" local repository to use, and "push" the existing into tail.static final String
User property for reverse dependency tree.static final String
User property for chained LRM: list of "tail" local repository paths (separated by comma), to be used withorg.eclipse.aether.util.repository.ChainedLocalRepositoryManager
.static final String
User property for chained LRM: whether to ignore "availability check" in tail or not.static final String
User property for selecting dependency manager behaviour regarding transitive dependencies and dependency management entries in their POMs.static final String
Resolver transport to use.static final String
static final String
static final String
User property used to store the build timestamp.static final String
Maven output color mode.static final String
Color style for debug messages.static final String
static final String
static final String
Color style for error messages.static final String
static final String
static final String
Color style for failure messages.static final String
static final String
static final String
Color style for info messages.static final String
static final String
static final String
Color style for mojo messages.static final String
static final String
static final String
static final String
Color style for project messages.static final String
static final String
static final String
Color style for strong messages.static final String
static final String
static final String
Color style for success messages.static final String
static final String
static final String
Color style for trace messages.static final String
static final String
static final String
Color style for transfer messages.static final String
static final String
static final String
Color style for warning messages.static final String
static final String
static final String
Maven user configuration directory.static final String
Maven user extensions.static final String
Maven user settings.static final String
Maven user toolchains.static final String
User property for version filter expression used in session, applied to resolving ranges: a semicolon separated list of filters to apply.static final String
User property for disabling version resolver cache. -
Method Summary
-
Field Details
-
MAVEN_HOME
Maven home.- Since:
- 3.0.0
- See Also:
-
MAVEN_INSTALLATION_CONF
Maven installation configuration directory.- Since:
- 4.0.0
- See Also:
-
MAVEN_USER_CONF
Maven user configuration directory.- Since:
- 4.0.0
- See Also:
-
MAVEN_PROJECT_CONF
Maven project configuration directory.- Since:
- 4.0.0
- See Also:
-
MAVEN_REPO_LOCAL
Maven local repository.- Since:
- 3.0.0
- See Also:
-
MAVEN_REPO_CENTRAL
@Config(defaultValue="https://repo.maven.apache.org/maven2") public static final String MAVEN_REPO_CENTRALMaven central repository URL. The property will have the value of theMAVEN_REPO_CENTRAL
environment variable if it is defined.- Since:
- 4.0.0
- See Also:
-
MAVEN_INSTALLATION_SETTINGS
@Config(defaultValue="${maven.installation.conf}/settings.xml") public static final String MAVEN_INSTALLATION_SETTINGSMaven installation settings.- Since:
- 4.0.0
- See Also:
-
MAVEN_USER_SETTINGS
@Config(defaultValue="${maven.user.conf}/settings.xml") public static final String MAVEN_USER_SETTINGSMaven user settings.- Since:
- 4.0.0
- See Also:
-
MAVEN_PROJECT_SETTINGS
@Config(defaultValue="${maven.project.conf}/settings.xml") public static final String MAVEN_PROJECT_SETTINGSMaven project settings.- Since:
- 4.0.0
- See Also:
-
MAVEN_INSTALLATION_EXTENSIONS
@Config(defaultValue="${maven.installation.conf}/extensions.xml") public static final String MAVEN_INSTALLATION_EXTENSIONSMaven installation extensions.- Since:
- 4.0.0
- See Also:
-
MAVEN_USER_EXTENSIONS
@Config(defaultValue="${maven.user.conf}/extensions.xml") public static final String MAVEN_USER_EXTENSIONSMaven user extensions.- Since:
- 4.0.0
- See Also:
-
MAVEN_PROJECT_EXTENSIONS
@Config(defaultValue="${maven.project.conf}/extensions.xml") public static final String MAVEN_PROJECT_EXTENSIONSMaven project extensions.- Since:
- 4.0.0
- See Also:
-
MAVEN_INSTALLATION_TOOLCHAINS
@Config(defaultValue="${maven.installation.conf}/toolchains.xml") public static final String MAVEN_INSTALLATION_TOOLCHAINSMaven installation toolchains.- Since:
- 4.0.0
- See Also:
-
MAVEN_USER_TOOLCHAINS
@Config(defaultValue="${maven.user.conf}/toolchains.xml") public static final String MAVEN_USER_TOOLCHAINSMaven user toolchains.- Since:
- 4.0.0
- See Also:
-
MAVEN_EXT_CLASS_PATH
Extensions class path.- See Also:
-
MAVEN_SETTINGS_SECURITY
@Config(defaultValue="${maven.user.conf}/settings-security4.xml") public static final String MAVEN_SETTINGS_SECURITY- See Also:
-
MAVEN_SETTINGS_SECURITY_FILE_NAME
- See Also:
-
MAVEN_STYLE_PREFIX
- See Also:
-
MAVEN_STYLE_TRANSFER_NAME
- See Also:
-
MAVEN_STYLE_TRACE_NAME
- See Also:
-
MAVEN_STYLE_DEBUG_NAME
- See Also:
-
MAVEN_STYLE_INFO_NAME
- See Also:
-
MAVEN_STYLE_WARNING_NAME
- See Also:
-
MAVEN_STYLE_ERROR_NAME
- See Also:
-
MAVEN_STYLE_SUCCESS_NAME
- See Also:
-
MAVEN_STYLE_FAILURE_NAME
- See Also:
-
MAVEN_STYLE_STRONG_NAME
- See Also:
-
MAVEN_STYLE_MOJO_NAME
- See Also:
-
MAVEN_STYLE_PROJECT_NAME
- See Also:
-
MAVEN_STYLE_TRANSFER_DEFAULT
- See Also:
-
MAVEN_STYLE_TRACE_DEFAULT
- See Also:
-
MAVEN_STYLE_DEBUG_DEFAULT
- See Also:
-
MAVEN_STYLE_INFO_DEFAULT
- See Also:
-
MAVEN_STYLE_WARNING_DEFAULT
- See Also:
-
MAVEN_STYLE_ERROR_DEFAULT
- See Also:
-
MAVEN_STYLE_SUCCESS_DEFAULT
- See Also:
-
MAVEN_STYLE_FAILURE_DEFAULT
- See Also:
-
MAVEN_STYLE_STRONG_DEFAULT
- See Also:
-
MAVEN_STYLE_MOJO_DEFAULT
- See Also:
-
MAVEN_STYLE_PROJECT_DEFAULT
- See Also:
-
MAVEN_STYLE_COLOR_PROPERTY
Maven output color mode. Allowed values areauto
,always
,never
.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_TRANSFER
Color style for transfer messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_TRACE
Color style for trace messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_DEBUG
Color style for debug messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_INFO
Color style for info messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_WARNING
Color style for warning messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_ERROR
Color style for error messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_SUCCESS
Color style for success messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_FAILURE
Color style for failure messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_STRONG
Color style for strong messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_MOJO
Color style for mojo messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_STYLE_PROJECT
Color style for project messages.- Since:
- 4.0.0
- See Also:
-
MAVEN_BUILD_TIMESTAMP_FORMAT
@Config(source=MODEL, defaultValue="yyyy-MM-dd\'T\'HH:mm:ssXXX") public static final String MAVEN_BUILD_TIMESTAMP_FORMATBuild timestamp format.- Since:
- 3.0.0
- See Also:
-
MAVEN_RELOCATIONS_ENTRIES
User controlled relocations. This property is a comma separated list of entries with the syntaxGAV>GAV
. The firstGAV
can contain*
for any elem (so*:*:*
would mean ALL, something you don't want). The secondGAV
is either fully specified, or also can contain*
, then it behaves as "ordinary relocation": the coordinate is preserved from relocated artifact. Finally, if right handGAV
is absent (line looks likeGAV>
), the left hand matchingGAV
is banned fully (from resolving).
Note: the>
means project level, while>>
means global (whole session level, so even plugins will get relocated artifacts) relocation.
For example,maven.relocations.entries = org.foo:*:*>, \\
means: 3 entries, ban
org.here:*:*>org.there:*:*, \\
javax.inject:javax.inject:1>>jakarta.inject:jakarta.inject:1.0.5org.foo group
(exactly, soorg.foo.bar
is allowed), relocateorg.here
toorg.there
and finally globally relocate (see>>
above)javax.inject:javax.inject:1
tojakarta.inject:jakarta.inject:1.0.5
.- Since:
- 4.0.0
- See Also:
-
MAVEN_VERSION_FILTER
User property for version filter expression used in session, applied to resolving ranges: a semicolon separated list of filters to apply. By default, no version filter is applied (like in Maven 3).
Supported filters:- "h" or "h(num)" - highest version or top list of highest ones filter
- "l" or "l(num)" - lowest version or bottom list of lowest ones filter
- "s" - contextual snapshot filter
- "e(G:A:V)" - predicate filter (leaves out G:A:V from range, if hit, V can be range)
"h(5);s;e(org.foo:bar:1)
will cause: ranges are filtered for "top 5" (instead full range), snapshots are banned if root project is not a snapshot, and if range fororg.foo:bar
is being processed, version 1 is omitted. Value in this property buildsorg.eclipse.aether.collection.VersionFilter
instance.- Since:
- 4.0.0
- See Also:
-
MAVEN_REPO_LOCAL_HEAD
User property for chained LRM: the new "head" local repository to use, and "push" the existing into tail. Similar tomaven.repo.local.tail
, this property may contain comma separated list of paths to be used as local repositories (combine with chained local repository), but while latter is "appending" this one is "prepending".- Since:
- 4.0.0
- See Also:
-
MAVEN_REPO_LOCAL_TAIL
User property for chained LRM: list of "tail" local repository paths (separated by comma), to be used withorg.eclipse.aether.util.repository.ChainedLocalRepositoryManager
. Default value:null
, no chained LRM is used.- Since:
- 3.9.0
- See Also:
-
MAVEN_REPO_LOCAL_TAIL_IGNORE_AVAILABILITY
User property for chained LRM: whether to ignore "availability check" in tail or not. Usually you do want to ignore it. This property is mapped onto corresponding Resolver 2.x property, is like a synonym for it. Default value:true
. -
MAVEN_REPO_LOCAL_RECORD_REVERSE_TREE
User property for reverse dependency tree. If enabled, Maven will record ".tracking" directory into local repository with "reverse dependency tree", essentially explaining WHY given artifact is present in local repository. Default:false
, will not record anything.- Since:
- 3.9.0
- See Also:
-
MAVEN_RESOLVER_DEPENDENCY_MANAGER_TRANSITIVITY
@Config(defaultValue="true") public static final String MAVEN_RESOLVER_DEPENDENCY_MANAGER_TRANSITIVITYUser property for selecting dependency manager behaviour regarding transitive dependencies and dependency management entries in their POMs. Maven 3 targeted full backward compatibility with Maven2, hence it ignored dependency management entries in transitive dependency POMs. Maven 4 enables "transitivity" by default, hence unlike Maven2, obeys dependency management entries deep in dependency graph as well.
Default:"true"
.- Since:
- 4.0.0
- See Also:
-
MAVEN_RESOLVER_TRANSPORT
Resolver transport to use. Can bedefault
,wagon
,apache
,jdk
orauto
.- Since:
- 4.0.0
- See Also:
-
MAVEN_PLUGIN_VALIDATION
Plugin validation level.- Since:
- 3.9.2
- See Also:
-
MAVEN_PLUGIN_VALIDATION_EXCLUDES
Plugin validation exclusions.- Since:
- 3.9.6
- See Also:
-
MAVEN_MODEL_BUILDER_PARALLELISM
@Config(type="java.lang.Integer", defaultValue="cores/2 + 1") public static final String MAVEN_MODEL_BUILDER_PARALLELISMProjectBuilder parallelism.- Since:
- 4.0.0
- See Also:
-
MAVEN_CONSUMER_POM
@Config(type="java.lang.Boolean", defaultValue="true") public static final String MAVEN_CONSUMER_POMUser property for enabling/disabling the consumer POM feature.- Since:
- 4.0.0
- See Also:
-
MAVEN_VERSION_RESOLVER_NO_CACHE
@Config(type="java.lang.Boolean", defaultValue="false") public static final String MAVEN_VERSION_RESOLVER_NO_CACHEUser property for disabling version resolver cache.- Since:
- 3.0.0
- See Also:
-
MAVEN_DEPLOY_SNAPSHOT_BUILD_NUMBER
User property for overriding calculated "build number" for snapshot deploys. Caution: this property should be RARELY used (if used at all). It may help in special cases like "aligning" a reactor build subprojects build numbers to perform a "snapshot lock down". Value given here must bemaxRemoteBuildNumber + 1
or greater, otherwise build will fail. How the number to be obtained is left to user (ie by inspecting snapshot repository metadata or alike). Note: this feature is present in Maven 3.9.7 but with different key:maven.buildNumber
. In Maven 4 as part of cleanup effort this key was renamed to properly reflect its purpose.- Since:
- 4.0.0
- See Also:
-
MAVEN_START_INSTANT
User property used to store the build timestamp.- Since:
- 4.0.0
- See Also:
-