aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-03-28 00:40:08 +0000
committerOlivier Lamy <olamy@apache.org>2014-03-28 00:40:08 +0000
commita232d78803e943bdbc4cc352331727d6c3e47b26 (patch)
tree7aaa65fbc06c1cb45380b020ca7db1c107988862
parent09942a03e5d2077e7da71af12a6f3fc021d02c9e (diff)
downloadarchiva-a232d78803e943bdbc4cc352331727d6c3e47b26.tar.gz
archiva-a232d78803e943bdbc4cc352331727d6c3e47b26.zip
ease configuration of the metadata storage factory
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1582569 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-jetty/pom.xml2
-rw-r--r--archiva-jetty/src/main/conf/archiva-cassandra.properties26
2 files changed, 28 insertions, 0 deletions
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 @@
<systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty>
<systemProperty>java.io.tmpdir=%ARCHIVA_BASE%/temp</systemProperty>
<systemProperty>AsyncLoggerConfig.WaitStrategy=Sleep</systemProperty>
+ <systemProperty>archiva.repositorySessionFactory.id=jcr</systemProperty>
+ <systemProperty>archiva.cassandra.configuration.file=%ARCHIVA_BASE%/conf/archiva-cassandra.properties</systemProperty>
</systemProperties>
<extraArguments>
<extraArgument>-XX:MaxPermSize=128m</extraArgument>
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