If we analyse commons-configuration's POM we see that the commons-collections dependency is optional:

  <dependencies>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2.1</version>
      <optional>true</optional>
    </dependency>
    ...

Furthermore, from the Maven docs:

If a user wants to use functionality related to an optional dependency, they will have to redeclare that optional dependency in their own project.

Answer from Evgeniy Dorofeev on Stack Overflow
🌐
Maven Repository
mvnrepository.com › artifact › commons-configuration › commons-configuration
Maven Repository: commons-configuration » commons-configuration
October 24, 2013 - Tools to assist in the reading of configuration/preferences files in various formats. ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven ...
🌐
GitHub
github.com › apache › commons-configuration
GitHub - apache/commons-configuration: Apache Commons Configuration · GitHub
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-configuration2</artifactId> <version>2.13.0</version> </dependency> Building requires a Java JDK and Apache Maven.
Starred by 212 users
Forked by 146 users
Languages   Java
🌐
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.
🌐
Maven Central Repository
search.maven.org › org.apache.commons › commons-configuration2 › 2.1
org.apache.commons:commons-configuration2:2.1
pkg:maven/org.apache.commons/commons-configuration2@2.1 · Used in: 1970 components · Overview · Overview · Versions · Versions · Dependents · Dependents · Dependencies · Dependencies · Tools to assist in the reading of configuration/preferences files in various formats ·
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.commons › commons-configuration2
Maven Repository: org.apache.commons » commons-configuration2
November 26, 2025 - ... Tools to assist in the reading of configuration/preferences files in various formats; requires Java 8. ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript ...
🌐
Apache Commons
commons.apache.org › configuration › download_configuration.cgi
Download Apache Commons Configuration – 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.
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.commons › commons-configuration2 › 2.0
Maven Repository: org.apache.commons » commons-configuration2 » 2.0
Tools to assist in the reading of configuration/preferences files in various formats; requires Java 8. ... aar amazon android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript ...
🌐
Maven Central
central.sonatype.com › artifact › commons-configuration › commons-configuration › 1.2
commons-configuration - Maven Central - Sonatype
<project> <modelVersion>4.0.0</modelVersion> <groupId>commons-configuration</groupId> <artifactId>commons-configuration</artifactId> <name>Commons Configuration</name> <version>1.2</version> <description>Tools to assist in the reading of configuration/preferences files in various formats</description> <url>http://jakarta.apache.org/commons/${pom.artifactId.substring(8)}/</url> <issueManagement> <url>http://issues.apache.org/bugzilla/buglist.cgi?bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;product=Commons&amp;component=Configuration</url> </issueManagement> <ciManagement>
Find elsewhere
🌐
Maven Central
central.sonatype.com › artifact › org.apache.commons › commons-configuration2
org.apache.commons:commons-configuration2 - Maven Central
</description> <properties> <commons.componentid>configuration</commons.componentid> <commons.module.name>org.apache.commons.configuration2</commons.module.name> <commons.release.version>2.13.0</commons.release.version> <commons.release.next>2.13.1</commons.release.next> <commons.release.desc>(Java 8 or above)</commons.release.desc> <commons.jira.id>CONFIGURATION</commons.jira.id> <commons.jira.pid>12310467</commons.jira.pid> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-configuration</commons.scmPubUrl> <!-- Explicitly declare optional dependencies for the OSGi manifest.
🌐
Apache Commons
commons.apache.org › proper › commons-configuration › userguide › upgradeto2_0.html
Migration Guide: 1.x to 2.0 – 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.
Top answer
1 of 5
6

That's because, version 1.x of the artifact commons-configuration was really under the commons-configuration group. You can find the latest release version, 1.10, of that artifact in the repo.

It was only after it became commons-configuration2 (technically an entirely different Maven artifact of the same project), it was grouped under org.apache.commons. You don't see them in the maven repo (the RELEASE repo that is) probably because it's still a SNAPSHOT. You can still find the artifact in the SNAPSHOT repo.

See the project summary and release history for more information.

2 of 5
2

Current workaround solution:

  1. Download Apache Commons Configuration 2.0 and got the commons-configuration2-2.0-beta2.jar
  2. Add the commons-configuration2-2.0-beta2.jar to external library
  3. Add the needed dependency in maven.

    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>3.3.2</version>
    </dependency>
    
    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.3</version>
    </dependency>
    
    <dependency>
        <groupId>commons-beanutils</groupId>
        <artifactId>commons-beanutils</artifactId>
        <version>1.9.2</version>
    </dependency>
    
    <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
        <version>1.9</version>
    </dependency>
    
    <dependency>
        <groupId>commons-jxpath</groupId>
        <artifactId>commons-jxpath</artifactId>
        <version>1.3</version>
    </dependency>
    
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-jexl</artifactId>
        <version>2.1.1</version>
    </dependency>
    
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-vfs2</artifactId>
        <version>2.0</version>
    </dependency>
    
    <dependency>
        <groupId>xml-resolver</groupId>
        <artifactId>xml-resolver</artifactId>
        <version>1.2</version>
    </dependency>
    
🌐
GitHub
github.com › apache › commons-configuration › blob › master › pom.xml
commons-configuration/pom.xml at master · apache/commons-configuration
xsi:schemaLocation="http://mav... <inceptionYear>2001</inceptionYear> <description> Tools to assist in the reading of configuration/preferences files in various formats; requires Java 8....
Author   apache
🌐
Apache Commons
commons.apache.org › configuration
Java Configuration API – 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.
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.commons › commons-configuration2 › 2.7
Maven Repository: org.apache.commons » commons-configuration2 » 2.7
Tools to assist in the reading of configuration/preferences files in various formats; requires Java 8. ... aar amazon android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript ...
🌐
Baeldung
baeldung.com › home › java › intro to apache commons configuration project
Intro to Apache Commons Configuration Project | Baeldung
May 2, 2024 - At deployment time we may need to provide some configuration to the application. This can be from multiple external sources. Apache Commons Configuration provides a unified approach to manage configuration from different sources.
🌐
Apache Commons
commons.apache.org › proper › commons-configuration › dependencies.html
Runtime dependencies – 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.
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.commons
Maven Repository: org.apache.commons
Apache Commons Compress defines an API for working with compression and archive formats. These include bzip2, gzip, pack200, LZMA, XZ, Snappy, traditional Unix Compress, DEFLATE, DEFLATE64, LZ4, Brotli, Zstandard and ar, cpio, jar, tar, zip, dump, ... ... Tools to assist in the reading of ...