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.com:commons-io:1.3.2 和公共-10:公地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屋!