博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
setting.xml配置详解
阅读量:4486 次
发布时间:2019-06-08

本文共 3269 字,大约阅读时间需要 10 分钟。

文件存放位置

全局配置: ${M2_HOME}/conf/settings.xml

用户配置: ${user.home}/.m2/settings.xml

note:用户配置优先于全局配置。${user.home} 和和所有其他系统属性只能在3.0+版本上使用。请注意windows和Linux使用变量的区别。

 

settings.xml详解

声明规范

localRepository

usr/local/maven

interactiveMode

true

usePluginRegistry

false

offline

false

pluginGroups

org.codehaus.mojo

proxies

myproxy
true
http
proxy.somewhere.com
8080
proxyuser
somepassword
*.google.com|ibiblio.org

servers

server001
my_login
my_password
${usr.home}/.ssh/id_dsa
some_passphrase
664
775

mirrors

planetmirror.com
PlanetMirror Australia
http://downloads.planetmirror.com/pub/maven2
central

profiles

test

Activation

false
1.5
Windows XP
Windows
x86
5.1.2600
mavenVersion
2.0.3
${basedir}/file2.properties
${basedir}/file1.properties

Properties

${user.home}/our-project
note:如果该profile被激活,则可以再POM中使用${user.install}。

Repositories

codehausSnapshots
Codehaus Snapshots
false
always
warn
http://snapshots.maven.codehaus.org/maven2
default

activeProfiles

env-test

 

转载于:https://www.cnblogs.com/xh_chiang/p/6807287.html

你可能感兴趣的文章
Windows Store App之数据存储
查看>>
Redis与Python交互
查看>>
Maximum-SubsequenceSum
查看>>
python接口自动化测试二十五:执行所有用例,并生成HTML测试报告
查看>>
c# 指定的存储区提供程序在配置中找不到,或者无效
查看>>
第1周小组博客作业--1703班06组
查看>>
C语言指针
查看>>
Java的安装
查看>>
0920 JSON数据 蓝懿
查看>>
Azure Cosmos DB 使用费用参考
查看>>
C# 子线程与主线程通讯方法一
查看>>
谷歌搜索语法
查看>>
static 静态变量
查看>>
Docker 安装及问题处理
查看>>
匿名内部类
查看>>
BZOJ4071: [APIO2015]八邻旁之桥
查看>>
Redis的六种特性 场景
查看>>
mysql 添加[取消]timestamp的自动更新
查看>>
码农的半衰期只有15年?
查看>>
手工释放linux内存
查看>>