mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-08-07 17:49:34 +00:00
Added integration-tests subproject to AIO, #401
This commit is contained in:
@@ -96,6 +96,44 @@
|
|||||||
</fileSet>
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
<module id="integration-tests" name="integration-tests" dir="integration-tests">
|
||||||
|
<fileSets>
|
||||||
|
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||||
|
<directory>src/main/java</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.java</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||||
|
<directory>src/test/java</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.java</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
|
<directory>src/test/resources</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**/dev-log4j.properties</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="false">
|
||||||
|
<directory>src/test/resources</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/dev-log4j.properties</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="false">
|
||||||
|
<directory>src/test/properties</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.properties</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<fileSets>
|
<fileSets>
|
||||||
|
@@ -0,0 +1,119 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>${artifactId}</artifactId>
|
||||||
|
<name>Integration Tests Module</name>
|
||||||
|
<description>Integration Tests module for in-container integration testing - part of AIO - SDK 3</description>
|
||||||
|
<packaging>jar</packaging> <!-- Note. this just runs Integration Tests, but it needs to be a JAR otherwise
|
||||||
|
nothing is compiled (i.e. you cannot set it to pom) -->
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${rootArtifactId}</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<!-- Bring in any custom module that should be tested, by default we bring in the Platform JAR module
|
||||||
|
that is generated for the AIO project -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${rootArtifactId}-platform-jar</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- Filter the test resource files in the IT project, and do property substitutions.
|
||||||
|
We need this config so this is done before the Alfresco Maven Plugin 'it' is executed. -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
<inherited>false</inherited>
|
||||||
|
<!-- Run only for the AIO parent Project -->
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-and-filter-test-resources</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<testResource>
|
||||||
|
<directory>src/test/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</testResource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Runs the integration tests, any class that follows naming convention
|
||||||
|
"**/IT*.java", "**/*IT.java", and "**/*ITCase.java" will be considered an integration test -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-failsafe-plugin</artifactId>
|
||||||
|
<version>2.19.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>integration-test</id>
|
||||||
|
<phase>integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>integration-test</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>verify-test</id>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>verify</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven.surefire</groupId>
|
||||||
|
<artifactId>surefire-junit47</artifactId>
|
||||||
|
<version>2.19.1</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Run Alfresco Tomcat embedded -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.alfresco.maven.plugin</groupId>
|
||||||
|
<artifactId>alfresco-maven-plugin</artifactId>
|
||||||
|
<version>${alfresco.sdk.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>start-alfresco</id>
|
||||||
|
<goals>
|
||||||
|
<goal>it</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
</execution>
|
||||||
|
<!-- No need to call a shutdown mojo, it shuts down after the tests finishes
|
||||||
|
<execution>
|
||||||
|
<id>stop-alfresco</id>
|
||||||
|
<goals>
|
||||||
|
<goal>shutdown</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>post-integration-test</phase>
|
||||||
|
</execution>
|
||||||
|
-->
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@@ -0,0 +1,72 @@
|
|||||||
|
# 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
|
||||||
|
# As we run embedded, we set Lucene
|
||||||
|
# TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
|
||||||
|
#index.subsystem.name=buildonly
|
||||||
|
|
||||||
|
# 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
|
@@ -0,0 +1,76 @@
|
|||||||
|
# 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
|
||||||
|
# As we run embedded, we set Lucene
|
||||||
|
# TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
|
||||||
|
#index.subsystem.name=buildonly
|
||||||
|
|
||||||
|
# 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
|
@@ -0,0 +1,72 @@
|
|||||||
|
# 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
|
||||||
|
# As we run embedded, we set Lucene
|
||||||
|
# TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
|
||||||
|
#index.subsystem.name=buildonly
|
||||||
|
|
||||||
|
# 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
|
@@ -0,0 +1,72 @@
|
|||||||
|
# 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 PostgreSQL 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
|
||||||
|
# As we run embedded, we set Lucene
|
||||||
|
# TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon
|
||||||
|
#index.subsystem.name=buildonly
|
||||||
|
|
||||||
|
# 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 PostgreSQL Database configuration.
|
||||||
|
# The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
|
||||||
|
db.driver=org.postgresql.Driver
|
||||||
|
db.url=jdbc:postgresql://localhost:5432/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
|
@@ -0,0 +1,263 @@
|
|||||||
|
# Set root logger level to error
|
||||||
|
log4j.rootLogger=error, Console, File
|
||||||
|
|
||||||
|
|
||||||
|
# All outputs currently set to be a ConsoleAppender.
|
||||||
|
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
||||||
|
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
||||||
|
|
||||||
|
# use log4j NDC to replace %x with tenant domain / username
|
||||||
|
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
|
||||||
|
#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
||||||
|
|
||||||
|
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
||||||
|
log4j.appender.File.File=alfresco.log
|
||||||
|
log4j.appender.File.Append=true
|
||||||
|
log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
||||||
|
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
|
||||||
|
|
||||||
|
#log4j.appender.file=org.apache.log4j.FileAppender
|
||||||
|
#log4j.appender.file.File=hibernate.log
|
||||||
|
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||||
|
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
||||||
|
|
||||||
|
|
||||||
|
# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
|
||||||
|
# Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
|
||||||
|
# control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via
|
||||||
|
# Log4j addLoggerMBean as long as the logger exists and has been loaded.
|
||||||
|
|
||||||
|
# Hibernate
|
||||||
|
log4j.logger.org.hibernate=error
|
||||||
|
log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
|
||||||
|
log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
|
||||||
|
log4j.logger.org.hibernate.type=warn
|
||||||
|
log4j.logger.org.hibernate.cfg.SettingsFactory=warn
|
||||||
|
|
||||||
|
# Spring
|
||||||
|
log4j.logger.org.springframework=warn
|
||||||
|
# Turn off Spring remoting warnings that should really be info or debug.
|
||||||
|
log4j.logger.org.springframework.remoting.support=error
|
||||||
|
log4j.logger.org.springframework.util=error
|
||||||
|
|
||||||
|
# Axis/WSS4J
|
||||||
|
log4j.logger.org.apache.axis=info
|
||||||
|
log4j.logger.org.apache.ws=info
|
||||||
|
|
||||||
|
# CXF
|
||||||
|
log4j.logger.org.apache.cxf=error
|
||||||
|
|
||||||
|
# MyFaces
|
||||||
|
log4j.logger.org.apache.myfaces.util.DebugUtils=info
|
||||||
|
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
|
||||||
|
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
|
||||||
|
log4j.logger.org.apache.myfaces.taglib=error
|
||||||
|
|
||||||
|
# OpenOfficeConnection
|
||||||
|
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
|
||||||
|
|
||||||
|
# log prepared statement cache activity log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
||||||
|
|
||||||
|
# Alfresco
|
||||||
|
log4j.logger.org.alfresco=error
|
||||||
|
log4j.logger.org.alfresco.repo.admin=info
|
||||||
|
log4j.logger.org.alfresco.repo.transaction=warn
|
||||||
|
log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn
|
||||||
|
log4j.logger.org.alfresco.repo.model.filefolder=warn
|
||||||
|
log4j.logger.org.alfresco.repo.tenant=info
|
||||||
|
log4j.logger.org.alfresco.config=warn
|
||||||
|
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
|
||||||
|
log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn
|
||||||
|
log4j.logger.org.alfresco.repo.management.subsystems=warn
|
||||||
|
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info
|
||||||
|
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn
|
||||||
|
log4j.logger.org.alfresco.repo.security.sync=info
|
||||||
|
log4j.logger.org.alfresco.repo.security.person=info
|
||||||
|
|
||||||
|
log4j.logger.org.alfresco.sample=info
|
||||||
|
log4j.logger.org.alfresco.web=info
|
||||||
|
#log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
|
||||||
|
#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
|
||||||
|
#log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
|
||||||
|
#log4j.logger.org.alfresco.web.bean.clipboard=debug
|
||||||
|
log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
|
||||||
|
#log4j.logger.org.alfresco.web.page=debug
|
||||||
|
|
||||||
|
log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error
|
||||||
|
#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
|
||||||
|
|
||||||
|
log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
|
||||||
|
log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info
|
||||||
|
|
||||||
|
# Specific patches
|
||||||
|
log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info
|
||||||
|
log4j.logger.org.alfresco.repo.version.VersionMigrator=info
|
||||||
|
|
||||||
|
log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
|
||||||
|
log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
|
||||||
|
log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
|
||||||
|
log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn
|
||||||
|
log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn
|
||||||
|
log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
|
||||||
|
log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info
|
||||||
|
log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
|
||||||
|
log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn
|
||||||
|
log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn
|
||||||
|
log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn
|
||||||
|
log4j.logger.org.alfresco.util.AbstractTriggerBean=warn
|
||||||
|
log4j.logger.org.alfresco.enterprise.repo.cluster=info
|
||||||
|
log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn
|
||||||
|
|
||||||
|
#log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
|
||||||
|
log4j.logger.org.alfresco.repo.node.db.NodeStringLengthWorker=info
|
||||||
|
|
||||||
|
log4j.logger.org.alfresco.repo.workflow=info
|
||||||
|
|
||||||
|
# CIFS server debugging
|
||||||
|
log4j.logger.org.alfresco.smb.protocol=error
|
||||||
|
#log4j.logger.org.alfresco.smb.protocol.auth=debug
|
||||||
|
#log4j.logger.org.alfresco.acegi=debug
|
||||||
|
|
||||||
|
# FTP server debugging
|
||||||
|
log4j.logger.org.alfresco.ftp.protocol=error
|
||||||
|
#log4j.logger.org.alfresco.ftp.server=debug
|
||||||
|
|
||||||
|
# WebDAV debugging
|
||||||
|
#log4j.logger.org.alfresco.webdav.protocol=debug
|
||||||
|
log4j.logger.org.alfresco.webdav.protocol=info
|
||||||
|
|
||||||
|
# NTLM servlet filters
|
||||||
|
#log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
|
||||||
|
#log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
|
||||||
|
|
||||||
|
# Kerberos servlet filters
|
||||||
|
#log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug
|
||||||
|
#log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug
|
||||||
|
|
||||||
|
# File servers
|
||||||
|
log4j.logger.org.alfresco.fileserver=warn
|
||||||
|
|
||||||
|
# Repo filesystem debug logging
|
||||||
|
#log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug
|
||||||
|
|
||||||
|
# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
|
||||||
|
log4j.logger.org.alfresco.repo.node.integrity=ERROR
|
||||||
|
|
||||||
|
# Indexer debugging
|
||||||
|
log4j.logger.org.alfresco.repo.search.Indexer=error
|
||||||
|
#log4j.logger.org.alfresco.repo.search.Indexer=debug
|
||||||
|
|
||||||
|
log4j.logger.org.alfresco.repo.search.impl.lucene.index=error
|
||||||
|
log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn
|
||||||
|
#log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
|
||||||
|
|
||||||
|
# Audit debugging
|
||||||
|
# log4j.logger.org.alfresco.repo.audit=DEBUG
|
||||||
|
# log4j.logger.org.alfresco.repo.audit.model=DEBUG
|
||||||
|
|
||||||
|
# Property sheet and modelling debugging
|
||||||
|
# change to error to hide the warnings about missing properties and associations
|
||||||
|
log4j.logger.alfresco.missingProperties=warn
|
||||||
|
|
||||||
|
# Dictionary/Model debugging
|
||||||
|
log4j.logger.org.alfresco.repo.dictionary=warn
|
||||||
|
log4j.logger.org.alfresco.repo.dictionary.types.period=warn
|
||||||
|
|
||||||
|
# Virtualization Server Registry
|
||||||
|
log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error
|
||||||
|
|
||||||
|
# Spring context runtime property setter
|
||||||
|
log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info
|
||||||
|
|
||||||
|
# Debugging options for clustering
|
||||||
|
log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error
|
||||||
|
log4j.logger.org.alfresco.repo.content.replication=error
|
||||||
|
|
||||||
|
#log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
|
||||||
|
|
||||||
|
# Activity service
|
||||||
|
log4j.logger.org.alfresco.repo.activities=warn
|
||||||
|
|
||||||
|
# User usage tracking
|
||||||
|
log4j.logger.org.alfresco.repo.usage=info
|
||||||
|
|
||||||
|
# Sharepoint
|
||||||
|
log4j.logger.org.alfresco.module.vti=info
|
||||||
|
|
||||||
|
# Forms Engine
|
||||||
|
log4j.logger.org.alfresco.web.config.forms=info
|
||||||
|
log4j.logger.org.alfresco.web.scripts.forms=info
|
||||||
|
|
||||||
|
# CMIS
|
||||||
|
log4j.logger.org.alfresco.opencmis=error
|
||||||
|
log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error
|
||||||
|
log4j.logger.org.alfresco.cmis=error
|
||||||
|
log4j.logger.org.alfresco.cmis.dictionary=warn
|
||||||
|
log4j.logger.org.apache.chemistry.opencmis=info
|
||||||
|
log4j.logger.org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet=OFF
|
||||||
|
log4j.logger.org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet=OFF
|
||||||
|
|
||||||
|
# IMAP
|
||||||
|
log4j.logger.org.alfresco.repo.imap=info
|
||||||
|
|
||||||
|
# JBPM
|
||||||
|
# Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler
|
||||||
|
log4j.logger.org.jbpm.graph.def.GraphElement=fatal
|
||||||
|
|
||||||
|
#log4j.logger.org.alfresco.repo.googledocs=debug
|
||||||
|
|
||||||
|
|
||||||
|
# Web Framework
|
||||||
|
log4j.logger.org.springframework.extensions.webscripts=info
|
||||||
|
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
|
||||||
|
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
|
||||||
|
|
||||||
|
# Repository
|
||||||
|
log4j.logger.org.alfresco.repo.web.scripts=warn
|
||||||
|
log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
|
||||||
|
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off
|
||||||
|
log4j.logger.org.alfresco.repo.jscript=error
|
||||||
|
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn
|
||||||
|
log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info
|
||||||
|
|
||||||
|
log4j.logger.org.alfresco.repo.domain.schema.script.ScriptBundleExecutorImpl=off
|
||||||
|
log4j.logger.org.alfresco.repo.domain.schema.script.ScriptExecutorImpl=info
|
||||||
|
|
||||||
|
log4j.logger.org.alfresco.repo.search.impl.solr.facet.SolrFacetServiceImpl=info
|
||||||
|
|
||||||
|
# Bulk Filesystem Import Tool
|
||||||
|
log4j.logger.org.alfresco.repo.bulkimport=warn
|
||||||
|
|
||||||
|
# Freemarker
|
||||||
|
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
||||||
|
log4j.logger.freemarker.runtime=
|
||||||
|
|
||||||
|
# Metadata extraction
|
||||||
|
log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn
|
||||||
|
|
||||||
|
# Reduces PDFont error level due to ALF-7105
|
||||||
|
log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal
|
||||||
|
log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal
|
||||||
|
log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal
|
||||||
|
|
||||||
|
# no index support
|
||||||
|
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal
|
||||||
|
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal
|
||||||
|
|
||||||
|
# lucene index warnings
|
||||||
|
log4j.logger.org.alfresco.repo.search.impl.lucene.index.IndexInfo=warn
|
||||||
|
|
||||||
|
# Warn about RMI socket bind retries.
|
||||||
|
log4j.logger.org.alfresco.util.remote.server.socket.HostConfigurableSocketFactory=warn
|
||||||
|
|
||||||
|
log4j.logger.org.alfresco.repo.usage.RepoUsageMonitor=info
|
||||||
|
|
||||||
|
# Authorization
|
||||||
|
log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationService=info
|
||||||
|
log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationsConsistencyMonitor=warn
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -0,0 +1,63 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<beans>
|
||||||
|
<!--
|
||||||
|
To support hot reloading of server side Javascript files in Share, we have to turn on development mode.
|
||||||
|
This setting will tell the Rhinoscript Processor not to compile and cache the JS files.
|
||||||
|
Cool, we can now change server side JS files and have the changes picked up,
|
||||||
|
without having to restart or refresh web scripts.
|
||||||
|
|
||||||
|
But… Due to a known bug in the Surf framework (ALF-9970) this will break the admin consoles in Share.
|
||||||
|
|
||||||
|
Override this bean and disable javascript compilation so that webscripts can be hot reloaded.
|
||||||
|
We have changed the 'compile' property from true to false.
|
||||||
|
-->
|
||||||
|
<bean id="javaScriptProcessor" class="org.alfresco.repo.jscript.RhinoScriptProcessor" init-method="register">
|
||||||
|
<property name="name">
|
||||||
|
<value>javascript</value>
|
||||||
|
</property>
|
||||||
|
<property name="extension">
|
||||||
|
<value>js</value>
|
||||||
|
</property>
|
||||||
|
<!-- Do not "compile javascript and cache compiled scripts" -->
|
||||||
|
<property name="compile">
|
||||||
|
<value>false</value>
|
||||||
|
</property>
|
||||||
|
<!-- allow sharing of sealed scopes for performance -->
|
||||||
|
<!-- disable to give each script it's own new scope which can be extended -->
|
||||||
|
<property name="shareSealedScopes">
|
||||||
|
<value>true</value>
|
||||||
|
</property>
|
||||||
|
<property name="scriptService">
|
||||||
|
<ref bean="scriptService"/>
|
||||||
|
</property>
|
||||||
|
<!-- Creates ScriptNodes which require the ServiceRegistry -->
|
||||||
|
<property name="serviceRegistry">
|
||||||
|
<ref bean="ServiceRegistry"/>
|
||||||
|
</property>
|
||||||
|
<property name="storeUrl">
|
||||||
|
<value>${spaces.store}</value>
|
||||||
|
</property>
|
||||||
|
<property name="storePath">
|
||||||
|
<value>${spaces.company_home.childname}</value>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
|
</beans>
|
@@ -0,0 +1,54 @@
|
|||||||
|
# Set root logger level to error
|
||||||
|
log4j.rootLogger=error, Console, File
|
||||||
|
|
||||||
|
###### Console appender definition #######
|
||||||
|
|
||||||
|
# All outputs currently set to be a ConsoleAppender.
|
||||||
|
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
||||||
|
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
||||||
|
|
||||||
|
# use log4j NDC to replace %x with tenant domain / username
|
||||||
|
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
|
||||||
|
#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
||||||
|
|
||||||
|
###### File appender definition #######
|
||||||
|
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
||||||
|
log4j.appender.File.File=share.log
|
||||||
|
log4j.appender.File.Append=true
|
||||||
|
log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
||||||
|
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
|
||||||
|
|
||||||
|
# Spring
|
||||||
|
log4j.logger.org.springframework=warn
|
||||||
|
# Turn off Spring remoting warnings that should really be info or debug.
|
||||||
|
log4j.logger.org.springframework.remoting.support=error
|
||||||
|
log4j.logger.org.springframework.util=error
|
||||||
|
|
||||||
|
# MyFaces
|
||||||
|
log4j.logger.org.apache.myfaces.util.DebugUtils=info
|
||||||
|
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
|
||||||
|
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
|
||||||
|
log4j.logger.org.apache.myfaces.taglib=error
|
||||||
|
|
||||||
|
# Alfresco
|
||||||
|
log4j.logger.org.alfresco=error
|
||||||
|
log4j.logger.org.alfresco.config=warn
|
||||||
|
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
|
||||||
|
log4j.logger.org.alfresco.web=info
|
||||||
|
|
||||||
|
# Web Framework
|
||||||
|
log4j.logger.org.springframework.extensions.webscripts=info
|
||||||
|
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
|
||||||
|
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
|
||||||
|
|
||||||
|
# Freemarker
|
||||||
|
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
||||||
|
log4j.logger.freemarker.runtime=
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------
|
||||||
|
# Custom Share module logging goes here...
|
||||||
|
#-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -0,0 +1,7 @@
|
|||||||
|
<?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>
|
@@ -47,7 +47,7 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
|
|||||||
* @since 3.0
|
* @since 3.0
|
||||||
*/
|
*/
|
||||||
@Mojo(name = "it",
|
@Mojo(name = "it",
|
||||||
defaultPhase = LifecyclePhase.INTEGRATION_TEST,
|
defaultPhase = LifecyclePhase.PRE_INTEGRATION_TEST,
|
||||||
aggregator = true, // Only run against the top-level project in a Maven build
|
aggregator = true, // Only run against the top-level project in a Maven build
|
||||||
requiresDependencyResolution = ResolutionScope.TEST)
|
requiresDependencyResolution = ResolutionScope.TEST)
|
||||||
public class IntegrationTestMojo extends AbstractRunMojo {
|
public class IntegrationTestMojo extends AbstractRunMojo {
|
||||||
@@ -85,14 +85,14 @@ public class IntegrationTestMojo extends AbstractRunMojo {
|
|||||||
|
|
||||||
// Create a JAR with all tests and add to module dependencies for platform WAR
|
// Create a JAR with all tests and add to module dependencies for platform WAR
|
||||||
// So we can run tests on the server
|
// So we can run tests on the server
|
||||||
copyTestClassesFromSubModules2Parent();
|
// TODO: remove different approach at the moment with separate integration-tests module copyTestClassesFromSubModules2Parent();
|
||||||
testJarArtifactId = packageAndInstallTestsJar();
|
// TODO: remove testJarArtifactId = packageAndInstallTestsJar();
|
||||||
platformModules.add(
|
// TODO: remove platformModules.add(
|
||||||
new ModuleDependency(
|
// TODO: new ModuleDependency(
|
||||||
project.getGroupId(),
|
// TODO: project.getGroupId(),
|
||||||
testJarArtifactId,
|
// TODO: testJarArtifactId,
|
||||||
project.getVersion(),
|
// TODO: project.getVersion(),
|
||||||
ModuleDependency.TYPE_JAR));
|
// TODO: ModuleDependency.TYPE_JAR));
|
||||||
// Now build the platform WAR
|
// Now build the platform WAR
|
||||||
buildPlatformWar();
|
buildPlatformWar();
|
||||||
}
|
}
|
||||||
@@ -108,8 +108,8 @@ public class IntegrationTestMojo extends AbstractRunMojo {
|
|||||||
if (startTomcat) {
|
if (startTomcat) {
|
||||||
boolean fork = true;
|
boolean fork = true;
|
||||||
startTomcat(fork);
|
startTomcat(fork);
|
||||||
runIntegrationTests(testJarArtifactId);
|
// TODO: remove different approach at the moment with separate integration-tests module runIntegrationTests(testJarArtifactId);
|
||||||
stopTomcat();
|
// TODO: remove stopTomcat();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user