mirror of
https://github.com/apache/archiva.git
synced 2025-02-07 10:39:02 +00:00
use plexus-spring
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@630665 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
458aa505a8
commit
c380953a23
@ -32,6 +32,11 @@
|
||||
<groupId>org.apache.maven.archiva</groupId>
|
||||
<artifactId>archiva-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-spring</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
|
@ -22,7 +22,7 @@
|
||||
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()
|
||||
|
@ -39,6 +39,10 @@
|
||||
<level value="error"/>
|
||||
</logger>
|
||||
|
||||
<logger name="org.springframewrok">
|
||||
<level value="DEBUG"/>
|
||||
</logger>
|
||||
|
||||
<root>
|
||||
<priority value ="info" />
|
||||
<appender-ref ref="console" />
|
||||
|
@ -4,6 +4,9 @@
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||
|
||||
<bean id="loggerManager" class="org.codehaus.plexus.logging.console.ConsoleLoggerManager"
|
||||
init-method="initialize"/>
|
||||
|
||||
<bean id="urlFailureCache" class="org.apache.maven.archiva.policies.urlcache.DefaultUrlFailureCache">
|
||||
<!-- collaborators and configuration for this bean go here -->
|
||||
<constructor-arg ref="cache#url-failures-cache" type="org.codehaus.plexus.cache.Cache"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user