summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-plexus-bridge
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-06-09 15:23:21 +0000
committerOlivier Lamy <olamy@apache.org>2011-06-09 15:23:21 +0000
commitc90eea8f1c293af3af86875ab83d6999d929d686 (patch)
treebbc9687772dca2a4582541c9e460fe217d7efe69 /archiva-modules/archiva-base/archiva-plexus-bridge
parent013b9914d8fcc0fdc1f4dd6e745dc6382b21ed3e (diff)
downloadarchiva-c90eea8f1c293af3af86875ab83d6999d929d686.tar.gz
archiva-c90eea8f1c293af3af86875ab83d6999d929d686.zip
remove use of plexus-spring all struts actions are spring beans now. Note still have issues with tomcat plugin and sisu bridge which need an urlclassloader
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1133928 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-plexus-bridge')
-rw-r--r--archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java b/archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java
index 5de3cc7de..9ad803049 100644
--- a/archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java
+++ b/archiva-modules/archiva-base/archiva-plexus-bridge/src/main/java/org/apache/archiva/common/plexusbridge/PlexusSisuBridge.java
@@ -68,7 +68,16 @@ public class PlexusSisuBridge
ClassWorld classWorld = new ClassWorld();
- ClassRealm classRealm = new ClassRealm( classWorld, "maven", Thread.currentThread().getContextClassLoader() );
+ ClassLoader tccl = Thread.currentThread().getContextClassLoader();
+
+ ClassRealm classRealm = new ClassRealm( classWorld, "maven", tccl )
+ {
+ public URL[] getURLs()
+ {
+ return super.getURLs();
+ }
+
+ };
conf.setRealm( classRealm );
conf.setClassWorld( classWorld );