What is the difference between maven dependencies org.apache.commons:commons-io and commons-io:commons-io?

前端 未结 3 1372
既然无缘
既然无缘 2020-12-03 13:53

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 usin

相关标签:
3条回答
  • 2020-12-03 14:40

    The deployment of

    org.apache.commons:commons-io:1.3.2

    Was a mistake that was ultimately fixed by relocating:

    POM of org.apache.commons:commons-io:1.3.2

    To use commons-io:commons-io:1.3.2.

    The mistake was likely an attempt to migrate the Commons IO library to use the current naming convention for Maven groupIds.

    0 讨论(0)
  • 2020-12-03 14:48

    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.

    0 讨论(0)
  • 2020-12-03 14:52

    The two dependencies look the same. I would prefer to use commons-io:commons-io, cause the pom of org.apache.commons:commons-io:1.3.2 is wrong (wrong groupId!)

    The artifacts located at this position: http://repo1.maven.org/maven2/org/apache/commons/ are newer in date than the others.

    0 讨论(0)
提交回复
热议问题