diff options
Diffstat (limited to 'archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml')
-rw-r--r-- | archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml b/archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml index 6e1dc2489..e7c511811 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml +++ b/archiva-modules/metadata/metadata-repository-api/src/main/resources/META-INF/spring-context.xml @@ -21,14 +21,22 @@ <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" + xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context - http://www.springframework.org/schema/context/spring-context-3.0.xsd" + http://www.springframework.org/schema/context/spring-context-3.0.xsd + http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd" default-lazy-init="true"> <context:annotation-config/> <context:component-scan base-package="org.apache.archiva.metadata.repository"/> + <!-- so can be override with -Darchiva.repositorySessionFactory.id= jcr or cassandra or file --> + <bean name="repositorySessionFactory" class="org.apache.archiva.metadata.repository.RepositorySessionFactoryBean"> + <constructor-arg> + <util:properties location="classpath:archiva-runtime.properties" local-override="true"/> + </constructor-arg> + </bean> </beans>
\ No newline at end of file |