You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "David Dunne (JIRA)" <ji...@apache.org> on 2015/08/17 12:58:45 UTC

[jira] [Updated] (VALIDATOR-373) Maven Shade plugin issuing depencency conflict for commons-beanutils and commons-collections

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

David Dunne updated VALIDATOR-373:
----------------------------------
    Description: 
After running mvn clean package we get the warning

[WARNING] commons-beanutils-1.8.3.jar, commons-collections-3.2.1.jar define 10 overlappping classes:
[WARNING] - org.apache.commons.collections.FastHashMap$EntrySet
[WARNING] - org.apache.commons.collections.FastHashMap$KeySet
[WARNING] - org.apache.commons.collections.FastHashMap$CollectionView$CollectionViewIterator
[WARNING] - org.apache.commons.collections.ArrayStack
[WARNING] - org.apache.commons.collections.FastHashMap$Values
[WARNING] - org.apache.commons.collections.FastHashMap$CollectionView
[WARNING] - org.apache.commons.collections.FastHashMap$1
[WARNING] - org.apache.commons.collections.Buffer
[WARNING] - org.apache.commons.collections.FastHashMap
[WARNING] - org.apache.commons.collections.BufferUnderflowException

this seems to be related to this issue:
http://stackoverflow.com/questions/14402745/duplicate-classes-in-commons-collections-and-commons-beanutils

A workaround is to add an exclude but this should be fixed in commons-validator

<exclusions>
  <exclusion>
   <artifactId>commons-collections</artifactId>
   <groupId>commons-collections</groupId>
  </exclusion>
 </exclusions>

  was:
After running mvn clean package we get the warning

[WARNING] commons-beanutils-1.8.3.jar, commons-collections-3.2.1.jar define 10 overlappping classes:
[WARNING] - org.apache.commons.collections.FastHashMap$EntrySet
[WARNING] - org.apache.commons.collections.FastHashMap$KeySet
[WARNING] - org.apache.commons.collections.FastHashMap$CollectionView$CollectionViewIterator
[WARNING] - org.apache.commons.collections.ArrayStack
[WARNING] - org.apache.commons.collections.FastHashMap$Values
[WARNING] - org.apache.commons.collections.FastHashMap$CollectionView
[WARNING] - org.apache.commons.collections.FastHashMap$1
[WARNING] - org.apache.commons.collections.Buffer
[WARNING] - org.apache.commons.collections.FastHashMap
[WARNING] - org.apache.commons.collections.BufferUnderflowException

this seems to be related to this issue:
http://stackoverflow.com/questions/14402745/duplicate-classes-in-commons-collections-and-commons-beanutils

A workaround is to add an exclude but this should be fixed

<exclusions>
  <exclusion>
   <artifactId>commons-collections</artifactId>
   <groupId>commons-collections</groupId>
  </exclusion>
 </exclusions>


> Maven Shade plugin issuing depencency conflict for commons-beanutils and commons-collections 
> ---------------------------------------------------------------------------------------------
>
>                 Key: VALIDATOR-373
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-373
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.4.1 Release
>            Reporter: David Dunne
>            Priority: Minor
>
> After running mvn clean package we get the warning
> [WARNING] commons-beanutils-1.8.3.jar, commons-collections-3.2.1.jar define 10 overlappping classes:
> [WARNING] - org.apache.commons.collections.FastHashMap$EntrySet
> [WARNING] - org.apache.commons.collections.FastHashMap$KeySet
> [WARNING] - org.apache.commons.collections.FastHashMap$CollectionView$CollectionViewIterator
> [WARNING] - org.apache.commons.collections.ArrayStack
> [WARNING] - org.apache.commons.collections.FastHashMap$Values
> [WARNING] - org.apache.commons.collections.FastHashMap$CollectionView
> [WARNING] - org.apache.commons.collections.FastHashMap$1
> [WARNING] - org.apache.commons.collections.Buffer
> [WARNING] - org.apache.commons.collections.FastHashMap
> [WARNING] - org.apache.commons.collections.BufferUnderflowException
> this seems to be related to this issue:
> http://stackoverflow.com/questions/14402745/duplicate-classes-in-commons-collections-and-commons-beanutils
> A workaround is to add an exclude but this should be fixed in commons-validator
> <exclusions>
>   <exclusion>
>    <artifactId>commons-collections</artifactId>
>    <groupId>commons-collections</groupId>
>   </exclusion>
>  </exclusions>



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