commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Dunne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VALIDATOR-373) Maven Shade plugin issuing depencency conflict for commons-beanutils and commons-collections
Date Mon, 17 Aug 2015 10:59:45 GMT

     [ 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 to the pom 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 in commons-validator

<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 to the pom 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)

Mime
View raw message