• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Maven | settings.xml
  1. Content of settings.xml

  1. Content of settings.xml
    See this page for information: http://maven.apache.org/ref/3.8.6/maven-settings/settings.html

    You can customize the configuration of Maven by adjusting the file "settings.xml".

    By default, the distribution of Maven comes with a template of this file that can be found in "${MAVEN_HOME}/conf/settings.xml". This file holds the global configuration of Maven that applies to all builds.

    It's possible to override the global configuration and provide a user specific configuration by copying this file under the user home folder and updating it: "${HOME}/.m2/settings.xml".

    Here's a copy of the global template of the file "settings.xml": ${MAVEN_HOME}/conf/settings.xml

    Here are the main elements of the file "settings.xml":
    Configuration Description
    localRepository The path to the local repository Maven will use to store artifacts (plugins, dependencies).
    default: ${HOME}/.m2/repository
    interactiveMode This will determine whether Maven prompts you when it needs input.
    default: true
    offline Determines whether Maven should attempt to connect to the network (to download/update dependencies) when executing a build.
    default: false
    pluginGroups This is a list of additional group identifiers that will be searched when resolving plugins by their prefix.
    proxies This is a list of proxies which can be used (on the local machine) to connect to the network.
    servers This is a list of authentication profiles, keyed by the server-id used within the system.
    mirrors This is a list of mirrors (internal servers) to be used in downloading artifacts from remote repositories.
    profiles Specifies a set of introductions to the build process, to be activated using one or more of the mechanisms described above.
    activeProfiles List of profiles that are active for all builds.
© 2025  mtitek