settings.xml配置
来源:互联网 发布:阿里炒股软件 编辑:程序博客网 时间:2024/06/12 01:11
默认~/.m2/settings.xml不存在,需要拷贝%M2_HOME%/conf/settings.xml
全局范围%M2_HOME%/conf/settings.xml,一般不要改
用户范围~/.m2/settings.xml
1. 定义本地仓库的位置
默认本地仓库位置~/.m2/reponsitory
<settings>
<localRepository>d:/maven-jars/reponsitory</localRepository>
</settings>
将本地构件(jar)安装到本地仓库
mvn clean install
2. 远程仓库认证
<settings>
<servers>
<server>
<id>central</id>仓库的标识
<username>proj-username</username>
<password>proj-password</password>
</server>
</servers>
</settings>
3. 配置中央仓库镜像、私服镜像
<settings>
<mirrors>
<mirror>
<id>my.maven.com</id>仓库的标识
<name>my maven mirror</name>
<url>http://maven.net.cn/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>my.maven.com</id>仓库的标识
<name>my maven mirror</name>
<url>http://IP/path</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
</settings>
<mirrorOf>*</mirrorOf> 匹配所有远程仓库
<mirrorOf>external:*</mirrorOf> 匹配所有不在本级的远程仓库
<mirrorOf>rep1,rep2</mirrorOf> 匹配rep1和rep2两个远程仓库,多个远程仓库之间用逗号隔开
<mirrorOf>*,!rep1</mirrorOf> 匹配所有远程仓库,除了rep1
- Maven settings.xml 配置
- Maven配置 settings.xml
- settings.xml配置
- Maven settings.xml配置
- maven配置settings.xml
- maven settings.xml配置
- Maven settings.xml配置
- settings.xml 文件配置
- ibatis SqlMapConfig.xml 配置settings
- Maven配置之settings.xml
- ibatis SqlMapConfig.xml 配置settings
- Maven settings.xml 配置详解
- 配置Maven的settings.xml
- Maven配置之settings.xml
- maven的settings.xml配置
- 配置Maven的settings.xml
- Maven settings.xml配置详解
- Maven settings.xml配置详解
- 观察者模式(Observer Pattern)小结
- Github上最受关注的前端大牛
- UVA 10003 - Cutting Sticks
- C++时间类的运算符重载
- CodeSmith通过CSP文件生成代码的API使用
- settings.xml配置
- hdu 2048 神、上帝以及老天爷
- [1188]C语言实验——各位数字之和排序 sdutOJ
- 【Android Studio(二)】创建工程
- FZU OJ 1055 赋值问题
- FreeMarker语法知识
- JS产生随机数的几个用法!
- 图的割点、桥与双连通分支
- hash实现 与fastfail处理并发