aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2011-11-14 02:46:56 +0000
committerBrett Porter <brett@apache.org>2011-11-14 02:46:56 +0000
commit292066e3bbe2fd8d8dfbc54ba703577f90a25248 (patch)
tree839aeb791e9765a04be2739b6361c5fdc76554a6
parenta75e5d397728075aeca5e40248923d424ce6c606 (diff)
downloadarchiva-292066e3bbe2fd8d8dfbc54ba703577f90a25248.tar.gz
archiva-292066e3bbe2fd8d8dfbc54ba703577f90a25248.zip
avoid configuring archiva in full for tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1201582 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml17
1 files changed, 16 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml
index cca612d92..57b2c54c2 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml
@@ -29,6 +29,21 @@
<context:annotation-config/>
<context:component-scan base-package="$package"/>
+ <bean name="commons-configuration" class="org.codehaus.redback.components.registry.commons.CommonsConfigurationRegistry">
+ <property name="properties">
+ <value>
+ <![CDATA[
+ <configuration>
+ <system/>
+ <xml fileName="${appserver.base}/conf/archiva.xml" config-forceCreate="true"
+ config-optional="true"
+ config-name="org.apache.archiva.base" config-at="org.apache.archiva"/>
+ </configuration>
+ ]]>
+ </value>
+ </property>
+ </bean>
+
<bean id="jcr-config" class="org.apache.archiva.metadata.repository.jcr.ArchivaJcrRepositoryConfig" factory-method="create">
<constructor-arg value="${appserver.base}/conf/foo.xml"/>
<constructor-arg value="${appserver.base}/data/jcr"/>
@@ -50,4 +65,4 @@
</property>
</bean>
-</beans> \ No newline at end of file
+</beans>