Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Start to decommission banDuplicateClasses enforcer
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Aug 1, 2014
1 parent 6dc01bf commit 04a7b8d
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions pom.xml
Expand Up @@ -389,32 +389,11 @@
</excludes>
<searchTransitive>true</searchTransitive>
</bannedDependencies>
<!-- TODO remove this once other modules are ready -->
<banDuplicateClasses>
<dependencies combine.children="append">
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<ignoreClasses>
<!-- also found in httpcore -->
<ignoreClass>org.apache.http.annotation.*</ignoreClass>
</ignoreClasses>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<ignoreClasses>
<!-- caused by commons-beanutils less than 1.9 -->
<ignoreClass>org.apache.commons.collections.*</ignoreClass>
</ignoreClasses>
</dependency>
</dependencies>
<findAllDuplicates>true</findAllDuplicates>
<message xml:space="preserve">
Warning: found duplicate classes on classpath. Please remove unnecessary
dependencies if possible, and consider adding them to bannedDependencies.
If that is not possible, please add an ignoreClass for the class or entire
package.
</message>
<ignoreClasses combine.children="append">
<ignoreClass>*</ignoreClass>
</ignoreClasses>
</banDuplicateClasses>
<requireNoRepositories>
<message xml:space="preserve">Repositories in pom.xml are not allowed by Maven Central</message>
Expand Down

1 comment on commit 04a7b8d

@seanf
Copy link
Contributor Author

@seanf seanf commented on 04a7b8d Aug 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

banDuplicateClasses will be replaced by maven-duplicate-finder-plugin. See #28

Please sign in to comment.