mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-10-01 14:41:57 +00:00
More clean up regarding Solr and H2/other databases
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Context crossContext="true">
|
|
||||||
<Environment name="solr/home" type="java.lang.String" value="${solr.home}" override="true"/>
|
|
||||||
<Environment name="solr/model/dir" type="java.lang.String" value="${solr.model.dir}" override="true"/>
|
|
||||||
<Environment name="solr/content/dir" type="java.lang.String" value="${solr.content.dir}" override="true"/>
|
|
||||||
|
|
||||||
</Context>
|
|
@@ -265,12 +265,8 @@
|
|||||||
<version>${alfresco.sdk.version}</version>
|
<version>${alfresco.sdk.version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
|
||||||
<!-- We need the flat file H2 database to run the Repo -->
|
|
||||||
<enableH2>true</enableH2>
|
|
||||||
<!-- We always need the Platform/Repo webapp - alfresco.war -->
|
<!-- We always need the Platform/Repo webapp - alfresco.war -->
|
||||||
<enablePlatform>true</enablePlatform>
|
<enablePlatform>true</enablePlatform>
|
||||||
<!-- Enable Solr webapp so we can use search -->
|
|
||||||
<enableSolr>true</enableSolr>
|
|
||||||
<!-- We need Share webapp, so we got a UI for working with the Repo -->
|
<!-- We need Share webapp, so we got a UI for working with the Repo -->
|
||||||
<enableShare>true</enableShare>
|
<enableShare>true</enableShare>
|
||||||
<!-- Enable the REST API Explorer -->
|
<!-- Enable the REST API Explorer -->
|
||||||
|
@@ -1,69 +0,0 @@
|
|||||||
# 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.
|
|
||||||
# RUN TIME PROPERTIES
|
|
||||||
# -------------------
|
|
||||||
|
|
||||||
########################################################################################################################
|
|
||||||
# Alfresco configuration for running locally with Enterprise Database, such as SQL Server, Oracle etc
|
|
||||||
#
|
|
||||||
# Configuration when running Tomcat embedded from Maven.
|
|
||||||
# Property values from the POM but it can also be edited here.
|
|
||||||
########################################################################################################################
|
|
||||||
|
|
||||||
dir.root=${alfresco.data.location}
|
|
||||||
|
|
||||||
# Alfresco Repo Webapp (alfresco.war) context, ports etc
|
|
||||||
alfresco.context=alfresco
|
|
||||||
alfresco.host=localhost
|
|
||||||
alfresco.port=8080
|
|
||||||
alfresco.protocol=http
|
|
||||||
|
|
||||||
# Alfresco Share Webapp (share.war) context, ports etc
|
|
||||||
share.context=share
|
|
||||||
share.host=localhost
|
|
||||||
share.port=8080
|
|
||||||
share.protocol=http
|
|
||||||
|
|
||||||
index.subsystem.name=solr4
|
|
||||||
solr.host=localhost
|
|
||||||
solr.port=8080
|
|
||||||
solr.secureComms=none
|
|
||||||
|
|
||||||
# Don't try and recover any index
|
|
||||||
index.recovery.mode=NONE
|
|
||||||
|
|
||||||
# These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
|
|
||||||
# See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
|
|
||||||
# If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
|
|
||||||
wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
|
|
||||||
wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
|
|
||||||
wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
|
|
||||||
|
|
||||||
# Fail or not when there are node integrity checker errors
|
|
||||||
integrity.failOnError=true
|
|
||||||
|
|
||||||
# Alfresco Repository Enterprise Database Configuration, such as SQL Server, Oracle etc
|
|
||||||
# The Enterprise Driver is brought in via the tomcat7-maven-plugin as a dependency.
|
|
||||||
db.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
||||||
db.url=jdbc:sqlserver://localhost:1433;databaseName=alfrescoaio
|
|
||||||
db.username=alfresco
|
|
||||||
db.password=alfresco
|
|
||||||
db.pool.initial=10
|
|
||||||
db.pool.max=100
|
|
||||||
|
|
||||||
# File servers related properties
|
|
||||||
# For local runs we disable CIFS and FTP
|
|
||||||
cifs.enabled=false
|
|
||||||
ftp.enabled=false
|
|
@@ -1,73 +0,0 @@
|
|||||||
# 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.
|
|
||||||
# RUN TIME PROPERTIES
|
|
||||||
# -------------------
|
|
||||||
|
|
||||||
########################################################################################################################
|
|
||||||
# Alfresco configuration for running locally with H2 Database
|
|
||||||
#
|
|
||||||
# Configuration when running Tomcat embedded from Maven.
|
|
||||||
# Property values from the POM but it can also be edited here.
|
|
||||||
########################################################################################################################
|
|
||||||
|
|
||||||
dir.root=${alfresco.data.location}
|
|
||||||
|
|
||||||
# Alfresco Repo Webapp (alfresco.war) context, ports etc
|
|
||||||
alfresco.context=alfresco
|
|
||||||
alfresco.host=localhost
|
|
||||||
alfresco.port=8080
|
|
||||||
alfresco.protocol=http
|
|
||||||
|
|
||||||
# Alfresco Share Webapp (share.war) context, ports etc
|
|
||||||
share.context=share
|
|
||||||
share.host=localhost
|
|
||||||
share.port=8080
|
|
||||||
share.protocol=http
|
|
||||||
|
|
||||||
index.subsystem.name=solr4
|
|
||||||
solr.host=localhost
|
|
||||||
solr.port=8080
|
|
||||||
solr.secureComms=none
|
|
||||||
|
|
||||||
# Don't try and recover any index
|
|
||||||
index.recovery.mode=NONE
|
|
||||||
|
|
||||||
# These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
|
|
||||||
# See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
|
|
||||||
# If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
|
|
||||||
wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
|
|
||||||
wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
|
|
||||||
wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
|
|
||||||
|
|
||||||
# Fail or not when there are node integrity checker errors
|
|
||||||
integrity.failOnError=true
|
|
||||||
|
|
||||||
# Alfresco Repository H2 Database configuration.
|
|
||||||
# The H2 database implementation and Driver is brought in via the tomcat7-maven-plugin as a dependency.
|
|
||||||
# The data files for the H2 database will be created in a relative path, such as alf_data_dev/h2_data/alf_dev,
|
|
||||||
# see alfresco.db.url below.
|
|
||||||
# For more information about the db parameters see:http://www.h2database.com/html/features.html
|
|
||||||
db.driver=org.h2.jdbcx.JdbcDataSource
|
|
||||||
db.url=jdbc:h2:${alfresco.data.location}/h2_data/alf_dev;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0
|
|
||||||
db.username=alfresco
|
|
||||||
db.password=alfresco
|
|
||||||
db.pool.initial=10
|
|
||||||
db.pool.max=100
|
|
||||||
hibernate.dialect=org.hibernate.dialect.H2Dialect
|
|
||||||
|
|
||||||
# File servers related properties
|
|
||||||
# For local runs we disable CIFS and FTP
|
|
||||||
cifs.enabled=false
|
|
||||||
ftp.enabled=false
|
|
@@ -1,69 +0,0 @@
|
|||||||
# 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.
|
|
||||||
# RUN TIME PROPERTIES
|
|
||||||
# -------------------
|
|
||||||
|
|
||||||
########################################################################################################################
|
|
||||||
# Alfresco configuration for running locally with MySQL Database
|
|
||||||
#
|
|
||||||
# Configuration when running Tomcat embedded from Maven.
|
|
||||||
# Property values from the POM but it can also be edited here.
|
|
||||||
########################################################################################################################
|
|
||||||
|
|
||||||
dir.root=${alfresco.data.location}
|
|
||||||
|
|
||||||
# Alfresco Repo Webapp (alfresco.war) context, ports etc
|
|
||||||
alfresco.context=alfresco
|
|
||||||
alfresco.host=localhost
|
|
||||||
alfresco.port=8080
|
|
||||||
alfresco.protocol=http
|
|
||||||
|
|
||||||
# Alfresco Share Webapp (share.war) context, ports etc
|
|
||||||
share.context=share
|
|
||||||
share.host=localhost
|
|
||||||
share.port=8080
|
|
||||||
share.protocol=http
|
|
||||||
|
|
||||||
index.subsystem.name=solr4
|
|
||||||
solr.host=localhost
|
|
||||||
solr.port=8080
|
|
||||||
solr.secureComms=none
|
|
||||||
|
|
||||||
# Don't try and recover any index
|
|
||||||
index.recovery.mode=NONE
|
|
||||||
|
|
||||||
# These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
|
|
||||||
# See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
|
|
||||||
# If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
|
|
||||||
wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
|
|
||||||
wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
|
|
||||||
wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
|
|
||||||
|
|
||||||
# Fail or not when there are node integrity checker errors
|
|
||||||
integrity.failOnError=true
|
|
||||||
|
|
||||||
# Alfresco Repository MySQL Database configuration.
|
|
||||||
# The MySQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
|
|
||||||
db.driver=org.gjt.mm.mysql.Driver
|
|
||||||
db.url=jdbc:mysql://localhost:3306/alfrescoaio?useUnicode=yes&characterEncoding=UTF-8
|
|
||||||
db.username=alfresco
|
|
||||||
db.password=alfresco
|
|
||||||
db.pool.initial=10
|
|
||||||
db.pool.max=100
|
|
||||||
|
|
||||||
# File servers related properties
|
|
||||||
# For local runs we disable CIFS and FTP
|
|
||||||
cifs.enabled=false
|
|
||||||
ftp.enabled=false
|
|
@@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Context crossContext="true">
|
|
||||||
<Environment name="solr/home" type="java.lang.String" value="${solr.home}" override="true"/>
|
|
||||||
<Environment name="solr/model/dir" type="java.lang.String" value="${solr.model.dir}" override="true"/>
|
|
||||||
<Environment name="solr/content/dir" type="java.lang.String" value="${solr.content.dir}" override="true"/>
|
|
||||||
|
|
||||||
</Context>
|
|
@@ -2,12 +2,11 @@
|
|||||||
|
|
||||||
To run use `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it
|
To run use `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it
|
||||||
|
|
||||||
* Runs the embedded Tomcat + H2 DB
|
* Runs the embedded Tomcat
|
||||||
* Runs Alfresco Platform (Repository)
|
* Runs Alfresco Platform (Repository)
|
||||||
* Runs Alfresco Solr4
|
|
||||||
* Packages both as JAR and AMP assembly
|
* Packages both as JAR and AMP assembly
|
||||||
|
|
||||||
Try cloning it, change the port and play with `enableShare`, `enablePlatform` and `enableSolr`.
|
Try cloning it, change the port and play with `enableShare` and `enablePlatform`.
|
||||||
|
|
||||||
Protip: This module will work just fine as a Share module if the files are changed and
|
Protip: This module will work just fine as a Share module if the files are changed and
|
||||||
if the enablePlatform and enableSolr is disabled.
|
if the enablePlatform and enableSolr is disabled.
|
||||||
|
@@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Context crossContext="true">
|
|
||||||
<Environment name="solr/home" type="java.lang.String" value="${solr.home}" override="true"/>
|
|
||||||
<Environment name="solr/model/dir" type="java.lang.String" value="${solr.model.dir}" override="true"/>
|
|
||||||
<Environment name="solr/content/dir" type="java.lang.String" value="${solr.content.dir}" override="true"/>
|
|
||||||
|
|
||||||
</Context>
|
|
@@ -72,9 +72,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
|
|
||||||
<!-- We assume that the platform/repository is already running on localhost:8080 -->
|
<!-- We assume that the platform/repository is already running on localhost:8080 -->
|
||||||
<enableH2>false</enableH2>
|
|
||||||
<enablePlatform>false</enablePlatform>
|
<enablePlatform>false</enablePlatform>
|
||||||
<enableSolr>false</enableSolr>
|
|
||||||
|
|
||||||
<!-- Enable the Share webapp, which is what we customize with Share JAR modules -->
|
<!-- Enable the Share webapp, which is what we customize with Share JAR modules -->
|
||||||
<enableShare>true</enableShare>
|
<enableShare>true</enableShare>
|
||||||
|
Reference in New Issue
Block a user