From: Brett Porter Date: Thu, 23 Dec 2010 00:19:22 +0000 (+0000) Subject: move cache configuration into Spring context file X-Git-Tag: archiva-1.4-M1~859 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cdcc0f4ded26ea46705db23021c509b218b3efbc;p=archiva.git move cache configuration into Spring context file git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1052117 13f79535-47bb-0310-9956-ffa450edef68 --- 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