Maven commons-configuration2

I am using Apache commons-configuration2in one of my projects. I recently decided to let Maven manage my projects. Which works great except commons-configuration2; I cannot find this dependency on the Maven repository. Even if you only look at commons-configuration, rather than on commons-configuration2, none of the results that I get org.apache.commons.

What am I doing wrong?

+4
source share
5 answers

This is because the version of the 1.xartifact was commons-configurationindeed under the group commons-configuration. You can find the latest version of release, 1.10, this artifact in the repo .

, commons-configuration2 ( Maven ), org.apache.commons. maven ( release), , , SNAPSHOT. SNAPSHOT.

. .

+6

:

  • Download Apache Commons Configuration 2.0 commons-configuration2-2.0-beta2.jar
  • commons-configuration2-2.0-beta2.jar
  • 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>
    
+2

commons-configuration2-2.1Now available in the Maven repository .

+1
source

Source: https://habr.com/ru/post/1570357/


All Articles