Apache Commons logo Commons Configuration

Runtime dependencies

Commons Configuration requires Java 5 or later.

A lot of dependencies are declared in the Maven POM. These are all needed during compile time. On runtime however you only need to add the dependencies to your classpath that are required by the parts of the Commons Configuration package you are using. The following table helps you to determine which dependencies you have to include based on the components you intend to use:

Component Dependencies
Core commons-lang
commons-logging
DefaultConfigurationBuilder commons-beanutils
ConfigurationFactory (deprecated) commons-digester
ConfigurationConverter commons-collections
PropertyListConfiguration
XMLPropertyListConfiguration
commons-codec
ConfigurationDynaBean commons-beanutils
XPathExpressionEngine commons-jxpath
CatalogResolver xml-resolver
Web configurations servlet-api
ExprLookup commons-jexl
VFSFileSystem, VFSFileChangedReloadingStrategy commons-vfs

Notes

  • Commons Configuration makes use of other Commons components. You should be able to use the current versions of these components together with Commons Configuration. In some cases, when no specific features are used, older versions will work, too. Below is a table with the version numbers that have been tested:
    Component Version
    commons-lang 2.2, 2.3, 2.4, 2.5, 2.6
    commons-collections 3.1, 3.2, 3.2.1
    commons-logging 1.0.4, 1.1, 1.1.1
    commons-digester 1.6, 1.7, 1.8, 1.8.1
    commons-beanutils 1.7.0, 1.8.0, 1.8.2, 1.8.3
    commons-codec 1.3, 1.5, 1.6
    commons-jxpath 1.2, 1.3
    commons-jexl 2.1.1
    commons-vfs 2.0
    xml-resolver 1.2