From 2a686f4089263a8ba470e6a10bdb05a4ad78adcf Mon Sep 17 00:00:00 2001
From: "Maria Odea B. Ching" <oching@apache.org>
Date: Thu, 16 Jun 2011 03:52:42 +0000
Subject: [PATCH] exclude banned dependencies from redback dependencies in
 archiva-security module

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1136283 13f79535-47bb-0310-9956-ffa450edef68
---
 .../archiva-web/archiva-security/pom.xml      | 50 +++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/archiva-modules/archiva-web/archiva-security/pom.xml b/archiva-modules/archiva-web/archiva-security/pom.xml
index 512397898..cfdf148bb 100644
--- a/archiva-modules/archiva-web/archiva-security/pom.xml
+++ b/archiva-modules/archiva-web/archiva-security/pom.xml
@@ -44,10 +44,46 @@
     <dependency>
       <groupId>org.codehaus.redback</groupId>
       <artifactId>redback-system</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>org.codehaus.redback</groupId>
+          <artifactId>plexus-spring</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.codehaus.plexus.registry</groupId>
+          <artifactId>plexus-registry-api</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.codehaus.plexus.registry</groupId>
+          <artifactId>plexus-registry-commons</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>net.sf.ehcache</groupId>
+          <artifactId>ehcache</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.codehaus.plexus.cache</groupId>
+          <artifactId>plexus-cache-ehcache</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.codehaus.plexus.cache</groupId>            
+          <artifactId>plexus-cache-api</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.codehaus.plexus</groupId>
+          <artifactId>plexus-component-api</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.codehaus.redback</groupId>
       <artifactId>redback-rbac-model</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>org.codehaus.plexus</groupId>
+          <artifactId>plexus-component-api</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.codehaus.redback</groupId>
@@ -62,6 +98,20 @@
       <groupId>org.codehaus.redback</groupId>
       <artifactId>redback-authorization-rbac</artifactId>
       <scope>test</scope>
+      <exclusions>
+        <exclusion>
+          <groupId>net.sf.ehcache</groupId>
+          <artifactId>ehcache</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.codehaus.plexus.cache</groupId>
+          <artifactId>plexus-cache-ehcache</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.codehaus.plexus.cache</groupId>
+          <artifactId>plexus-cache-api</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.codehaus.redback</groupId>