]> source.dussan.org Git - archiva.git/commitdiff
ease configuration of the metadata storage factory
authorOlivier Lamy <olamy@apache.org>
Fri, 28 Mar 2014 00:40:08 +0000 (00:40 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 28 Mar 2014 00:40:08 +0000 (00:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1582569 13f79535-47bb-0310-9956-ffa450edef68

archiva-jetty/pom.xml
archiva-jetty/src/main/conf/archiva-cassandra.properties [new file with mode: 0644]

index 87ba1c61d9a7ff7fa87161fd7f56387b4d975d95..6000f538e6deb92986cacdf63fd2c149e3a149b7 100644 (file)
                   <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 (file)
index 0000000..1d8fd52
--- /dev/null
@@ -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