<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

       <bean name="auditLoggingPostRepositoryInteceptor" class="org.apache.archiva.repository.AuditLoggingPostRepositoryInterceptor"/>

       <bean name="repositoryFactory" class="org.apache.archiva.repository.DefaultRepositoryFactory" lazy-init="true">
           <constructor-arg ref="repositoryContentFactory"/>
       </bean>

       <bean name="legacyRepositoryManager" class="org.apache.archiva.repository.LegacyRepositoryManager" lazy-init="true">
           <constructor-arg ref="archivaConfiguration"/>
           <constructor-arg ref="systemRepositoryManager"/>
           <constructor-arg ref="repositoryContentFactory"/>
           <constructor-arg ref="repositoryRequest"/>
       </bean>

       <bean name="systemRepositoryManager" class="org.apache.archiva.repository.DefaultRepositoryManager" lazy-init="true">
           <constructor-arg ref="repositoryFactory"/>
       </bean>

       <bean name="groupRepositoryManager" class="org.apache.archiva.repository.GroupRepositoryManager" lazy-init="true">
           <constructor-arg ref="archivaConfiguration"/>
           <constructor-arg ref="proxyRepositoryManager"/>
           <constructor-arg ref="systemRepositoryManager"/>
           <constructor-arg ref="legacyRepositoryManager"/>
           <constructor-arg ref="repositoryRequest"/>
           <constructor-arg ref="metadataTools"/>
       </bean>

       <bean name="repositoryManagerFactory" class="org.apache.archiva.repository.DefaultRepositoryManagerFactory" lazy-init="true"/>
       <bean name="preRepositoryInterceptorFactory" class="org.apache.archiva.repository.DefaultRepositoryInterceptorFactory" lazy-init="true">
           <constructor-arg value="org.apache.archiva.repository.api.interceptor.PreRepositoryInterceptor"/>
       </bean>
       <bean name="postRepositoryInterceptorFactory" class="org.apache.archiva.repository.DefaultRepositoryInterceptorFactory" lazy-init="true">
           <constructor-arg value="org.apache.archiva.repository.api.interceptor.PostRepositoryInterceptor"/>
       </bean>
</beans>