You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Joerg Schaible (JIRA)" <ji...@apache.org> on 2016/05/02 19:45:13 UTC

[jira] [Resolved] (CONFIGURATION-625) Missing maven dependency

     [ https://issues.apache.org/jira/browse/CONFIGURATION-625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg Schaible resolved CONFIGURATION-625.
------------------------------------------
       Resolution: Invalid
         Assignee: Joerg Schaible
    Fix Version/s: 2.x

Look into the POM, beanutils 1.9.2 is declared as dependency. However, since not everyone uses the BeanFactory, this dependency is optional on purpose. Therefore you have to declare beanutils as dependency yourself if you want to use the feature. Just as you already did.

> Missing maven dependency
> ------------------------
>
>                 Key: CONFIGURATION-625
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-625
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Daan Biesterbos
>            Assignee: Joerg Schaible
>            Priority: Minor
>             Fix For: 2.x
>
>
> When I use maven to include configuration 2.* in my project I get the following error:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/beanutils/BeanIntrospector.
> The code that crashed did nothing but loading a few .properties files and add the property configuration to a composite. How to load .properties files is different in 2.0 so all I was copying the example from the documentation and modified the parameters. 
> I fixed the problem by adding the following dependency to maven:
> <dependency>
>             <groupId>commons-beanutils</groupId>
>             <artifactId>commons-beanutils</artifactId>
>             <version>1.9.2</version>
> </dependency>
> The 1.8 version of beanutils does not fix it.
> P.S. Thanks for reviving this project. :-)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)