maven settings
来源:互联网 发布:单片机基础知识 编辑:程序博客网 时间:2024/06/05 03:58
Settings
This is a reference for the user-specific configuration for Maven.
Includes things that should not be distributed with the pom.xml file, such as developer identity, along with local settings, like proxy information.
The default location for the settings file is ~/.m2/settings.xml
An XSD is available at:
- http://maven.apache.org/xsd/settings-1.0.0.xsd.
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"> <localRepository/> <interactiveMode/> <usePluginRegistry/> <offline/> <proxies> <proxy> <active/> <protocol/> <username/> <password/> <port/> <host/> <nonProxyHosts/> <id/> </proxy> </proxies> <servers> <server> <username/> <password/> <privateKey/> <passphrase/> <filePermissions/> <directoryPermissions/> <configuration/> <id/> </server> </servers> <mirrors> <mirror> <mirrorOf/> <name/> <url/> <layout/> <mirrorOfLayouts/> <id/> </mirror> </mirrors> <profiles> <profile> <activation> <activeByDefault/> <jdk/> <os> <name/> <family/> <arch/> <version/> </os> <property> <name/> <value/> </property> <file> <missing/> <exists/> </file> </activation> <properties> <key>value</key> <properties/> <repositories> <repository> <releases> <enabled/> <updatePolicy/> <checksumPolicy/> </releases> <snapshots> <enabled/> <updatePolicy/> <checksumPolicy/> </snapshots> <id/> <name/> <url/> <layout/> </repository> </repositories> <pluginRepositories> <pluginRepository> <releases> <enabled/> <updatePolicy/> <checksumPolicy/> </releases> <snapshots> <enabled/> <updatePolicy/> <checksumPolicy/> </snapshots> <id/> <name/> <url/> <layout/> </pluginRepository> </pluginRepositories> <id/> </profile> </profiles> <activeProfiles/> <pluginGroups/></settings>
settings
Root element of the user configuration file.
Default value is: ${user.home}/.m2/repositoryinteractiveModebooleanWhether Maven should attempt to interact with the user for input.
Default value is: true.usePluginRegistrybooleanWhether Maven should use the plugin-registry.xml file to manage plugin versions.
Default value is: false.offlinebooleanIndicate whether maven should operate in offline mode full-time.
Default value is: false.proxies/proxy*List<Proxy>(Many) Configuration for different proxy profiles. Multiple proxy profiles might come in handy for anyone working from a notebook or other mobile platform, to enable easy switching of entire proxy configurations by simply specifying the profile id, again either from the command line or from the defaults section below.servers/server*List<Server>(Many) Configuration of server-specific settings, mainly authentication method. This allows configuration of authentication on a per-server basis.mirrors/mirror*List<Mirror>(Many) Configuration of download mirrors for repositories.profiles/profile*List<Profile>(Many) Configuration of build profiles for adjusting the build according to environmental parameters.activeProfiles/activeProfile*List<String>(Many) List of manually-activated build profiles, specified in the order in which they should be applied.pluginGroups/pluginGroup*List<String>(Many) List of groupIds to search for a plugin when that plugin groupId is not explicitly provided.
proxy
The <proxy> element contains informations required to a proxy settings.
Default value is: true.protocolStringThe proxy protocol.
Default value is: http.usernameStringThe proxy user.passwordStringThe proxy password.portintThe proxy port.
Default value is: 8080.hostStringThe proxy host.nonProxyHostsStringThe list of non-proxied hosts (delimited by |).idStringNo description.
Default value is: default.
server
The <server> element contains informations required to a server settings.
Default value is: default.
mirror
A download mirror for a given repository.
Default value is: default,legacy.idStringNo description.
Default value is: default.
profile
Modifications to the build process which is keyed on some sort of environmental parameter.
Default value is: default.
activation
The conditions within the build runtime environment which will trigger the automatic inclusion of the parent build profile.
Default value is: false.jdkStringSpecifies that this profile will be activated when a matching JDK is detected.osActivationOSSpecifies that this profile will be activated when matching OS attributes are detected.propertyActivationPropertySpecifies that this profile will be activated when this System property is specified.fileActivationFileSpecifies that this profile will be activated based on existence of a file.
os
This is an activator which will detect an operating system's attributes in order to activate its profile.
property
This is the property specification used to activate a profile. If the value field is empty, then the existence of the named property will activate the profile, otherwise it does a case-sensitive match against the property value as well.
file
This is the file specification used to activate a profile. The missing value will be a the location of a file that needs to exist, and if it doesn't the profile must run. On the other hand exists will test for the existence of the file and if it is there will run the profile.
repository
Repository contains the information needed for establishing connections with remote repository
Default value is: default.
releases
Download policy
Default value is: true.updatePolicyStringThe frequency for downloading updates - can be "always", "daily" (default), "interval:XXX" (in minutes) or "never" (only if it doesn't exist locally).checksumPolicyStringWhat to do when verification of an artifact checksum fails - warn, fail, etc. Valid values are "fail" or "warn".
snapshots
Download policy
Default value is: true.updatePolicyStringThe frequency for downloading updates - can be "always", "daily" (default), "interval:XXX" (in minutes) or "never" (only if it doesn't exist locally).checksumPolicyStringWhat to do when verification of an artifact checksum fails - warn, fail, etc. Valid values are "fail" or "warn".
pluginRepository
Repository contains the information needed for establishing connections with remote repository
Default value is: default.
- Maven settings
- maven settings
- maven settings
- Maven Settings
- Maven settings
- maven settings.xml
- Maven Local Settings Model
- maven settings.xml注解
- Maven settings 2
- maven settings.xml
- Maven settings.xml 配置
- maven settings配置
- Maven配置 settings.xml
- Maven settings.xml配置
- Maven settings细节
- Maven settings.xml
- maven系列--settings.xml
- maven配置settings.xml
- 推荐一系列优秀的Android开发源码
- VIM Config
- SDRAM扩展
- 写正确函数需要注意的地方:两个非降序链表的并集,1>2>3和2>3>5合并为1>2>3>5。
- Date format
- maven settings
- 黑马程序员_线程间的通信
- C语言条件编译
- 开源项目之在线网页截图工具 IECapt
- "彩票小贩"潜伏50天惊人绽放携12人合买中52万
- 公司的局域网打印机的一种连接方式
- 二分搜索 表达式的值Hdu4282
- 黑马程序员之ADO.NET学习笔记:using和close
- 外链图片也有风险吗?