<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>
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;
private DownloadPolicy lookupPolicy()
throws Exception
{
- return (DownloadPolicy) factory.getBean( PreDownloadPolicy.class.getName() + "#cache-failures" );
+ return (DownloadPolicy) factory.getBean( "preDownloadPolicy#cache-failures" );
}
private File getFile()
<level value="error"/>
</logger>
+ <logger name="org.springframewrok">
+ <level value="DEBUG"/>
+ </logger>
+
<root>
<priority value ="info" />
<appender-ref ref="console" />
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"/>