From c380953a238fb82de3fab6dd998b268833003e63 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Sun, 24 Feb 2008 19:54:13 +0000 Subject: [PATCH] use plexus-spring git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@630665 13f79535-47bb-0310-9956-ffa450edef68 --- springy/archiva-base/archiva-policies/pom.xml | 5 +++++ .../maven/archiva/policies/CachedFailuresPolicyTest.java | 4 ++-- .../archiva-policies/src/test/resources/log4j.xml | 4 ++++ .../archiva/policies/CachedFailuresPolicyTest-context.xml | 3 +++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/springy/archiva-base/archiva-policies/pom.xml b/springy/archiva-base/archiva-policies/pom.xml index 852a4689c..64ed1af39 100644 --- a/springy/archiva-base/archiva-policies/pom.xml +++ b/springy/archiva-base/archiva-policies/pom.xml @@ -32,6 +32,11 @@ org.apache.maven.archiva archiva-common + + org.codehaus.plexus + plexus-spring + 1.0-SNAPSHOT + commons-lang commons-lang diff --git a/springy/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/CachedFailuresPolicyTest.java b/springy/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/CachedFailuresPolicyTest.java index 954a99e57..2fa695f47 100644 --- a/springy/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/CachedFailuresPolicyTest.java +++ b/springy/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/CachedFailuresPolicyTest.java @@ -22,7 +22,7 @@ package org.apache.maven.archiva.policies; import java.io.File; import java.util.Properties; -import org.apache.maven.archiva.common.spring.PlexusClassPathXmlApplicationContext; +import org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext; import org.apache.maven.archiva.policies.urlcache.UrlFailureCache; import org.codehaus.plexus.PlexusTestCase; import org.springframework.context.ApplicationContext; @@ -41,7 +41,7 @@ public class CachedFailuresPolicyTest private DownloadPolicy lookupPolicy() throws Exception { - return (DownloadPolicy) factory.getBean( PreDownloadPolicy.class.getName() + "#cache-failures" ); + return (DownloadPolicy) factory.getBean( "preDownloadPolicy#cache-failures" ); } private File getFile() diff --git a/springy/archiva-base/archiva-policies/src/test/resources/log4j.xml b/springy/archiva-base/archiva-policies/src/test/resources/log4j.xml index 901c99f33..e068ecabd 100644 --- a/springy/archiva-base/archiva-policies/src/test/resources/log4j.xml +++ b/springy/archiva-base/archiva-policies/src/test/resources/log4j.xml @@ -39,6 +39,10 @@ + + + + diff --git a/springy/archiva-base/archiva-policies/src/test/resources/org/apache/maven/archiva/policies/CachedFailuresPolicyTest-context.xml b/springy/archiva-base/archiva-policies/src/test/resources/org/apache/maven/archiva/policies/CachedFailuresPolicyTest-context.xml index b054113c4..c7cd821c7 100644 --- a/springy/archiva-base/archiva-policies/src/test/resources/org/apache/maven/archiva/policies/CachedFailuresPolicyTest-context.xml +++ b/springy/archiva-base/archiva-policies/src/test/resources/org/apache/maven/archiva/policies/CachedFailuresPolicyTest-context.xml @@ -4,6 +4,9 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> + + -- 2.39.5