You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

spring-context-cleanup-released-snapshots.xml 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <beans xmlns="http://www.springframework.org/schema/beans"
  21. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22. xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
  23. xsi:schemaLocation="http://www.springframework.org/schema/beans
  24. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  25. http://www.springframework.org/schema/context
  26. http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"
  27. default-lazy-init="true">
  28. <bean name="archivaConfiguration#cleanup-released-snapshots" class="org.apache.archiva.configuration.provider.DefaultArchivaConfiguration">
  29. <property name="registry" ref="registry#cleanup-released-snapshots"/>
  30. </bean>
  31. <alias name="archivaConfiguration#cleanup-released-snapshots" alias="archivaConfiguration"/>
  32. <alias name="archivaConfiguration#cleanup-released-snapshots" alias="archivaConfiguration#default"/>
  33. <context:component-scan base-package="org.apache.archiva.configuration,org.apache.archiva.repository.content.base,org.apache.archiva.maven.indexer"/>
  34. <alias name="repositoryContentFactory#cleanup-released-snapshots" alias="repositoryContentFactory#default" />
  35. <bean name="registry#cleanup-released-snapshots" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry">
  36. <property name="initialConfiguration">
  37. <value>
  38. <![CDATA[
  39. <configuration>
  40. <xml fileName="${basedir}/src/test/conf/repository-manager.xml"
  41. config-name="org.apache.archiva" config-at="org.apache.archiva"/>
  42. </configuration>
  43. ]]>
  44. </value>
  45. </property>
  46. </bean>
  47. <bean name="repositoryContentFactory#cleanup-released-snapshots" class="org.apache.archiva.repository.RepositoryContentFactory">
  48. <property name="archivaConfiguration" ref="archivaConfiguration#cleanup-released-snapshots"/>
  49. </bean>
  50. <bean name="commons-configuration" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry">
  51. <property name="initialConfiguration">
  52. <value>
  53. <![CDATA[
  54. <configuration>
  55. <system/>
  56. <xml fileName="${appserver.base}/conf/archiva.xml" config-forceCreate="true"
  57. config-optional="true"
  58. config-name="org.apache.archiva.base" config-at="org.apache.archiva"/>
  59. </configuration>
  60. ]]>
  61. </value>
  62. </property>
  63. </bean>
  64. <!-- ***
  65. JPA settings
  66. *** -->
  67. <bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
  68. <property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
  69. <property name="jpaPropertyMap">
  70. <map>
  71. <entry key="openjpa.ConnectionURL" value="jdbc:hsqldb:mem:redback_database" />
  72. <entry key="openjpa.ConnectionDriverName" value="org.hsqldb.jdbcDriver" />
  73. <entry key="openjpa.ConnectionUserName" value="sa" />
  74. <entry key="openjpa.ConnectionPassword" value="" />
  75. <entry key="openjpa.Log" value="${openjpa.Log:DefaultLevel=INFO,Runtime=ERROR,Tool=ERROR,SQL=ERROR,Schema=ERROR,MetaData=ERROR}" />
  76. <entry key="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" />
  77. <entry key="openjpa.jdbc.MappingDefaults"
  78. value="ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict"/>
  79. </map>
  80. </property>
  81. </bean>
  82. <bean name="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" >
  83. <property name="entityManagerFactory" ref="entityManagerFactory" />
  84. </bean>
  85. <tx:annotation-driven />
  86. <!-- ***
  87. End of JPA settings
  88. *** -->
  89. </beans>