From a06f1b3642dc77794e90f3f82c441b64289017c4 Mon Sep 17 00:00:00 2001 From: mindthegab Date: Wed, 30 Oct 2013 07:03:11 +0000 Subject: [PATCH] fixed solr in runner profile, and introduced maven-replacer-usage in solr web.xml (same as the Alfresco Maven build, using xml comments as tokens to replace git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@709 04253f4f-3451-0410-a141-5562f1e59037 --- .../archetype-resources/runner/pom.xml | 2 +- .../archetype-resources/solr/pom.xml | 57 +++++++++++++++++-- .../solr-properties/archive/solrconfig.xml | 27 ++++++--- .../archive/solrcore.properties | 21 +++---- .../solr-properties/workspace/solrconfig.xml | 27 ++++++--- .../workspace/solrcore.properties | 23 +++++--- 6 files changed, 118 insertions(+), 39 deletions(-) diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/pom.xml index fa270411..eb5e93ed 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/pom.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/runner/pom.xml @@ -16,7 +16,7 @@ run - ../solr + ${project.basedir}/../solr diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/pom.xml index b89abd49..b8c44ed9 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/pom.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/pom.xml @@ -72,12 +72,6 @@ ${alfresco.solr.war.overlay}/WEB-INF true - - src/main/webapp/WEB-INF - - web.xml - - src/main/resources true @@ -88,6 +82,34 @@ + + + com.google.code.maven-replacer-plugin + replacer + + + disable-securecomms + process-resources + + replace + + + + + true + ${alfresco.solr.war.overlay}/WEB-INF/web.xml + + + ]]> + ]]> + + + ]]> + -->]]> + + + + org.apache.maven.plugins maven-antrun-plugin @@ -135,6 +157,7 @@ + @@ -145,4 +168,26 @@ zip + + + + + purge + + + + + maven-clean-plugin + + + + ${project.basedir}/solr_home + + + + + + + + diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/archive/solrconfig.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/archive/solrconfig.xml index 1477c0d7..1c4aba57 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/archive/solrconfig.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/archive/solrconfig.xml @@ -128,7 +128,7 @@ --> - + @@ -384,6 +384,11 @@ initialSize="100" autowarmCount="0" /> + + + + + + diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/archive/solrcore.properties b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/archive/solrcore.properties index bff76d9b..ccef52d7 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/archive/solrcore.properties +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/archive/solrcore.properties @@ -53,21 +53,22 @@ alfresco.workQueueSize=-1 alfresco.maxTotalConnections=40 alfresco.maxHostConnections=40 +alfresco.socketTimeout=60000 # SOLR caching -solr.filterCache.size=512 -solr.filterCache.initialSize=512 -solr.queryResultCache.size=512 -solr.queryResultCache.initialSize=512 -solr.documentCache.size=512 -solr.documentCache.initialSize=512 +solr.filterCache.size=64 +solr.filterCache.initialSize=64 +solr.queryResultCache.size=64 +solr.queryResultCache.initialSize=64 +solr.documentCache.size=64 +solr.documentCache.initialSize=64 solr.queryResultMaxDocsCached=200 -solr.authorityCache.size=512 -solr.authorityCache.initialSize=512 -solr.pathCache.size=512 -solr.pathCache.initialSize=512 +solr.authorityCache.size=64 +solr.authorityCache.initialSize=64 +solr.pathCache.size=64 +solr.pathCache.initialSize=64 # SOLR diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/workspace/solrconfig.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/workspace/solrconfig.xml index 27be2c52..789666f8 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/workspace/solrconfig.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/workspace/solrconfig.xml @@ -128,7 +128,7 @@ --> - + @@ -385,6 +385,11 @@ autowarmCount="0" /> + + + + + + diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/workspace/solrcore.properties b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/workspace/solrcore.properties index a755bfc1..470ae2bf 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/workspace/solrcore.properties +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/solr/src/main/solr-properties/workspace/solrcore.properties @@ -58,21 +58,25 @@ alfresco.workQueueSize=-1 alfresco.maxTotalConnections=40 alfresco.maxHostConnections=40 +alfresco.socketTimeout=60000 # SOLR caching -solr.filterCache.size=512 -solr.filterCache.initialSize=512 +solr.filterCache.size=64 +solr.filterCache.initialSize=64 solr.queryResultCache.size=1024 solr.queryResultCache.initialSize=1024 -solr.documentCache.size=512 -solr.documentCache.initialSize=512 +solr.documentCache.size=64 +solr.documentCache.initialSize=64 solr.queryResultMaxDocsCached=2000 -solr.authorityCache.size=512 -solr.authorityCache.initialSize=512 -solr.pathCache.size=512 -solr.pathCache.initialSize=512 +solr.authorityCache.size=64 +solr.authorityCache.initialSize=64 +solr.pathCache.size=64 +solr.pathCache.initialSize=64 + +solr.readerToAclIdsCache.size=64 +solr.readerToAclIdsCache.initialSize=64 # SOLR @@ -101,3 +105,6 @@ solr.queryResultWindowSize=200 # logging check report .... # # + + +alfresco.doPermissionChecks=true \ No newline at end of file