Maven - 配置setting.xml
2024-09-24 16:58:08
1、配置本地库路径
<localRepository>C:/fyliu/mvn/repo</localRepository>
2、配置中央仓库
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>nexus</id>
<name>internal nexus repository</name>
<url>http://repo.maven.apache.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>uk</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
3、指定jdk版本
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
最新文章
- Dijkstra算法优先队列实现与Bellman_Ford队列实现的理解
- 关于windows 7 安装Vim的安装步骤介绍。——Arvin
- 3.从Node.js操作MongoDB文档
- 1531: [POI2005]Bank notes二进制优化(c++)
- Queue插入的时候报错:源数组长度不足。请检查 srcIndex 和长度以及数组的下限。
- node.js之看懂package.json依赖库版本控制
- 初学require.js
- TYVJ P1056 能量项链 Label:环状区间DP
- shell脚本例子集锦(习题总结)
- 【转】linux mknod命令解析
- EntityFramwork6连接MySql错误
- Java笔记(二十八)&hellip;&hellip;IO流下 IO包中其他常用类以及编码表问题
- Swift - 30 - 可变参数
- 收敛 p75
- css3 linear-gradient渐变效果及兼容性处理
- 改善python程序的建议[转]
- WPF中修改DataGrid单元格值并保存
- 你不知道的JavaScript——第一章:作用域是什么?
- Pandas 基础(6) - 用 replace() 函数处理不合理数据
- zookeeper-03 命令行操作
热门文章
- jprofiler 监听远程java项目
- PHP 下载+安装
- jenkins集成python的单元测试
- reactjs 的 css 模块化工具 styled-components 升级后 createGlobalStyle 废除,使用 createGlobalStyle 的方案
- jQuery_CSS类操作
- [jmeter] : http采样器 Parameters、Body Data使用区别
- ServletConfig接口
- sqli-labs(1)
- java中 在一个异常处理中什么语句块是可多个的
- Java并发编程的艺术笔记(四)——ThreadLocal的使用