Try this:

Copy<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-collections4</artifactId>
    <version>4.0</version>
</dependency>
Answer from Vipul Paralikar on Stack Overflow
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.commons
Maven Repository: org.apache.commons
Apache Commons is an Apache project focused on all aspects of reusable Java components.
🌐
Maven Central
central.sonatype.com › artifact › org.apache.commons › commons-lang3
org.apache.commons:commons-lang3 - Maven Central
--> <project xmlns="http://mav... <description> Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang....
🌐
Maven Repository
mvnrepository.com › artifact › commons-io › commons-io
Maven Repository: commons-io » commons-io
November 7, 2025 - The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more. ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension ...
🌐
Maven Central
repo1.maven.org › maven2 › org › apache › commons
Central Repository: org/apache/commons
../ commons-beanutils2/ 2024-12-27 01:08 - commons-build-plugin/ 2008-02-25 02:18 - commons-collections4/ 2013-11-20 22:46 - commons-compress/ 2009-05-21 16:42 - commons-configuration2/ 2016-03-20 21:00 - commons-crypto/ 2016-07-26 01:20 - commons-csv/ 2014-08-10 11:46 - commons-daemon/ 2012-02-13 08:37 - commons-dbcp2/ 2014-02-27 15:36 - commons-digester3/ 2011-07-02 21:53 - commons-email/ 2007-09-27 22:45 - commons-email2-bom/ 2024-06-15 15:07 - commons-email2-core/ 2024-06-15 15:06 - commons-email2-distribution/ 2024-06-15 15:07 - commons-email2-jakarta/ 2024-06-15 15:06 - commons-email2-ja
🌐
Maven Central
central.sonatype.com › artifact › org.apache.commons › commons-text
org.apache.commons:commons-text - Maven - Sonatype
ytebuddy.version>1.18.2</commons.bytebuddy.version> <commons.rng.version>1.6</commons.rng.version> <japicmp.skip>false</japicmp.skip> <jmh.version>1.37</jmh.version> <!-- Apache Felix maven-bundle-plugin --> <commons.osgi.import> org.apache.commons.lang3;version="${commons.lang3.version}", org.apache.commons.lang3.function;version="${commons.lang3.version}", org.apache.commons.lang3.time;version="${commons.lang3.version}", * </commons.osgi.import> <!-- Commons Release Plugin --> <!-- Previous version of the component (used for reporting binary compatibility check)--> <commons.bc.version>1.14.0
🌐
Apache Commons
commons.apache.org › lang › dependency-info.html
Maven Coordinates – Apache Commons Lang
Apache Commons, Apache Commons Lang, Apache, the Apache logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.commons › commons-lang3
Maven Repository: org.apache.commons » commons-lang3
November 12, 2025 - Apache Commons is an Apache project focused on all aspects of reusable Java components. Links · Core Utilities · Classpath Tools · Object Pools · Job Scheduling · Collections · Date and Time Utilities · Maven Plugins · Testing · Android Packages · Language Runtime ·
🌐
Apache Commons
commons.apache.org › proper › commons-configuration › dependency-info.html
Maven Coordinates – Apache Commons Configuration
Apache Commons, Apache Commons Configuration, Apache, the Apache logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
Find elsewhere
🌐
GitHub
github.com › apache › commons-io
GitHub - apache/commons-io: Apache Commons IO · GitHub
More information can be found on ... related to the usage of Apache Commons IO should be posted to the user mailing list. You can download source and binaries from our download page. Alternatively, you can pull it from the central Maven repositories:...
Starred by 1.1K users
Forked by 715 users
Languages   Java
🌐
Maven Central
central.sonatype.com › artifact › org.apache.commons › commons-collections4
org.apache.commons:commons-collections4 - Maven
--> <commons.rc.version>RC1</commons.rc.version> <commons.site.path>collections</commons.site.path> <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-collections</commons.scmPubUrl> <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory> <!--Commons Release Plugin --> <commons.bc.version>4.4</commons.bc.version> <commons.release.isDistModule>true</commons.release.isDistModule> <!-- project.build.outputTimestamp is managed by Maven plugins, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html --> <project.build.outputTimestamp>2025-04-19T13:48:38Z</project.build.outputTimestamp> <!-- MathJax configuration.
🌐
Baeldung
baeldung.com › home › java › java string › an introduction to apache commons lang 3
An Introduction to Apache Commons Lang 3 | Baeldung
January 8, 2024 - As usual, to get started using Apache Commons Lang 3, we first need to add the Maven dependency:
🌐
Apache Commons
commons.apache.org › proper › commons-collections › dependency-info.html
Maven Coordinates – Apache Commons Collections
Apache Commons Collections ™ · Last Published: 19 Apr 2025 · | Version: 4.5.0 · ApacheCon · Apache · Commons · Copyright © 2001-2025 The Apache Software Foundation.
🌐
Apache Commons
commons.apache.org › io › dependency-info.html
Maven Coordinates – Apache Commons IO
Apache Commons, Apache Commons IO, Apache, the Apache logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.
🌐
Maven Central
central.sonatype.com › artifact › org.apache.commons › commons-parent
org.apache.commons:commons-parent - Maven Central
--> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache</groupId> <artifactId>apache</artifactId> <version>37</version> </parent> <groupId>org.apache.commons</groupId> <artifactId>commons-parent</artifactId> <version>96</version> <packaging>pom</packaging> <name>Apache Commons Parent</name> <description>The Apache Commons Parent POM provides common settings for all Apache Commons
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.commons › commons-text
Maven Repository: org.apache.commons » commons-text
December 8, 2025 - Apache Commons is an Apache project focused on all aspects of reusable Java components.
🌐
Apache Commons
commons.apache.org › proper › commons-net › dependency-info.html
Maven Coordinates – Apache Commons Net
Apache Commons Net ™ · Last Published: 28 Jul 2025 · | Version: 3.12.0 · ApacheCon · Apache · Commons · Copyright © 2001-2025 The Apache Software Foundation.
🌐
Apache Commons
commons.apache.org › proper › commons-cli › dependency-info.html
Maven Coordinates – Apache Commons CLI
Apache Commons, Apache Commons CLI, Apache, the Apache logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation.