Class Constants

java.lang.Object
org.apache.maven.api.Constants

public final class Constants extends Object
Configuration constants.
  • Field Details

    • MAVEN_HOME

      @Config(readOnly=true) public static final String MAVEN_HOME
      Maven home.
      Since:
      3.0.0
      See Also:
    • MAVEN_INSTALLATION_CONF

      @Config(defaultValue="${maven.home}/conf") public static final String MAVEN_INSTALLATION_CONF
      Maven installation configuration directory.
      Since:
      4.0.0
      See Also:
    • MAVEN_USER_CONF

      @Config(defaultValue="${user.home}/.m2") public static final String MAVEN_USER_CONF
      Maven user configuration directory.
      Since:
      4.0.0
      See Also:
    • MAVEN_PROJECT_CONF

      @Config(defaultValue="${session.rootDirectory}/.mvn") public static final String MAVEN_PROJECT_CONF
      Maven project configuration directory.
      Since:
      4.0.0
      See Also:
    • MAVEN_REPO_LOCAL

      @Config(defaultValue="${maven.user.conf}/repository") public static final String 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_CENTRAL
      Maven central repository URL. The property will have the value of the MAVEN_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_SETTINGS
      Maven installation settings.
      Since:
      4.0.0
      See Also:
    • MAVEN_USER_SETTINGS

      @Config(defaultValue="${maven.user.conf}/settings.xml") public static final String MAVEN_USER_SETTINGS
      Maven user settings.
      Since:
      4.0.0
      See Also:
    • MAVEN_PROJECT_SETTINGS

      @Config(defaultValue="${maven.project.conf}/settings.xml") public static final String MAVEN_PROJECT_SETTINGS
      Maven project settings.
      Since:
      4.0.0
      See Also:
    • MAVEN_INSTALLATION_EXTENSIONS

      @Config(defaultValue="${maven.installation.conf}/extensions.xml") public static final String MAVEN_INSTALLATION_EXTENSIONS
      Maven installation extensions.
      Since:
      4.0.0
      See Also:
    • MAVEN_USER_EXTENSIONS

      @Config(defaultValue="${maven.user.conf}/extensions.xml") public static final String MAVEN_USER_EXTENSIONS
      Maven user extensions.
      Since:
      4.0.0
      See Also:
    • MAVEN_PROJECT_EXTENSIONS

      @Config(defaultValue="${maven.project.conf}/extensions.xml") public static final String MAVEN_PROJECT_EXTENSIONS
      Maven project extensions.
      Since:
      4.0.0
      See Also:
    • MAVEN_INSTALLATION_TOOLCHAINS

      @Config(defaultValue="${maven.installation.conf}/toolchains.xml") public static final String MAVEN_INSTALLATION_TOOLCHAINS
      Maven installation toolchains.
      Since:
      4.0.0
      See Also:
    • MAVEN_USER_TOOLCHAINS

      @Config(defaultValue="${maven.user.home}/toolchains.xml") public static final String MAVEN_USER_TOOLCHAINS
      Maven user toolchains.
      Since:
      4.0.0
      See Also:
    • MAVEN_EXT_CLASS_PATH

      @Config public static final String MAVEN_EXT_CLASS_PATH
      Extensions class path.
      See Also:
    • MAVEN_STYLE_COLOR_PROPERTY

      @Config(defaultValue="auto") public static final String MAVEN_STYLE_COLOR_PROPERTY
      Maven output color mode. Allowed values are auto, always, never.
      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_FORMAT
      Build timestamp format.
      Since:
      3.0.0
      See Also:
    • MAVEN_RELOCATIONS_ENTRIES

      @Config public static final String MAVEN_RELOCATIONS_ENTRIES
      User controlled relocations. This property is a comma separated list of entries with the syntax GAV>GAV. The first GAV can contain * for any elem (so *:*:* would mean ALL, something you don't want). The second GAV is either fully specified, or also can contain *, then it behaves as "ordinary relocation": the coordinate is preserved from relocated artifact. Finally, if right hand GAV is absent (line looks like GAV>), the left hand matching GAV 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:*:*>, \\
      org.here:*:*>org.there:*:*, \\
      javax.inject:javax.inject:1>>jakarta.inject:jakarta.inject:1.0.5
      means: 3 entries, ban org.foo group (exactly, so org.foo.bar is allowed), relocate org.here to org.there and finally globally relocate (see >> above) javax.inject:javax.inject:1 to jakarta.inject:jakarta.inject:1.0.5.
      Since:
      4.0.0
      See Also:
    • MAVEN_VERSION_FILTERS

      @Config public static final String MAVEN_VERSION_FILTERS
      User property for version filters expression, 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)
      Example filter expression: "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 for org.foo:bar is being processed, version 1 is omitted.
      Since:
      4.0.0
      See Also:
    • MAVEN_REPO_LOCAL_TAIL

      @Config public static final String MAVEN_REPO_LOCAL_TAIL
      User property for chained LRM: list of "tail" local repository paths (separated by comma), to be used with org.eclipse.aether.util.repository.ChainedLocalRepositoryManager. Default value: null, no chained LRM is used.
      Since:
      3.9.0
      See Also:
    • MAVEN_REPO_LOCAL_RECORD_REVERSE_TREE

      @Config(defaultValue="false") public static final String 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_TRANSITIVITY
      User 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

      @Config(defaultValue="default") public static final String MAVEN_RESOLVER_TRANSPORT
      Resolver transport to use. Can be default, wagon, apache, jdk or auto.
      Since:
      4.0.0
      See Also:
    • MAVEN_PLUGIN_VALIDATION

      @Config(defaultValue="inline") public static final String MAVEN_PLUGIN_VALIDATION
      Plugin validation level.
      Since:
      3.9.2
      See Also:
    • MAVEN_PLUGIN_VALIDATION_EXCLUDES

      @Config public static final String 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_PARALLELISM
      ProjectBuilder parallelism.
      Since:
      4.0.0
      See Also:
    • MAVEN_CONSUMER_POM

      @Config(type="java.lang.Boolean", defaultValue="true") public static final String MAVEN_CONSUMER_POM
      User property for enabling/disabling the consumer POM feature.
      Since:
      4.0.0
      See Also: