From cdcc0f4ded26ea46705db23021c509b218b3efbc Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Thu, 23 Dec 2010 00:19:22 +0000 Subject: [PATCH] move cache configuration into Spring context file git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1052117 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-base/archiva-policies/pom.xml | 18 +++----------- .../META-INF/plexus/components-fragment.xml | 24 ------------------- .../resources/META-INF/spring-context.xml | 24 +++++++++++++++---- 3 files changed, 22 insertions(+), 44 deletions(-) delete mode 100644 archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/plexus/components-fragment.xml diff --git a/archiva-modules/archiva-base/archiva-policies/pom.xml b/archiva-modules/archiva-base/archiva-policies/pom.xml index f9e44d9ca..5331d51f9 100644 --- a/archiva-modules/archiva-base/archiva-policies/pom.xml +++ b/archiva-modules/archiva-base/archiva-policies/pom.xml @@ -18,7 +18,8 @@ ~ under the License. --> - + org.apache.archiva archiva-base @@ -68,24 +69,11 @@ descriptor - generate-resources + generate-resources generate-metadata - - merge - generate-resources - - merge-metadata - - - - ${basedir}/src/main/resources/META-INF/plexus/components-fragment.xml - ${project.build.outputDirectory}/META-INF/plexus/components.xml - - - diff --git a/archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/plexus/components-fragment.xml b/archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/plexus/components-fragment.xml deleted file mode 100644 index b66220612..000000000 --- a/archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/plexus/components-fragment.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - org.codehaus.plexus.cache.Cache - url-failures-cache - org.codehaus.plexus.cache.ehcache.EhcacheCache - URL Failure Cache - - 600 - true - ${java.io.tmpdir}/archiva/urlcache - false - 1000 - LRU - url-failures-cache - false - - 2700 - - 1800 - - - - diff --git a/archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/spring-context.xml b/archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/spring-context.xml index 75a5d41c0..082069ef7 100644 --- a/archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/spring-context.xml +++ b/archiva-modules/archiva-base/archiva-policies/src/main/resources/META-INF/spring-context.xml @@ -18,15 +18,29 @@ ~ under the License. --> + class="org.apache.maven.archiva.policies.urlcache.DefaultUrlFailureCache" lazy-init="true"> - + + + + + + + + + + + + + + \ No newline at end of file -- 2.39.5