Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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/.

like image 739
Juha Syrjälä Avatar asked Apr 06 '11 12:04

Juha Syrjälä


People also ask

What is org Apache Commons IO?

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.

What is Commons IO maven?

The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more. License. Apache 2.0.

What is the use of Commons IO jar?

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.


1 Answers

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.

like image 196
heenenee Avatar answered Oct 12 '22 19:10

heenenee