diff options
author | Olivier Lamy <olamy@apache.org> | 2011-05-26 20:56:37 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-05-26 20:56:37 +0000 |
commit | c8f7c57c2589c98903ebd2f337c2d920496539a9 (patch) | |
tree | 597e0fe55a52726594a8e23bdbeb3ac13203b6ad /archiva-modules/plugins | |
parent | abe408f63f48b307be759a3af9619f348d65c730 (diff) | |
download | archiva-c8f7c57c2589c98903ebd2f337c2d920496539a9.tar.gz archiva-c8f7c57c2589c98903ebd2f337c2d920496539a9.zip |
oups missed to add file
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1128085 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins')
-rw-r--r-- | archiva-modules/plugins/problem-reports/src/main/resources/META-INF/spring-context.xml | 33 | ||||
-rw-r--r-- | archiva-modules/plugins/problem-reports/src/test/resources/spring-context.xml | 39 |
2 files changed, 72 insertions, 0 deletions
diff --git a/archiva-modules/plugins/problem-reports/src/main/resources/META-INF/spring-context.xml b/archiva-modules/plugins/problem-reports/src/main/resources/META-INF/spring-context.xml new file mode 100644 index 000000000..d2f81db51 --- /dev/null +++ b/archiva-modules/plugins/problem-reports/src/main/resources/META-INF/spring-context.xml @@ -0,0 +1,33 @@ +<?xml version="1.0"?> + +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<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" + 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" + default-lazy-init="true"> + + <context:annotation-config/> + <context:component-scan base-package="org.apache.archiva.reports"/> + +</beans> diff --git a/archiva-modules/plugins/problem-reports/src/test/resources/spring-context.xml b/archiva-modules/plugins/problem-reports/src/test/resources/spring-context.xml new file mode 100644 index 000000000..7f17bb2fb --- /dev/null +++ b/archiva-modules/plugins/problem-reports/src/test/resources/spring-context.xml @@ -0,0 +1,39 @@ +<?xml version="1.0"?> + +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<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" + 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" + default-lazy-init="true"> + + <bean id="repositorySessionFactoryFactory" class="org.apache.archiva.reports.consumers.MockitoFactory" + name="repositorySessionFactory"> + <constructor-arg value="org.apache.archiva.metadata.repository.RepositorySessionFactory"/> + </bean> + <bean id="repositoryPathTranslatorFactory" class="org.apache.archiva.reports.consumers.MockitoFactory" + name="repositoryPathTranslator#maven2"> + <constructor-arg value="org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator"/> + </bean> + +</beans> |