Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

MetadataTransferTest.xml 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!--
  2. ~ Licensed to the Apache Software Foundation (ASF) under one
  3. ~ or more contributor license agreements. See the NOTICE file
  4. ~ distributed with this work for additional information
  5. ~ regarding copyright ownership. The ASF licenses this file
  6. ~ to you under the Apache License, Version 2.0 (the
  7. ~ "License"); you may not use this file except in compliance
  8. ~ with the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing,
  13. ~ software distributed under the License is distributed on an
  14. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. ~ KIND, either express or implied. See the License for the
  16. ~ specific language governing permissions and limitations
  17. ~ under the License.
  18. -->
  19. <component-set>
  20. <components>
  21. <component>
  22. <role>org.apache.maven.wagon.Wagon</role>
  23. <role-hint>test</role-hint>
  24. <implementation>org.apache.maven.archiva.proxy.WagonDelegate</implementation>
  25. </component>
  26. <component>
  27. <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
  28. <role-hint>mock</role-hint>
  29. <implementation>org.apache.maven.archiva.proxy.MockConfiguration</implementation>
  30. </component>
  31. <component>
  32. <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
  33. <role-hint>mocked</role-hint>
  34. <implementation>org.apache.maven.archiva.repository.RepositoryContentFactory</implementation>
  35. <description>RepositoryContentRequest</description>
  36. <requirements>
  37. <requirement>
  38. <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
  39. <role-hint>mock</role-hint>
  40. <field-name>archivaConfiguration</field-name>
  41. </requirement>
  42. </requirements>
  43. </component>
  44. <component>
  45. <role>org.apache.maven.archiva.repository.metadata.MetadataTools</role>
  46. <implementation>org.apache.maven.archiva.repository.metadata.MetadataTools</implementation>
  47. <description>MetadataTools</description>
  48. <requirements>
  49. <requirement>
  50. <role>org.apache.maven.archiva.configuration.FileTypes</role>
  51. <field-name>filetypes</field-name>
  52. </requirement>
  53. <requirement>
  54. <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
  55. <role-hint>mock</role-hint>
  56. <field-name>configuration</field-name>
  57. </requirement>
  58. </requirements>
  59. </component>
  60. <component>
  61. <role>org.apache.maven.archiva.proxy.RepositoryProxyConnectors</role>
  62. <role-hint>default</role-hint>
  63. <implementation>org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors</implementation>
  64. <description>DefaultRepositoryProxyConnectors</description>
  65. <requirements>
  66. <requirement>
  67. <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role>
  68. <role-hint>mock</role-hint>
  69. <field-name>archivaConfiguration</field-name>
  70. </requirement>
  71. <requirement>
  72. <role>org.apache.archiva.proxy.common.WagonFactory</role>
  73. </requirement>
  74. <requirement>
  75. <role>org.apache.maven.archiva.repository.RepositoryContentFactory</role>
  76. <role-hint>mocked</role-hint>
  77. </requirement>
  78. <requirement>
  79. <role>org.apache.maven.archiva.repository.metadata.MetadataTools</role>
  80. </requirement>
  81. <requirement>
  82. <role>org.apache.maven.archiva.policies.PreDownloadPolicy</role>
  83. <field-name>preDownloadPolicies</field-name>
  84. </requirement>
  85. <requirement>
  86. <role>org.apache.maven.archiva.policies.PostDownloadPolicy</role>
  87. <field-name>postDownloadPolicies</field-name>
  88. </requirement>
  89. <requirement>
  90. <role>org.apache.maven.archiva.policies.urlcache.UrlFailureCache</role>
  91. <field-name>urlFailureCache</field-name>
  92. </requirement>
  93. <requirement>
  94. <role>org.apache.archiva.scheduler.ArchivaTaskScheduler</role>
  95. <role-hint>repository</role-hint>
  96. <field-name>scheduler</field-name>
  97. </requirement>
  98. </requirements>
  99. </component>
  100. <component>
  101. <role>org.codehaus.plexus.cache.Cache</role>
  102. <role-hint>url-failures-cache</role-hint>
  103. <implementation>org.codehaus.plexus.cache.ehcache.EhcacheCache</implementation>
  104. <description>URL Failure Cache</description>
  105. <configuration>
  106. <disk-expiry-thread-interval-seconds>600</disk-expiry-thread-interval-seconds>
  107. <disk-persistent>false</disk-persistent> <!--disabling disk persistence for unit testing. -->
  108. <disk-store-path>${java.io.tmpdir}/archiva/urlcache</disk-store-path>
  109. <eternal>false</eternal>
  110. <max-elements-in-memory>1000</max-elements-in-memory>
  111. <memory-eviction-policy>LRU</memory-eviction-policy>
  112. <name>url-failures-cache</name>
  113. <overflow-to-disk>false</overflow-to-disk>
  114. <!-- 45 minutes = 2700 seconds -->
  115. <time-to-idle-seconds>2700</time-to-idle-seconds>
  116. <!-- 30 minutes = 1800 seconds -->
  117. <time-to-live-seconds>1800</time-to-live-seconds>
  118. </configuration>
  119. </component>
  120. <component>
  121. <role>org.apache.archiva.metadata.repository.MetadataRepository</role>
  122. <implementation>org.apache.archiva.metadata.repository.TestMetadataRepository</implementation>
  123. </component>
  124. </components>
  125. </component-set>