Maven 依赖项 org.apache.commons:commons-io 和 commons-io:commons-io 有什么区别? [英] What is the difference between maven dependencies org.apache.commons:commons-io and commons-io:commons-io?
问题描述
Maven 存储库包含以下两个依赖项:org.apache.commons:commons-io:1.3.2 和 commons-io:commons-io:1.3.2.有什么区别,我应该在我的 pom.xml 中使用哪一个?
Maven repositories contain these two dependencies: org.apache.commons:commons-io:1.3.2 and commons-io:commons-io:1.3.2. What is the difference and which one I should be using in my pom.xml?
一般来说,一些 apache commons 包位于 http://repo1.maven.org/maven2/org/apache/commons/ 和大部分 commons-*
包都位于这里 http://repo1.maven.org/maven2/.
In general some of the apache commons packages are located in http://repo1.maven.org/maven2/org/apache/commons/ and most of the commons-*
packages are located here http://repo1.maven.org/maven2/.
推荐答案
来自 commons-io 网站.最新版本是 2.0.1.1.3.2 已经很老了.鉴于此信息,http://repo2.maven.org/maven2/commons-io 中的存储库/ 包含最新版本,是正确使用的版本.
From commons-io website. the latest release is 2.0.1. 1.3.2 is pretty old. Given this information, the repository in http://repo2.maven.org/maven2/commons-io/ holds the latest releases and is the right one to use.
这个相关的邮件线程使阅读变得有趣.
This related mail thread makes interesting reading.
这篇关于Maven 依赖项 org.apache.commons:commons-io 和 commons-io:commons-io 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!