From a232d78803e943bdbc4cc352331727d6c3e47b26 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 28 Mar 2014 00:40:08 +0000 Subject: [PATCH] ease configuration of the metadata storage factory git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1582569 13f79535-47bb-0310-9956-ffa450edef68 --- archiva-jetty/pom.xml | 2 ++ .../main/conf/archiva-cassandra.properties | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 archiva-jetty/src/main/conf/archiva-cassandra.properties diff --git a/archiva-jetty/pom.xml b/archiva-jetty/pom.xml index 87ba1c61d..6000f538e 100644 --- a/archiva-jetty/pom.xml +++ b/archiva-jetty/pom.xml @@ -177,6 +177,8 @@ jetty.logs=%ARCHIVA_BASE%/logs java.io.tmpdir=%ARCHIVA_BASE%/temp AsyncLoggerConfig.WaitStrategy=Sleep + archiva.repositorySessionFactory.id=jcr + archiva.cassandra.configuration.file=%ARCHIVA_BASE%/conf/archiva-cassandra.properties -XX:MaxPermSize=128m diff --git a/archiva-jetty/src/main/conf/archiva-cassandra.properties b/archiva-jetty/src/main/conf/archiva-cassandra.properties new file mode 100644 index 000000000..1d8fd5231 --- /dev/null +++ b/archiva-jetty/src/main/conf/archiva-cassandra.properties @@ -0,0 +1,26 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +cassandra.host=localhost +cassandra.port=9160 +cassandra.maxActive=20 +cassandra.readConsistencyLevel=QUORUM +cassandra.writeConsistencyLevel=QUORUM +cassandra.replicationFactor=1 +cassandra.keyspace.name=ArchivaKeySpace +cassandra.cluster.name=archiva -- 2.39.5