You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2006/09/16 22:13:23 UTC
[jira] Commented: (DBCP-68) [dbcp] Commons Collection dependency
version clash when using Commons DBCP via Maven2
[ http://issues.apache.org/jira/browse/DBCP-68?page=comments#action_12435269 ]
Phil Steitz commented on DBCP-68:
---------------------------------
Updating to collections 3.1 may cause dependency problems for some users. Per discussion on commons-dev, I would prefer to bundle the required classes in their 2.1 versions. There are two classes required - o.a.c.collections.LRUMap and o.a.c.collections.SequencedHashMap and only one dbcp class that depends on them - o.a.c.dbcp.datasources.SharedPoolDataSource. The collections classes have been deprecated, but still exist, in Collections 3.x. I propose that we take the versions from the collections 2.1 source and include them with package scope in o.a.c.dbcp.datasources, then remove collections dependency altogether.
> [dbcp] Commons Collection dependency version clash when using Commons DBCP via Maven2
> -------------------------------------------------------------------------------------
>
> Key: DBCP-68
> URL: http://issues.apache.org/jira/browse/DBCP-68
> Project: Commons Dbcp
> Issue Type: Bug
> Affects Versions: 1.2 Final
> Environment: Operating System: All
> Platform: All
> Reporter: Christoph Cenowa
> Fix For: 1.2.2
>
>
> When using Maven2 to incorporate Commons DBCP 1.2.1 into your project a
> transient dependency on Commons Collections 2.1 is added. This will clash with
> other Commons Components like Commons Configuration 1.2 for example that depend
> on Commons Collections 3.1. Upon adding Commons DBCP 1.2.1 to your project the
> existing transient dependency on Commons Collections 3.1 gets changed into
> Commons Collections 2.1. This will result in runtime errors like the following:
> java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LinkedMap
> at
> org.apache.commons.configuration.BaseConfiguration.<init>(BaseConfiguration.java:53)
> Since Commons Collections is incorporated into most Commons Components please
> update the dependency within Commons DBCP to Commons Collections 3.1 if possible.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org