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?
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/.
Apache Commons IO is a library of utilities to assist with developing IO functionality. There are six main areas included: io - This package defines utility classes for working with streams, readers, writers and files. comparator - This package provides various Comparator implementations for Files.
The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more. License. Apache 2.0.
Commons IO includes a list of useful file filters. These can come in handy when a developer wants to narrow down to a specific desired list of files from a heterogeneous list of files. The library also supports AND and OR logic operations on a given file list.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With