惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
S
Securelist
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Threat Research - Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tenable Blog
I
Intezer
G
GRAHAM CLULEY
Spread Privacy
Spread Privacy
T
Tor Project blog
V
Vulnerabilities – Threatpost
NISL@THU
NISL@THU
L
Lohrmann on Cybersecurity
Schneier on Security
Schneier on Security
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
S
Security @ Cisco Blogs
The Register - Security
The Register - Security
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
L
LangChain Blog
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
The Hacker News
The Hacker News
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
U
Unit 42
博客园 - 叶小钗
Attack and Defense Labs
Attack and Defense Labs
Webroot Blog
Webroot Blog
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
T
Troy Hunt's Blog
V
Visual Studio Blog
P
Proofpoint News Feed
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
A
Arctic Wolf
T
The Exploit Database - CXSecurity.com
宝玉的分享
宝玉的分享
Vercel News
Vercel News
D
DataBreaches.Net
P
Palo Alto Networks Blog
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

博客园 - 何随风

安装JAVA 商业模式画布 Valve新员工手册中文版 Failure is not fatal, but failure to change might be. IntelliJ IDEA 我的配置--留个脚印 MSSQL大数据量增加字段耗时对比 Maven更新父子模块的版本号 Maven更新子模块的版本号 qq centos下安装ZooKeeper centos下配置java环境变量 vbox导入虚拟电脑网卡MAC问题 Linux下连接MSSQL之安装FreeTDS 独特的方法看问题 未来八种人将被社会淘汰 分析学习MYSQL源代码需要哪些方面的知识呢? 一个分号引发的思考 读到的"关于授权" 网站一开启网站访问硬盘读取就变慢
降低依赖重复的两项优化
何随风 · 2016-09-19 · via 博客园 - 何随风

降低依赖重复的两项优化

上移共同的依赖至dependencyManagement
    如果多于一个项目依赖于一个特定的依赖,你可以在dependencyManagement
中列出这个依赖。父POM包含一个版本和一组排除配置,所有的子POM需要
使用groupId和artifactId引用这个依赖。如果依赖已经在
dependencyManagement中列出,子项目可以忽略版本和排除配置。
为兄弟项目使用内置的项目version和groupId
使用{project.version}和${project.groupId}来引用兄弟项目。兄弟项目
基本上一直共享同样的groupId,也基本上一直共享同样的发布版本。使用
${project.version}可以帮你避免前面提到的兄弟版本不一致问题。

posted @ 2016-09-19 11:34  何随风  阅读(287)  评论(0)    收藏  举报