mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-10-08 14:51:55 +00:00
Merge pull request #511 from Alfresco/sdk-4/archetypes-docker
Archetypes - Switch to docker environment
This commit is contained in:
@@ -23,8 +23,6 @@
|
|||||||
<include>archetype-resources/pom.xml</include>
|
<include>archetype-resources/pom.xml</include>
|
||||||
<include>archetype-resources/run.sh</include>
|
<include>archetype-resources/run.sh</include>
|
||||||
<include>archetype-resources/run.bat</include>
|
<include>archetype-resources/run.bat</include>
|
||||||
<include>archetype-resources/debug.sh</include>
|
|
||||||
<include>archetype-resources/debug.bat</include>
|
|
||||||
<include>META-INF/maven/archetype-metadata.xml</include>
|
<include>META-INF/maven/archetype-metadata.xml</include>
|
||||||
</includes>
|
</includes>
|
||||||
<filtering>true</filtering>
|
<filtering>true</filtering>
|
||||||
@@ -35,8 +33,6 @@
|
|||||||
<exclude>archetype-resources/pom.xml</exclude>
|
<exclude>archetype-resources/pom.xml</exclude>
|
||||||
<exclude>archetype-resources/run.sh</exclude>
|
<exclude>archetype-resources/run.sh</exclude>
|
||||||
<exclude>archetype-resources/run.bat</exclude>
|
<exclude>archetype-resources/run.bat</exclude>
|
||||||
<exclude>archetype-resources/debug.sh</exclude>
|
|
||||||
<exclude>archetype-resources/debug.bat</exclude>
|
|
||||||
<exclude>META-INF/maven/archetype-metadata.xml</exclude>
|
<exclude>META-INF/maven/archetype-metadata.xml</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
<filtering>false</filtering>
|
<filtering>false</filtering>
|
||||||
|
@@ -111,26 +111,67 @@
|
|||||||
<include>**/*.java</include>
|
<include>**/*.java</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet encoding="UTF-8" filtered="true">
|
</fileSets>
|
||||||
<directory>src/test/resources</directory>
|
</module>
|
||||||
<includes>
|
|
||||||
<include>**/dev-log4j.properties</include>
|
<module id="${rootArtifactId}-platform-docker"
|
||||||
</includes>
|
name="${rootArtifactId}-platform-docker"
|
||||||
</fileSet>
|
dir="__rootArtifactId__-platform-docker">
|
||||||
|
<fileSets>
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
<fileSet encoding="UTF-8" filtered="false">
|
||||||
<directory>src/test/resources</directory>
|
<directory>src/main/docker/license</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**</include>
|
<include>**</include>
|
||||||
</includes>
|
</includes>
|
||||||
<excludes>
|
|
||||||
<exclude>**/dev-log4j.properties</exclude>
|
|
||||||
</excludes>
|
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
<fileSet encoding="UTF-8" filtered="false">
|
||||||
<directory>src/test/properties</directory>
|
<directory>src/main/docker</directory>
|
||||||
|
<includes>
|
||||||
|
<include>license/**</include>
|
||||||
|
<include>Dockerfile</include>
|
||||||
|
<include>disable-webscript-caching-context.xml</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*.properties</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/*.properties</include>
|
<include>**/*.properties</include>
|
||||||
</includes>
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>license/**</exclude>
|
||||||
|
<exclude>Dockerfile</exclude>
|
||||||
|
<exclude>disable-webscript-caching-context.xml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</module>
|
||||||
|
|
||||||
|
<module id="${rootArtifactId}-share-docker"
|
||||||
|
name="${rootArtifactId}-share-docker"
|
||||||
|
dir="__rootArtifactId__-share-docker">
|
||||||
|
<fileSets>
|
||||||
|
<fileSet encoding="UTF-8" filtered="false">
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<includes>
|
||||||
|
<include>Dockerfile</include>
|
||||||
|
<include>share-config-custom.xml</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*.properties</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.properties</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>Dockerfile</exclude>
|
||||||
|
<exclude>share-config-custom.xml</exclude>
|
||||||
|
</excludes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
</module>
|
</module>
|
||||||
@@ -138,44 +179,14 @@
|
|||||||
|
|
||||||
<fileSets>
|
<fileSets>
|
||||||
<fileSet encoding="UTF-8" filtered="true">
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
<directory>src/test/resources</directory>
|
<directory>docker</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/dev-log4j.properties</include>
|
<include>**</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet encoding="UTF-8" filtered="true">
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
<directory>src/test/resources</directory>
|
|
||||||
<includes>
|
|
||||||
<include>*hotswap-agent.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>
|
|
||||||
<exclude>*hotswap-agent.properties</exclude>
|
|
||||||
</excludes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
|
||||||
<directory>src/test/properties</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.properties</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
|
||||||
<directory>src/test/license</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8">
|
|
||||||
<directory></directory>
|
<directory></directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>debug.sh</include>
|
|
||||||
<include>debug.bat</include>
|
|
||||||
<include>run.sh</include>
|
<include>run.sh</include>
|
||||||
<include>run.bat</include>
|
<include>run.bat</include>
|
||||||
<include>README.md</include>
|
<include>README.md</include>
|
||||||
|
@@ -0,0 +1,155 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
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>Alfresco Platform/Repository Docker Module</name>
|
||||||
|
<description>Platform/Repo Docker Module to generate the final Docker image</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${rootArtifactId}</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${rootArtifactId}-platform-jar</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.0.2</version>
|
||||||
|
<executions>
|
||||||
|
<!-- Copy the repository extension and the dependencies required for execute integration tests -->
|
||||||
|
<execution>
|
||||||
|
<id>copy-repo-extension</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifactItems>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${rootArtifactId}-platform-jar</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<!-- Test dependencies -->
|
||||||
|
<!-- We need these dependencies installed in ACS in order to execute the test remotely making use of the Alfresco RAD module -->
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.alfresco.maven</groupId>
|
||||||
|
<artifactId>alfresco-rad</artifactId>
|
||||||
|
<version>${alfresco.sdk.version}</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>integration-tests</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
<classifier>tests</classifier>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.12</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.mockito</groupId>
|
||||||
|
<artifactId>mockito-all</artifactId>
|
||||||
|
<version>1.9.5</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
|
<artifactId>httpclient</artifactId>
|
||||||
|
<version>4.5.2</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
</artifactItems>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<!-- Copy other dependencies (JARs or AMPs) declared in the platform module -->
|
||||||
|
<execution>
|
||||||
|
<id>copy-third-party-dependencies</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
<includeScope>runtime</includeScope>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- Filter the Dockerfile and the other files added to the container to be able to replace maven properties -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-and-filter-docker-resources</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*.jar</exclude>
|
||||||
|
<exclude>**/*.so</exclude>
|
||||||
|
</excludes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>copy-and-filter-docker-resources-non-filtered</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<filtering>false</filtering>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.jar</include>
|
||||||
|
<include>**/*.so</include>
|
||||||
|
</includes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@@ -0,0 +1,18 @@
|
|||||||
|
FROM ${docker.acs.image}:${alfresco.platform.version}
|
||||||
|
|
||||||
|
ARG TOMCAT_DIR=/usr/local/tomcat
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no JARs exist
|
||||||
|
COPY Dockerfile extensions/*.jar $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib/
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no AMPs exist
|
||||||
|
COPY Dockerfile extensions/*.amp $TOMCAT_DIR/amps/
|
||||||
|
RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
|
||||||
|
$TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force
|
||||||
|
|
||||||
|
COPY alfresco-global.properties $TOMCAT_DIR/shared/classes/alfresco-global.properties
|
||||||
|
COPY dev-log4j.properties $TOMCAT_DIR/shared/classes/alfresco/extension
|
||||||
|
COPY disable-webscript-caching-context.xml $TOMCAT_DIR/shared/classes/alfresco/extension
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no license file exists
|
||||||
|
COPY Dockerfile license/*.* $TOMCAT_DIR/webapps/alfresco/WEB-INF/classes/alfresco/extension/license/
|
@@ -1,3 +1,6 @@
|
|||||||
|
#set( $symbol_pound = '#' )
|
||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
#set( $symbol_escape = '\' )
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
# this work for additional information regarding copyright ownership.
|
# this work for additional information regarding copyright ownership.
|
||||||
@@ -15,14 +18,12 @@
|
|||||||
# RUN TIME PROPERTIES
|
# RUN TIME PROPERTIES
|
||||||
# -------------------
|
# -------------------
|
||||||
|
|
||||||
########################################################################################################################
|
#
|
||||||
# Alfresco configuration for running locally with PostgreSQL Database
|
# Alfresco configuration for running locally with PostgreSQL Database
|
||||||
#
|
#
|
||||||
# Configuration when running Tomcat embedded from Maven.
|
# Configuration when running Tomcat embedded from Maven.
|
||||||
# Property values from the POM but it can also be edited here.
|
# 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 Repo Webapp (alfresco.war) context, ports etc
|
||||||
alfresco.context=alfresco
|
alfresco.context=alfresco
|
||||||
@@ -33,14 +34,9 @@ alfresco.protocol=http
|
|||||||
# Alfresco Share Webapp (share.war) context, ports etc
|
# Alfresco Share Webapp (share.war) context, ports etc
|
||||||
share.context=share
|
share.context=share
|
||||||
share.host=localhost
|
share.host=localhost
|
||||||
share.port=8080
|
share.port=8180
|
||||||
share.protocol=http
|
share.protocol=http
|
||||||
|
|
||||||
index.subsystem.name=solr4
|
|
||||||
solr.host=localhost
|
|
||||||
solr.port=8080
|
|
||||||
solr.secureComms=none
|
|
||||||
|
|
||||||
# Don't try and recover any index
|
# Don't try and recover any index
|
||||||
index.recovery.mode=NONE
|
index.recovery.mode=NONE
|
||||||
|
|
||||||
@@ -57,12 +53,24 @@ integrity.failOnError=true
|
|||||||
# Alfresco Repository PostgreSQL Database configuration.
|
# Alfresco Repository PostgreSQL Database configuration.
|
||||||
# The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
|
# The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
|
||||||
db.driver=org.postgresql.Driver
|
db.driver=org.postgresql.Driver
|
||||||
db.url=jdbc:postgresql://localhost:5432/alfresco
|
|
||||||
|
# This Alfresco Platform Configuration file should be used for custom properties that are introduced by this module.
|
||||||
|
# Define default values for all properties here.
|
||||||
|
# System Administrators can override these values in environment specific configurations in
|
||||||
|
# alfresco/tomcat/shared/classes/alfresco-global.properties.
|
||||||
|
#
|
||||||
|
index.subsystem.name=solr6
|
||||||
|
solr.host=${rootArtifactId}-ass
|
||||||
|
solr.port=8983
|
||||||
|
solr.secureComms=none
|
||||||
|
|
||||||
db.username=alfresco
|
db.username=alfresco
|
||||||
db.password=alfresco
|
db.password=alfresco
|
||||||
db.pool.initial=10
|
db.pool.initial=10
|
||||||
db.pool.max=100
|
db.pool.max=100
|
||||||
|
|
||||||
|
db.url=jdbc:postgresql://${rootArtifactId}-postgres:5432/alfresco
|
||||||
|
|
||||||
# File servers related properties
|
# File servers related properties
|
||||||
# For local runs we disable CIFS and FTP
|
# For local runs we disable CIFS and FTP
|
||||||
cifs.enabled=false
|
cifs.enabled=false
|
@@ -4,7 +4,6 @@
|
|||||||
# Set root logger level to error
|
# Set root logger level to error
|
||||||
log4j.rootLogger=error, Console, File
|
log4j.rootLogger=error, Console, File
|
||||||
|
|
||||||
###### Console appender definition #######
|
|
||||||
|
|
||||||
# All outputs currently set to be a ConsoleAppender.
|
# All outputs currently set to be a ConsoleAppender.
|
||||||
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
||||||
@@ -14,7 +13,6 @@ log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
|||||||
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
|
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.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
||||||
|
|
||||||
###### File appender definition #######
|
|
||||||
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
||||||
log4j.appender.File.File=alfresco.log
|
log4j.appender.File.File=alfresco.log
|
||||||
log4j.appender.File.Append=true
|
log4j.appender.File.Append=true
|
||||||
@@ -22,13 +20,11 @@ log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
|||||||
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
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.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
|
||||||
|
|
||||||
###### Hibernate specific appender definition #######
|
|
||||||
#log4j.appender.file=org.apache.log4j.FileAppender
|
#log4j.appender.file=org.apache.log4j.FileAppender
|
||||||
#log4j.appender.file.File=hibernate.log
|
#log4j.appender.file.File=hibernate.log
|
||||||
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||||
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
||||||
|
|
||||||
###### Log level overrides #######
|
|
||||||
|
|
||||||
# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
|
# 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
|
# Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
|
||||||
@@ -64,8 +60,7 @@ log4j.logger.org.apache.myfaces.taglib=error
|
|||||||
# OpenOfficeConnection
|
# OpenOfficeConnection
|
||||||
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
|
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
|
||||||
|
|
||||||
# log prepared statement cache activity ###
|
# log prepared statement cache activity log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
||||||
log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
|
||||||
|
|
||||||
# Alfresco
|
# Alfresco
|
||||||
log4j.logger.org.alfresco=error
|
log4j.logger.org.alfresco=error
|
||||||
@@ -215,7 +210,6 @@ log4j.logger.org.jbpm.graph.def.GraphElement=fatal
|
|||||||
|
|
||||||
#log4j.logger.org.alfresco.repo.googledocs=debug
|
#log4j.logger.org.alfresco.repo.googledocs=debug
|
||||||
|
|
||||||
###### Scripting #######
|
|
||||||
|
|
||||||
# Web Framework
|
# Web Framework
|
||||||
log4j.logger.org.springframework.extensions.webscripts=info
|
log4j.logger.org.springframework.extensions.webscripts=info
|
@@ -1,3 +1,6 @@
|
|||||||
|
#set( $symbol_pound = '#' )
|
||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
#set( $symbol_escape = '\' )
|
||||||
# Enable hotswap so that changes in this module will be automatically reloaded
|
# Enable hotswap so that changes in this module will be automatically reloaded
|
||||||
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
||||||
autoHotswap=true
|
autoHotswap=true
|
||||||
@@ -11,7 +14,7 @@ autoHotswap=true
|
|||||||
# i.e. monitor /target/classes
|
# i.e. monitor /target/classes
|
||||||
# should work with extraClasspath=${project.build.outputDirectory}
|
# should work with extraClasspath=${project.build.outputDirectory}
|
||||||
# If not try
|
# If not try
|
||||||
extraClasspath=${project.build.outputDirectory};${project.build.testOutputDirectory}
|
extraClasspath=/usr/local/tomcat/hotswap-agent
|
||||||
|
|
||||||
# Comma separated list of disabled plugins
|
# Comma separated list of disabled plugins
|
||||||
# Use plugin name - e.g.
|
# Use plugin name - e.g.
|
||||||
@@ -23,12 +26,12 @@ disabledPlugins=Hibernate,Spring
|
|||||||
#
|
#
|
||||||
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
||||||
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
||||||
extraWebappContext=${project.build.outputDirectory}/META-INF/resources
|
extraWebappContext=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-platform-jar/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Load static web resources from different directory.
|
# Load static web resources from different directory.
|
||||||
#
|
#
|
||||||
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
||||||
webappDir=${project.build.outputDirectory}/META-INF/resources
|
webappDir=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-platform-jar/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Watch for changes in a directory (resources only).
|
# Watch for changes in a directory (resources only).
|
||||||
#
|
#
|
@@ -0,0 +1,6 @@
|
|||||||
|
# Enterprise License location
|
||||||
|
|
||||||
|
Put the Alfresco Enterprise license file in this directory.
|
||||||
|
It will then be copied into the ACS container in the
|
||||||
|
$TOMCAT_DIR/WEB-INF/classes/alfresco/extension/license directory.
|
||||||
|
|
@@ -17,6 +17,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<!-- Add here any JAR or AMP dependency that needs to be deployed to ACS -->
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@@ -0,0 +1,93 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
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>Alfresco Share Docker Module</name>
|
||||||
|
<description>Share Docker Module to generate the final Docker image</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${rootArtifactId}</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${rootArtifactId}-share-jar</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.0.2</version>
|
||||||
|
<executions>
|
||||||
|
<!-- Copy the share extension -->
|
||||||
|
<execution>
|
||||||
|
<id>copy-repo-extension</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifactItems>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${rootArtifactId}-share-jar</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
</artifactItems>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<!-- Copy other dependencies (JARs or AMPs) declared in the share module -->
|
||||||
|
<execution>
|
||||||
|
<id>copy-third-party-dependencies</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
<includeScope>runtime</includeScope>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- Filter the Dockerfile and the other files added to the container to be able to replace maven properties -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-and-filter-docker-resources</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@@ -0,0 +1,16 @@
|
|||||||
|
FROM ${docker.share.image}:${alfresco.share.version}
|
||||||
|
|
||||||
|
ARG TOMCAT_DIR=/usr/local/tomcat
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no JARs exist
|
||||||
|
COPY Dockerfile extensions/*.jar $TOMCAT_DIR/webapps/share/WEB-INF/lib/
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no AMPs exist
|
||||||
|
COPY Dockerfile extensions/*.amp $TOMCAT_DIR/amps_share/
|
||||||
|
RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
|
||||||
|
$TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force
|
||||||
|
|
||||||
|
COPY share-config-custom.xml $TOMCAT_DIR/shared/classes/alfresco/web-extension
|
||||||
|
|
||||||
|
COPY log4j.properties $TOMCAT_DIR/webapps/share/WEB-INF/classes
|
||||||
|
COPY hotswap-agent.properties $TOMCAT_DIR/webapps/share/WEB-INF/classes
|
@@ -1,3 +1,6 @@
|
|||||||
|
#set( $symbol_pound = '#' )
|
||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
#set( $symbol_escape = '\' )
|
||||||
# Enable hotswap so that changes in this module will be automatically reloaded
|
# Enable hotswap so that changes in this module will be automatically reloaded
|
||||||
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
||||||
autoHotswap=true
|
autoHotswap=true
|
||||||
@@ -11,7 +14,8 @@ autoHotswap=true
|
|||||||
# i.e. monitor /target/classes
|
# i.e. monitor /target/classes
|
||||||
# should work with extraClasspath=${project.build.outputDirectory}
|
# should work with extraClasspath=${project.build.outputDirectory}
|
||||||
# If not try
|
# If not try
|
||||||
extraClasspath=${project.basedir}/${artifactId}-platform-jar/target/classes;${project.basedir}/${artifactId}-platform-jar/target/test-classes;${project.basedir}/integration-tests/target/classes;${project.basedir}/integration-tests/target/test-classes
|
extraClasspath=/usr/local/tomcat/hotswap-agent
|
||||||
|
|
||||||
|
|
||||||
# Comma separated list of disabled plugins
|
# Comma separated list of disabled plugins
|
||||||
# Use plugin name - e.g.
|
# Use plugin name - e.g.
|
||||||
@@ -23,12 +27,12 @@ disabledPlugins=Hibernate,Spring
|
|||||||
#
|
#
|
||||||
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
||||||
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
||||||
extraWebappContext=${project.basedir}/${artifactId}-platform-jar/target/classes/META-INF/resources;
|
extraWebappContext=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-share-jar/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Load static web resources from different directory.
|
# Load static web resources from different directory.
|
||||||
#
|
#
|
||||||
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
||||||
webappDir=${project.basedir}/${artifactId}-platform-jar/target/classes/META-INF/resources;
|
webappDir=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-share-jar/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Watch for changes in a directory (resources only).
|
# Watch for changes in a directory (resources only).
|
||||||
#
|
#
|
@@ -1,7 +1,10 @@
|
|||||||
|
#set( $symbol_pound = '#' )
|
||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
#set( $symbol_escape = '\' )
|
||||||
# Set root logger level to error
|
# Set root logger level to error
|
||||||
log4j.rootLogger=error, Console, File
|
log4j.rootLogger=error, Console, File
|
||||||
|
|
||||||
###### Console appender definition #######
|
# Console appender definition #
|
||||||
|
|
||||||
# All outputs currently set to be a ConsoleAppender.
|
# All outputs currently set to be a ConsoleAppender.
|
||||||
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
||||||
@@ -11,7 +14,7 @@ log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
|||||||
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
|
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.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
||||||
|
|
||||||
###### File appender definition #######
|
# File appender definition #
|
||||||
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
||||||
log4j.appender.File.File=share.log
|
log4j.appender.File.File=share.log
|
||||||
log4j.appender.File.Append=true
|
log4j.appender.File.Append=true
|
@@ -57,7 +57,7 @@
|
|||||||
<name>Alfresco - unauthenticated access</name>
|
<name>Alfresco - unauthenticated access</name>
|
||||||
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
|
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
|
||||||
<connector-id>alfresco</connector-id>
|
<connector-id>alfresco</connector-id>
|
||||||
<endpoint-url>${alfresco.repo.url}/s</endpoint-url>
|
<endpoint-url>http://${acs.host}:8080/alfresco/s</endpoint-url>
|
||||||
<identity>none</identity>
|
<identity>none</identity>
|
||||||
</endpoint>
|
</endpoint>
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
<name>Alfresco - user access</name>
|
<name>Alfresco - user access</name>
|
||||||
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
|
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
|
||||||
<connector-id>alfresco</connector-id>
|
<connector-id>alfresco</connector-id>
|
||||||
<endpoint-url>${alfresco.repo.url}/s</endpoint-url>
|
<endpoint-url>http://${acs.host}:8080/alfresco/s</endpoint-url>
|
||||||
<identity>user</identity>
|
<identity>user</identity>
|
||||||
</endpoint>
|
</endpoint>
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
<name>Alfresco Feed</name>
|
<name>Alfresco Feed</name>
|
||||||
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
|
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
|
||||||
<connector-id>http</connector-id>
|
<connector-id>http</connector-id>
|
||||||
<endpoint-url>${alfresco.repo.url}/s</endpoint-url>
|
<endpoint-url>http://${acs.host}:8080/alfresco/s</endpoint-url>
|
||||||
<basic-auth>true</basic-auth>
|
<basic-auth>true</basic-auth>
|
||||||
<identity>user</identity>
|
<identity>user</identity>
|
||||||
</endpoint>
|
</endpoint>
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
<name>Activiti Admin UI - user access</name>
|
<name>Activiti Admin UI - user access</name>
|
||||||
<description>Access to Activiti Admin UI, that requires user authentication</description>
|
<description>Access to Activiti Admin UI, that requires user authentication</description>
|
||||||
<connector-id>activiti-admin-connector</connector-id>
|
<connector-id>activiti-admin-connector</connector-id>
|
||||||
<endpoint-url>${alfresco.repo.url}/activiti-admin</endpoint-url>
|
<endpoint-url>http://${acs.host}:8080/alfresco/activiti-admin</endpoint-url>
|
||||||
<identity>user</identity>
|
<identity>user</identity>
|
||||||
</endpoint>
|
</endpoint>
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<description>Access to Alfresco Repository Public API that require user authentication.
|
<description>Access to Alfresco Repository Public API that require user authentication.
|
||||||
This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description>
|
This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description>
|
||||||
<connector-id>alfresco</connector-id>
|
<connector-id>alfresco</connector-id>
|
||||||
<endpoint-url>${alfresco.repo.url}/api</endpoint-url>
|
<endpoint-url>http://${acs.host}:8080/alfresco/api</endpoint-url>
|
||||||
<identity>user</identity>
|
<identity>user</identity>
|
||||||
</endpoint>
|
</endpoint>
|
||||||
</remote>
|
</remote>
|
@@ -25,7 +25,7 @@
|
|||||||
<artifactId>share</artifactId>
|
<artifactId>share</artifactId>
|
||||||
<classifier>classes</classifier>
|
<classifier>classes</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- Add here any JAR or AMP dependency that needs to be deployed to share -->
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@@ -1,12 +0,0 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
:: Dev environment startup script for Alfresco Community ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@ECHO OFF
|
|
||||||
|
|
||||||
IF "%MAVEN_OPTS%" == "" (
|
|
||||||
ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you
|
|
||||||
SET MAVEN_OPTS=-Xms256m -Xmx2G
|
|
||||||
)
|
|
||||||
ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%'
|
|
||||||
|
|
||||||
mvnDebug clean install alfresco:run
|
|
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
if [[ -z ${MAVEN_OPTS} ]]; then
|
|
||||||
echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you";
|
|
||||||
MAVEN_OPTS="-Xms256m -Xmx2G"
|
|
||||||
fi
|
|
||||||
echo "MAVEN_OPTS is set to '$MAVEN_OPTS'";
|
|
||||||
mvnDebug clean install alfresco:run
|
|
@@ -0,0 +1,59 @@
|
|||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
version: '3.4'
|
||||||
|
services:
|
||||||
|
${rootArtifactId}-share:
|
||||||
|
image: alfresco-share-${rootArtifactId}:development
|
||||||
|
build:
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
context: ../../../${rootArtifactId}-share-docker/target
|
||||||
|
environment:
|
||||||
|
CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888"
|
||||||
|
REPO_HOST: ${rootArtifactId}-acs
|
||||||
|
REPO_PORT: 8080
|
||||||
|
ports:
|
||||||
|
- "${symbol_dollar}{share.port}:8080"
|
||||||
|
- "${symbol_dollar}{share.debug.port}:8888"
|
||||||
|
${rootArtifactId}-acs:
|
||||||
|
image: alfresco-content-services-${rootArtifactId}:development
|
||||||
|
build:
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
context: ../../../${rootArtifactId}-platform-docker/target
|
||||||
|
environment:
|
||||||
|
CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888"
|
||||||
|
ports:
|
||||||
|
- "${symbol_dollar}{acs.port}:8080"
|
||||||
|
- "${symbol_dollar}{acs.debug.port}:8888"
|
||||||
|
volumes:
|
||||||
|
- alf-acs-volume:/usr/local/tomcat/alf_data
|
||||||
|
depends_on:
|
||||||
|
- ${rootArtifactId}-postgres
|
||||||
|
${rootArtifactId}-postgres:
|
||||||
|
image: postgres:9.6
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: alfresco
|
||||||
|
POSTGRES_USER: alfresco
|
||||||
|
POSTGRES_PASSWORD: alfresco
|
||||||
|
ports:
|
||||||
|
- "${symbol_dollar}{postgres.port}:5432"
|
||||||
|
volumes:
|
||||||
|
- alf-db-volume:/var/lib/postgresql/data
|
||||||
|
${rootArtifactId}-ass:
|
||||||
|
image: alfresco/alfresco-search-services:1.2.0
|
||||||
|
environment:
|
||||||
|
SOLR_ALFRESCO_HOST: ${rootArtifactId}-acs
|
||||||
|
SOLR_ALFRESCO_PORT: 8080
|
||||||
|
SOLR_SOLR_HOST: ${rootArtifactId}-ass
|
||||||
|
SOLR_SOLR_PORT: 8983
|
||||||
|
SOLR_CREATE_ALFRESCO_DEFAULTS: alfresco,archive
|
||||||
|
ports:
|
||||||
|
- "8983:8983"
|
||||||
|
volumes:
|
||||||
|
- alf-ass-volume:/opt/alfresco-search-services/contentstore
|
||||||
|
- alf-ass-volume:/opt/alfresco-search-services/data
|
||||||
|
volumes:
|
||||||
|
alf-acs-volume:
|
||||||
|
external: true
|
||||||
|
alf-db-volume:
|
||||||
|
external: true
|
||||||
|
alf-ass-volume:
|
||||||
|
external: true
|
@@ -68,6 +68,11 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-failsafe-plugin</artifactId>
|
<artifactId>maven-failsafe-plugin</artifactId>
|
||||||
<version>2.19.1</version>
|
<version>2.19.1</version>
|
||||||
|
<configuration>
|
||||||
|
<systemPropertyVariables>
|
||||||
|
<acs.endpoint.path>${test.acs.endpoint.path}</acs.endpoint.path>
|
||||||
|
</systemPropertyVariables>
|
||||||
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>integration-test</id>
|
<id>integration-test</id>
|
||||||
@@ -92,22 +97,6 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</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>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -1,72 +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 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/alfresco
|
|
||||||
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,263 +0,0 @@
|
|||||||
# 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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -15,36 +15,33 @@
|
|||||||
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|
||||||
<!-- Alfresco Data directory, which will contain:
|
|
||||||
Content Store (i.e. the files we upload)
|
|
||||||
Database (i.e. the metadata for the uploaded files)
|
|
||||||
Search index (i.e. the indexed content and metadata)
|
|
||||||
Configured in alfresco-global.properties with the 'dir.root' property.
|
|
||||||
-->
|
|
||||||
<alfresco.data.location>${session.executionRootDirectory}/alf_data_dev</alfresco.data.location>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Properties used in dependency declarations, you don't need to change these -->
|
<!-- Properties used in dependency declarations, you don't need to change these -->
|
||||||
<alfresco.groupId>org.alfresco</alfresco.groupId>
|
<alfresco.groupId>org.alfresco</alfresco.groupId>
|
||||||
<alfresco.bomDependencyArtifactId>acs-community-packaging</alfresco.bomDependencyArtifactId>
|
<alfresco.bomDependencyArtifactId>@@alfresco.bomDependency.artifactId@@</alfresco.bomDependencyArtifactId>
|
||||||
|
<alfresco.platform.version>@@alfresco.platform.version@@</alfresco.platform.version>
|
||||||
<!-- Alfresco Platform and Share webapp versions, these are the original Alfresco webapps that will be
|
<alfresco.share.version>@@alfresco.share.version@@</alfresco.share.version>
|
||||||
customized and then deployed and run by the tomcat maven plugin when
|
|
||||||
executing for example $ mvn clean install alfresco:run -->
|
|
||||||
<alfresco.platform.version>6.0.7-ga</alfresco.platform.version>
|
|
||||||
<alfresco.share.version>6.0.c</alfresco.share.version>
|
|
||||||
|
|
||||||
|
<!-- Docker images -->
|
||||||
|
<docker.acs.image>@@alfresco.platform.docker.image@@</docker.acs.image>
|
||||||
|
<docker.share.image>@@alfresco.share.docker.image@@</docker.share.image>
|
||||||
|
|
||||||
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
|
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
|
||||||
<jrebel.version>1.1.6</jrebel.version>
|
<jrebel.version>1.1.6</jrebel.version>
|
||||||
|
|
||||||
<!-- Environment to use, Alfresco Maven Plugin will
|
<!-- Compile with Java 8, default is 5 -->
|
||||||
copy alfresco-global-*.properties files from this directory, such as src/test/properties/local -->
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<env>local</env>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
|
||||||
|
<!-- Environment configuration properties -->
|
||||||
|
<share.port>8180</share.port>
|
||||||
|
<share.debug.port>9898</share.debug.port>
|
||||||
|
<acs.host>${artifactId}-acs</acs.host>
|
||||||
|
<acs.port>8080</acs.port>
|
||||||
|
<acs.debug.port>8888</acs.debug.port>
|
||||||
|
<postgres.port>5555</postgres.port>
|
||||||
|
<!-- This parameter is only required for those cases in which ACS is not exposed in http://localhost:8080/alfresco (i.e. Windows Docker) -->
|
||||||
|
<test.acs.endpoint.path></test.acs.endpoint.path>
|
||||||
|
|
||||||
<!-- Compile with Java 7, default is 5 -->
|
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!-- Libs used in Unit and Integration tests -->
|
<!-- Libs used in Unit and Integration tests -->
|
||||||
@@ -74,6 +71,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
<artifactId>alfresco-remote-api</artifactId>
|
<artifactId>alfresco-remote-api</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Bring in Alfresco RAD so we get access to AlfrescoTestRunner classes -->
|
<!-- Bring in Alfresco RAD so we get access to AlfrescoTestRunner classes -->
|
||||||
@@ -223,85 +221,24 @@
|
|||||||
<!-- Run only for the AIO parent Project -->
|
<!-- Run only for the AIO parent Project -->
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>copy-and-filter-test-resources</id>
|
<id>copy-and-filter-docker-resources</id>
|
||||||
<phase>validate</phase>
|
<phase>validate</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>copy-resources</goal>
|
<goal>copy-resources</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
|
<outputDirectory>${project.build.outputDirectory}/docker</outputDirectory>
|
||||||
<resources>
|
<resources>
|
||||||
<testResource>
|
<resource>
|
||||||
<directory>src/test/resources</directory>
|
<directory>docker</directory>
|
||||||
<filtering>true</filtering>
|
<filtering>true</filtering>
|
||||||
</testResource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!--
|
|
||||||
The Alfresco Maven Plugin contains all the logic to run the extension
|
|
||||||
in an embedded Tomcat with the H2 database.
|
|
||||||
-->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
|
||||||
<artifactId>alfresco-maven-plugin</artifactId>
|
|
||||||
<version>${alfresco.sdk.version}</version>
|
|
||||||
<configuration>
|
|
||||||
|
|
||||||
<!-- We always need the Platform/Repo webapp - alfresco.war -->
|
|
||||||
<enablePlatform>true</enablePlatform>
|
|
||||||
<!-- We need Share webapp, so we got a UI for working with the Repo -->
|
|
||||||
<enableShare>true</enableShare>
|
|
||||||
<!-- Enable the REST API Explorer -->
|
|
||||||
<enableApiExplorer>true</enableApiExplorer>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
JARs and AMPs that should be overlayed/applied to the Platform/Repository WAR
|
|
||||||
(i.e. alfresco.war)
|
|
||||||
-->
|
|
||||||
<platformModules>
|
|
||||||
<!-- Share Services will be ignored if you are on Platform earlier than 5.1 -->
|
|
||||||
<moduleDependency>
|
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
|
||||||
<artifactId>alfresco-share-services</artifactId>
|
|
||||||
<version>${alfresco.share.version}</version>
|
|
||||||
<type>amp</type>
|
|
||||||
</moduleDependency>
|
|
||||||
|
|
||||||
<!-- Bring in custom Modules -->
|
|
||||||
<moduleDependency>
|
|
||||||
<groupId>${project.groupId}</groupId>
|
|
||||||
<artifactId>${artifactId}-platform-jar</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</moduleDependency>
|
|
||||||
|
|
||||||
<!-- Bring in the integration tests -->
|
|
||||||
<moduleDependency>
|
|
||||||
<groupId>${project.groupId}</groupId>
|
|
||||||
<artifactId>integration-tests</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<classifier>tests</classifier>
|
|
||||||
</moduleDependency>
|
|
||||||
|
|
||||||
</platformModules>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
JARs and AMPs that should be overlayed/applied to the Share WAR (i.e. share.war)
|
|
||||||
-->
|
|
||||||
<shareModules>
|
|
||||||
<!-- Bring in custom Modules -->
|
|
||||||
<moduleDependency>
|
|
||||||
<groupId>${project.groupId}</groupId>
|
|
||||||
<artifactId>${artifactId}-share-jar</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</moduleDependency>
|
|
||||||
</shareModules>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- Hot reloading with JRebel -->
|
<!-- Hot reloading with JRebel -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.zeroturnaround</groupId>
|
<groupId>org.zeroturnaround</groupId>
|
||||||
@@ -362,6 +299,7 @@
|
|||||||
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
|
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>alfresco-plugin-public</id>
|
<id>alfresco-plugin-public</id>
|
||||||
|
@@ -1,12 +1,106 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
#set( $symbol_dollar = '$' )
|
||||||
:: Dev environment startup script for Alfresco Community ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
|
|
||||||
IF "%MAVEN_OPTS%" == "" (
|
SET COMPOSE_FILE_PATH=%CD%\target\classes\docker\docker-compose.yml
|
||||||
ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you
|
|
||||||
SET MAVEN_OPTS=-Xms256m -Xmx2G
|
|
||||||
)
|
|
||||||
ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%'
|
|
||||||
|
|
||||||
mvn clean install alfresco:run
|
IF [%1]==[] (
|
||||||
|
echo "Usage: %0 {build_start|start|stop|purge|tail|reload_share|reload_acs|build_test|test}"
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
|
||||||
|
IF %1==build_start (
|
||||||
|
CALL :down
|
||||||
|
CALL :build
|
||||||
|
CALL :start
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==start (
|
||||||
|
CALL :start
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==stop (
|
||||||
|
CALL :down
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==purge (
|
||||||
|
CALL:down
|
||||||
|
CALL:purge
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==tail (
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==reload_share (
|
||||||
|
CALL :build_share
|
||||||
|
CALL :start_share
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==reload_acs (
|
||||||
|
CALL :build_acs
|
||||||
|
CALL :start_acs
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==build_test (
|
||||||
|
CALL :down
|
||||||
|
CALL :build
|
||||||
|
CALL :start
|
||||||
|
CALL :test
|
||||||
|
CALL :down
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==test (
|
||||||
|
CALL :test
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
echo "Usage: %0 {build_start|start|stop|purge|tail|reload_share|reload_acs|build_test|test}"
|
||||||
|
:END
|
||||||
|
EXIT /B %ERRORLEVEL%
|
||||||
|
|
||||||
|
:start
|
||||||
|
docker volume create alf-acs-volume
|
||||||
|
docker volume create alf-db-volume
|
||||||
|
docker volume create alf-ass-volume
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d
|
||||||
|
EXIT /B 0
|
||||||
|
:start_share
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d ${rootArtifactId}-share
|
||||||
|
EXIT /B 0
|
||||||
|
:start_acs
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d ${rootArtifactId}-acs
|
||||||
|
EXIT /B 0
|
||||||
|
:down
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" down
|
||||||
|
EXIT /B 0
|
||||||
|
:build
|
||||||
|
docker rmi alfresco-content-services-${rootArtifactId}:development
|
||||||
|
docker rmi alfresco-share-${rootArtifactId}:development
|
||||||
|
call mvn clean install -DskipTests
|
||||||
|
EXIT /B 0
|
||||||
|
:build_share
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-share
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-share
|
||||||
|
docker rmi alfresco-share-${rootArtifactId}:development
|
||||||
|
call mvn clean install -DskipTests -pl ${rootArtifactId}-share-jar
|
||||||
|
EXIT /B 0
|
||||||
|
:build_acs
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-acs
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-acs
|
||||||
|
docker rmi alfresco-content-services-${rootArtifactId}:development
|
||||||
|
call mvn clean install -DskipTests -pl ${rootArtifactId}-platform-jar
|
||||||
|
EXIT /B 0
|
||||||
|
:tail
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" logs -f
|
||||||
|
EXIT /B 0
|
||||||
|
:test
|
||||||
|
call mvn verify -pl integration-tests
|
||||||
|
EXIT /B 0
|
||||||
|
:purge
|
||||||
|
docker volume rm alf-acs-volume
|
||||||
|
docker volume rm alf-db-volume
|
||||||
|
docker volume rm alf-ass-volume
|
||||||
|
EXIT /B 0
|
@@ -1,7 +1,102 @@
|
|||||||
#!/bin/bash
|
#set( $symbol_dollar = '$' )
|
||||||
if [[ -z ${MAVEN_OPTS} ]]; then
|
#!/bin/sh
|
||||||
echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you";
|
|
||||||
MAVEN_OPTS="-Xms256m -Xmx2G"
|
export COMPOSE_FILE_PATH=${symbol_dollar}{PWD}/target/classes/docker/docker-compose.yml
|
||||||
fi
|
|
||||||
echo "MAVEN_OPTS is set to '$MAVEN_OPTS'";
|
start() {
|
||||||
mvn clean install alfresco:run
|
docker volume create alf-acs-volume
|
||||||
|
docker volume create alf-db-volume
|
||||||
|
docker volume create alf-ass-volume
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH up --build -d
|
||||||
|
}
|
||||||
|
|
||||||
|
start_share() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH up --build -d ${rootArtifactId}-share
|
||||||
|
}
|
||||||
|
|
||||||
|
start_acs() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH up --build -d ${rootArtifactId}-acs
|
||||||
|
}
|
||||||
|
|
||||||
|
down() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH down
|
||||||
|
}
|
||||||
|
|
||||||
|
purge() {
|
||||||
|
docker volume rm alf-acs-volume
|
||||||
|
docker volume rm alf-db-volume
|
||||||
|
docker volume rm alf-ass-volume
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
docker rmi alfresco-content-services-${rootArtifactId}:development
|
||||||
|
docker rmi alfresco-share-${rootArtifactId}:development
|
||||||
|
mvn clean install -DskipTests=true
|
||||||
|
}
|
||||||
|
|
||||||
|
build_share() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH kill ${rootArtifactId}-share
|
||||||
|
yes | docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH rm -f ${rootArtifactId}-share
|
||||||
|
docker rmi alfresco-share-${rootArtifactId}:development
|
||||||
|
mvn clean install -DskipTests=true -pl ${rootArtifactId}-share-jar
|
||||||
|
}
|
||||||
|
|
||||||
|
build_acs() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH kill ${rootArtifactId}-acs
|
||||||
|
yes | docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH rm -f ${rootArtifactId}-acs
|
||||||
|
docker rmi alfresco-content-services-${rootArtifactId}:development
|
||||||
|
mvn clean install -DskipTests=true -pl ${rootArtifactId}-platform-jar
|
||||||
|
}
|
||||||
|
|
||||||
|
tail() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH logs -f
|
||||||
|
}
|
||||||
|
|
||||||
|
test() {
|
||||||
|
mvn verify -pl integration-tests
|
||||||
|
}
|
||||||
|
|
||||||
|
case "${symbol_dollar}1" in
|
||||||
|
build_start)
|
||||||
|
down
|
||||||
|
build
|
||||||
|
start
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
start)
|
||||||
|
start
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
down
|
||||||
|
;;
|
||||||
|
purge)
|
||||||
|
down
|
||||||
|
purge
|
||||||
|
;;
|
||||||
|
tail)
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
reload_share)
|
||||||
|
build_share
|
||||||
|
start_share
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
reload_acs)
|
||||||
|
build_acs
|
||||||
|
start_acs
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
build_test)
|
||||||
|
down
|
||||||
|
build
|
||||||
|
start
|
||||||
|
test
|
||||||
|
down
|
||||||
|
;;
|
||||||
|
test)
|
||||||
|
test
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: ${symbol_dollar}0 {build_start|start|stop|purge|tail|reload_share|reload_acs|build_test|test}"
|
||||||
|
esac
|
@@ -1,10 +0,0 @@
|
|||||||
# Enterprise License location
|
|
||||||
|
|
||||||
Put the Alfresco Enterprise license file in this directory.
|
|
||||||
It will then be copied into the Platform WAR in the
|
|
||||||
WEB-INF/classes/alfresco/extension/license directory.
|
|
||||||
|
|
||||||
And then not be part of any other classpaths.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,54 +0,0 @@
|
|||||||
# 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...
|
|
||||||
#-----------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -24,8 +24,6 @@
|
|||||||
<include>archetype-resources/pom.xml</include>
|
<include>archetype-resources/pom.xml</include>
|
||||||
<include>archetype-resources/run.sh</include>
|
<include>archetype-resources/run.sh</include>
|
||||||
<include>archetype-resources/run.bat</include>
|
<include>archetype-resources/run.bat</include>
|
||||||
<include>archetype-resources/debug.sh</include>
|
|
||||||
<include>archetype-resources/debug.bat</include>
|
|
||||||
<include>META-INF/maven/archetype-metadata.xml</include>
|
<include>META-INF/maven/archetype-metadata.xml</include>
|
||||||
</includes>
|
</includes>
|
||||||
<filtering>true</filtering>
|
<filtering>true</filtering>
|
||||||
@@ -36,8 +34,6 @@
|
|||||||
<exclude>archetype-resources/pom.xml</exclude>
|
<exclude>archetype-resources/pom.xml</exclude>
|
||||||
<exclude>archetype-resources/run.sh</exclude>
|
<exclude>archetype-resources/run.sh</exclude>
|
||||||
<exclude>archetype-resources/run.bat</exclude>
|
<exclude>archetype-resources/run.bat</exclude>
|
||||||
<exclude>archetype-resources/debug.sh</exclude>
|
|
||||||
<exclude>archetype-resources/debug.bat</exclude>
|
|
||||||
<exclude>META-INF/maven/archetype-metadata.xml</exclude>
|
<exclude>META-INF/maven/archetype-metadata.xml</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
<filtering>false</filtering>
|
<filtering>false</filtering>
|
||||||
|
@@ -11,12 +11,46 @@
|
|||||||
</requiredProperties>
|
</requiredProperties>
|
||||||
|
|
||||||
<fileSets>
|
<fileSets>
|
||||||
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
|
<directory>docker</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
||||||
<directory>src/main/assembly</directory>
|
<directory>src/main/assembly</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**</include>
|
<include>**</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="false">
|
||||||
|
<directory>src/main/docker/license</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="false">
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<includes>
|
||||||
|
<include>license/**</include>
|
||||||
|
<include>Dockerfile</include>
|
||||||
|
<include>disable-webscript-caching-context.xml</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*.properties</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.properties</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>license/**</exclude>
|
||||||
|
<exclude>Dockerfile</exclude>
|
||||||
|
<exclude>disable-webscript-caching-context.xml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||||
<directory>src/main/java</directory>
|
<directory>src/main/java</directory>
|
||||||
<includes>
|
<includes>
|
||||||
@@ -45,37 +79,8 @@
|
|||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet encoding="UTF-8" filtered="true">
|
<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>
|
|
||||||
<fileSet encoding="UTF-8" filtered="false">
|
|
||||||
<directory>src/test/license</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
<fileSet encoding="UTF-8">
|
|
||||||
<directory></directory>
|
<directory></directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>debug.sh</include>
|
|
||||||
<include>debug.bat</include>
|
|
||||||
<include>run.sh</include>
|
<include>run.sh</include>
|
||||||
<include>run.bat</include>
|
<include>run.bat</include>
|
||||||
<include>README.md</include>
|
<include>README.md</include>
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
:: Dev environment startup script for Alfresco Community ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@echo off
|
|
||||||
|
|
||||||
set MAVEN_OPTS=-Xms256m -Xmx2G
|
|
||||||
|
|
||||||
mvnDebug clean install alfresco:run
|
|
||||||
|
|
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
MAVEN_OPTS="-Xms256m -Xmx2G" mvnDebug clean install alfresco:run
|
|
@@ -0,0 +1,55 @@
|
|||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
version: '3.4'
|
||||||
|
services:
|
||||||
|
# Optional
|
||||||
|
# ${rootArtifactId}-share:
|
||||||
|
# image: ${symbol_dollar}{docker.share.image}:${symbol_dollar}{alfresco.share.version}
|
||||||
|
# environment:
|
||||||
|
# REPO_HOST: ${rootArtifactId}-acs
|
||||||
|
# REPO_PORT: 8080
|
||||||
|
# ports:
|
||||||
|
# - "${symbol_dollar}{share.port}:8080"
|
||||||
|
${rootArtifactId}-acs:
|
||||||
|
image: alfresco-content-services-${rootArtifactId}:development
|
||||||
|
build:
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
context: ../../../target
|
||||||
|
environment:
|
||||||
|
CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888"
|
||||||
|
ports:
|
||||||
|
- "${symbol_dollar}{acs.port}:8080"
|
||||||
|
- "${symbol_dollar}{acs.debug.port}:8888"
|
||||||
|
volumes:
|
||||||
|
- alf-acs-volume:/usr/local/tomcat/alf_data
|
||||||
|
depends_on:
|
||||||
|
- ${rootArtifactId}-postgres
|
||||||
|
${rootArtifactId}-postgres:
|
||||||
|
image: postgres:9.6
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: alfresco
|
||||||
|
POSTGRES_USER: alfresco
|
||||||
|
POSTGRES_PASSWORD: alfresco
|
||||||
|
ports:
|
||||||
|
- "${symbol_dollar}{postgres.port}:5432"
|
||||||
|
volumes:
|
||||||
|
- alf-db-volume:/var/lib/postgresql/data
|
||||||
|
${rootArtifactId}-ass:
|
||||||
|
image: alfresco/alfresco-search-services:1.2.0
|
||||||
|
environment:
|
||||||
|
SOLR_ALFRESCO_HOST: ${rootArtifactId}-acs
|
||||||
|
SOLR_ALFRESCO_PORT: 8080
|
||||||
|
SOLR_SOLR_HOST: ${rootArtifactId}-ass
|
||||||
|
SOLR_SOLR_PORT: 8983
|
||||||
|
SOLR_CREATE_ALFRESCO_DEFAULTS: alfresco,archive
|
||||||
|
ports:
|
||||||
|
- "8983:8983"
|
||||||
|
volumes:
|
||||||
|
- alf-ass-volume:/opt/alfresco-search-services/contentstore
|
||||||
|
- alf-ass-volume:/opt/alfresco-search-services/data
|
||||||
|
volumes:
|
||||||
|
alf-acs-volume:
|
||||||
|
external: true
|
||||||
|
alf-db-volume:
|
||||||
|
external: true
|
||||||
|
alf-ass-volume:
|
||||||
|
external: true
|
@@ -5,8 +5,8 @@
|
|||||||
<groupId>${groupId}</groupId>
|
<groupId>${groupId}</groupId>
|
||||||
<artifactId>${artifactId}</artifactId>
|
<artifactId>${artifactId}</artifactId>
|
||||||
<version>${version}</version>
|
<version>${version}</version>
|
||||||
<name>${artifactId} Platform Jar Module - SDK 4.0</name>
|
<name>${artifactId} Platform/Repository JAR Module</name>
|
||||||
<description>Platform JAR Module (to be included in the alfresco.war) - SDK 4.0</description>
|
<description>Platform/Repo JAR Module (to be included in the alfresco.war)</description>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@@ -15,49 +15,81 @@
|
|||||||
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|
||||||
<!-- Alfresco Data directory, which will contain:
|
|
||||||
Content Store (i.e. the files we upload)
|
|
||||||
Database (i.e. the metadata for the uploaded files)
|
|
||||||
Search index (i.e. the indexed content and metadata)
|
|
||||||
Configured in alfresco-global.properties with the 'dir.root' property.
|
|
||||||
-->
|
|
||||||
<alfresco.data.location>${session.executionRootDirectory}/alf_data_dev</alfresco.data.location>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Properties used in dependency declarations, you don't need to change these -->
|
<!-- Properties used in dependency declarations, you don't need to change these -->
|
||||||
<alfresco.groupId>org.alfresco</alfresco.groupId>
|
<alfresco.groupId>org.alfresco</alfresco.groupId>
|
||||||
|
<alfresco.bomDependencyArtifactId>@@alfresco.bomDependency.artifactId@@</alfresco.bomDependencyArtifactId>
|
||||||
|
<alfresco.platform.version>@@alfresco.platform.version@@</alfresco.platform.version>
|
||||||
|
<alfresco.share.version>@@alfresco.share.version@@</alfresco.share.version>
|
||||||
|
|
||||||
<alfresco.bomDependencyArtifactId>acs-community-packaging</alfresco.bomDependencyArtifactId>
|
<!-- Docker images -->
|
||||||
|
<docker.acs.image>@@alfresco.platform.docker.image@@</docker.acs.image>
|
||||||
<!-- Alfresco Platform webapp version, this is the original Alfresco webapp that will be
|
<docker.share.image>@@alfresco.share.docker.image@@</docker.share.image>
|
||||||
customized and then deployed and run by the tomcat maven plugin when
|
|
||||||
executing for example $ mvn clean install alfresco:run -->
|
|
||||||
<alfresco.platform.version>6.0.7-ga</alfresco.platform.version>
|
|
||||||
<!-- Alfresco Share version, so we can bring in correct alfresco-share-services artifact -->
|
|
||||||
<alfresco.share.version>6.0.c</alfresco.share.version>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
|
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
|
||||||
<jrebel.version>1.1.6</jrebel.version>
|
<jrebel.version>1.1.6</jrebel.version>
|
||||||
|
|
||||||
<!-- Environment to use, Alfresco Maven Plugin will
|
<!-- Compile with Java 8, default is 5 -->
|
||||||
copy alfresco-global-*.properties files from this directory, such as src/test/properties/local -->
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<env>local</env>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
|
||||||
|
<!-- Environment configuration properties -->
|
||||||
|
<share.port>8180</share.port>
|
||||||
|
<acs.host>${artifactId}-acs</acs.host>
|
||||||
|
<acs.port>8080</acs.port>
|
||||||
|
<acs.debug.port>8888</acs.debug.port>
|
||||||
|
<postgres.port>5555</postgres.port>
|
||||||
|
<!-- This parameter is only required for those cases in which ACS is not exposed in http://localhost:8080/alfresco (i.e. Windows Docker) -->
|
||||||
|
<test.acs.endpoint.path></test.acs.endpoint.path>
|
||||||
|
|
||||||
<!-- Compile with Java 7, default is 5 -->
|
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!-- This will import the dependencyManagement for all artifacts in the selected Alfresco platform.
|
<!-- Libs used in Unit and Integration tests -->
|
||||||
NOTE: You still need to define dependencies in your POM,
|
<!-- IMPORTANT - Test dependencies need to be here in the top parent POM as
|
||||||
but you can omit version as it's enforced by this dependencyManagement.
|
the Alfresco Maven IT Mojo runs as part of the parent project ... -->
|
||||||
NOTE: It defaults to the latest version this SDK pom has been tested with,
|
<dependencies>
|
||||||
but alfresco version can/should be overridden in your project's pom
|
<dependency>
|
||||||
-->
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.12</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mockito</groupId>
|
||||||
|
<artifactId>mockito-all</artifactId>
|
||||||
|
<version>1.9.5</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
|
<artifactId>httpclient</artifactId>
|
||||||
|
<version>4.5.2</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- The main Alfresco Repo dependency for compiling Java code in src/main/java -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
|
<artifactId>alfresco-remote-api</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Bring in Alfresco RAD so we get access to AlfrescoTestRunner classes -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.alfresco.maven</groupId>
|
||||||
|
<artifactId>alfresco-rad</artifactId>
|
||||||
|
<version>${alfresco.sdk.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<!-- This will import the dependencyManagement for all artifacts in the selected Alfresco platform.
|
||||||
|
NOTE: You still need to define dependencies in your POM, but you can omit version as
|
||||||
|
it's enforced by this dependencyManagement.
|
||||||
|
NOTE: It defaults to the latest version this SDK pom has been tested with,
|
||||||
|
but alfresco version can/should be overridden in your project's pom
|
||||||
|
-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
<artifactId>${alfresco.bomDependencyArtifactId}</artifactId>
|
<artifactId>${alfresco.bomDependencyArtifactId}</artifactId>
|
||||||
@@ -68,100 +100,218 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<!-- The main Alfresco Repo dependency for compiling Java code in src/main/java -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
|
||||||
<artifactId>alfresco-remote-api</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Bring in Alfresco RAD so we get access to AlfrescoTestRunner classes -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.alfresco.maven</groupId>
|
|
||||||
<artifactId>alfresco-rad</artifactId>
|
|
||||||
<version>${alfresco.sdk.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Bring in Spring Context so we can use ApplicationContext, ApplicationContextAware etc -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework</groupId>
|
|
||||||
<artifactId>spring-context</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Integration tests need httpcomponents to execute tests -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.httpcomponents</groupId>
|
|
||||||
<artifactId>httpclient</artifactId>
|
|
||||||
<version>4.5.2</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!--
|
<!-- Filter the test resource files in the AIO parent project, and do property substitutions.
|
||||||
The Alfresco Maven Plugin contains all the logic to run the extension
|
We need this config so this is done before the Alfresco Maven Plugin 'run' is executed. -->
|
||||||
in an embedded Tomcat with the H2 database.
|
|
||||||
-->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>alfresco-maven-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<version>${alfresco.sdk.version}</version>
|
<version>3.0.1</version>
|
||||||
|
<configuration>
|
||||||
|
<encoding>UTF-8</encoding>
|
||||||
|
<nonFilteredFileExtensions> <!-- jpg, jpeg, gif, bmp and png are added automatically -->
|
||||||
|
<nonFilteredFileExtension>ftl</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>acp</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>svg</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>pdf</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>doc</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>docx</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>xls</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>ppt</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>pptx</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>bin</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>lic</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>swf</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>zip</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>msg</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>jar</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>eot</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>woff2</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>css</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>ico</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>psd</nonFilteredFileExtension>
|
||||||
|
<nonFilteredFileExtension>js</nonFilteredFileExtension>
|
||||||
|
</nonFilteredFileExtensions>
|
||||||
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>start-alfresco</id>
|
<id>copy-and-filter-docker-compose-resources</id>
|
||||||
|
<phase>validate</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>it</goal>
|
<goal>copy-resources</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<phase>pre-integration-test</phase>
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.outputDirectory}/docker</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>docker</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>copy-and-filter-docker-resources</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*.jar</exclude>
|
||||||
|
<exclude>**/*.so</exclude>
|
||||||
|
</excludes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>copy-and-filter-docker-resources-non-filtered</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<filtering>false</filtering>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.jar</include>
|
||||||
|
<include>**/*.so</include>
|
||||||
|
</includes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.0.2</version>
|
||||||
|
<executions>
|
||||||
|
<!-- Copy the repository extension and the dependencies required for execute integration tests -->
|
||||||
|
<execution>
|
||||||
|
<id>copy-repo-extension</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifactItems>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${artifactId}</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<!-- Test dependencies -->
|
||||||
|
<!-- We need these dependencies installed in ACS in order to execute the test remotely making use of the Alfresco RAD module -->
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.alfresco.maven</groupId>
|
||||||
|
<artifactId>alfresco-rad</artifactId>
|
||||||
|
<version>${alfresco.sdk.version}</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.12</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.mockito</groupId>
|
||||||
|
<artifactId>mockito-all</artifactId>
|
||||||
|
<version>1.9.5</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
|
<artifactId>httpclient</artifactId>
|
||||||
|
<version>4.5.2</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
</artifactItems>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<!-- Copy other dependencies (JARs or AMPs) declared in the platform module -->
|
||||||
|
<execution>
|
||||||
|
<id>copy-third-party-dependencies</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
<includeScope>runtime</includeScope>
|
||||||
|
</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>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- This is a platform extension JAR, so we need the platform webapp (alfresco.war) -->
|
<systemPropertyVariables>
|
||||||
<enablePlatform>true</enablePlatform>
|
<acs.endpoint.path>${test.acs.endpoint.path}</acs.endpoint.path>
|
||||||
<!-- We don't need the share.war if we don't have any UI extensions -->
|
</systemPropertyVariables>
|
||||||
<enableShare>false</enableShare>
|
|
||||||
<!-- Enable the REST API Explorer -->
|
|
||||||
<enableApiExplorer>true</enableApiExplorer>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
JARs and AMPs that should be overlayed/applied to the Platform/Repository WAR
|
|
||||||
(i.e. alfresco.war)
|
|
||||||
-->
|
|
||||||
<platformModules>
|
|
||||||
<!-- This AMP is needed if we are going to access the platform webapp from a Share webapp -->
|
|
||||||
<!-- Share Services will be ignored if you are on Platform earlier than 5.1 -->
|
|
||||||
<moduleDependency>
|
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
|
||||||
<artifactId>alfresco-share-services</artifactId>
|
|
||||||
<version>${alfresco.share.version}</version>
|
|
||||||
<type>amp</type>
|
|
||||||
</moduleDependency>
|
|
||||||
|
|
||||||
<!-- Bring in this JAR project, need to be included here, otherwise resources from META-INF
|
|
||||||
will not be loaded, such as the test.html page
|
|
||||||
-->
|
|
||||||
<moduleDependency>
|
|
||||||
<groupId>${project.groupId}</groupId>
|
|
||||||
<artifactId>${project.artifactId}</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</moduleDependency>
|
|
||||||
</platformModules>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<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>
|
</plugin>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Build an AMP if 3rd party libs are needed by the extensions
|
Build an AMP if 3rd party libs are needed by the extensions
|
||||||
JARs are the default artifact produced in your modules, if you want to build an amp for each module
|
JARs are the default artifact produced in your modules, if you want to build an amp for each module
|
||||||
you have to enable this plugin and inspect the src/main/assembly.xml file if you want to customize
|
you have to enable this plugin and inspect the src/main/assembly.xml file if you want to customize
|
||||||
the layout of your AMP. The end result is that Maven will produce both a JAR file and an AMP with your
|
the layout of your AMP. The end result is that Maven will produce both a JAR file and an AMP with your
|
||||||
module.
|
module.
|
||||||
-->
|
-->
|
||||||
<!--
|
<!--
|
||||||
<plugin>
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<version>2.6</version>
|
<version>2.6</version>
|
||||||
<executions>
|
<executions>
|
||||||
@@ -208,10 +358,8 @@
|
|||||||
<fallback>all</fallback>
|
<fallback>all</fallback>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<!--
|
<directory>${project.build.outputDirectory}</directory>
|
||||||
Empty resource element marks default configuration. By
|
<directory>${project.build.testOutputDirectory}</directory>
|
||||||
default it is placed first in generated configuration.
|
|
||||||
-->
|
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
</classpath>
|
</classpath>
|
||||||
@@ -224,73 +372,6 @@
|
|||||||
<alwaysGenerate>true</alwaysGenerate>
|
<alwaysGenerate>true</alwaysGenerate>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
|
||||||
<version>3.0.1</version>
|
|
||||||
<configuration>
|
|
||||||
<encoding>UTF-8</encoding>
|
|
||||||
<nonFilteredFileExtensions> <!-- jpg, jpeg, gif, bmp and png are added automatically -->
|
|
||||||
<nonFilteredFileExtension>ftl</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>acp</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>svg</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>pdf</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>doc</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>docx</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>xls</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>ppt</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>pptx</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>bin</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>lic</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>swf</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>zip</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>msg</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>jar</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>eot</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>woff2</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>css</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>ico</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>psd</nonFilteredFileExtension>
|
|
||||||
<nonFilteredFileExtension>js</nonFilteredFileExtension>
|
|
||||||
</nonFilteredFileExtensions>
|
|
||||||
</configuration>
|
|
||||||
</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>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
@@ -307,10 +388,6 @@
|
|||||||
<filtering>true</filtering>
|
<filtering>true</filtering>
|
||||||
</testResource>
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -335,6 +412,7 @@
|
|||||||
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
|
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>alfresco-plugin-public</id>
|
<id>alfresco-plugin-public</id>
|
||||||
@@ -349,5 +427,4 @@
|
|||||||
</snapshots>
|
</snapshots>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
|
||||||
</project>
|
</project>
|
@@ -1,8 +1,75 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
#set( $symbol_dollar = '$' )
|
||||||
:: Dev environment startup script for Alfresco Community ::
|
@ECHO OFF
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@echo off
|
|
||||||
|
|
||||||
set MAVEN_OPTS=-Xms256m -Xmx2G
|
SET COMPOSE_FILE_PATH=%CD%\target\classes\docker\docker-compose.yml
|
||||||
|
|
||||||
mvn clean install alfresco:run
|
IF [%1]==[] (
|
||||||
|
echo "Usage: %0 {build_start|start|stop|purge|tail|build_test|test}"
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
|
||||||
|
IF %1==build_start (
|
||||||
|
CALL :down
|
||||||
|
CALL :build
|
||||||
|
CALL :start
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==start (
|
||||||
|
CALL :start
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==stop (
|
||||||
|
CALL :down
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==purge (
|
||||||
|
CALL:down
|
||||||
|
CALL:purge
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==tail (
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==build_test (
|
||||||
|
CALL :down
|
||||||
|
CALL :build
|
||||||
|
CALL :start
|
||||||
|
CALL :test
|
||||||
|
CALL :down
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==test (
|
||||||
|
CALL :test
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
echo "Usage: %0 {build_start|start|stop|purge|tail|build_test|test}"
|
||||||
|
:END
|
||||||
|
EXIT /B %ERRORLEVEL%
|
||||||
|
|
||||||
|
:start
|
||||||
|
docker volume create alf-acs-volume
|
||||||
|
docker volume create alf-db-volume
|
||||||
|
docker volume create alf-ass-volume
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d
|
||||||
|
EXIT /B 0
|
||||||
|
:down
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" down
|
||||||
|
EXIT /B 0
|
||||||
|
:build
|
||||||
|
docker rmi alfresco-content-services-${rootArtifactId}:development
|
||||||
|
call mvn clean install -DskipTests
|
||||||
|
EXIT /B 0
|
||||||
|
:tail
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" logs -f
|
||||||
|
EXIT /B 0
|
||||||
|
:test
|
||||||
|
call mvn verify
|
||||||
|
EXIT /B 0
|
||||||
|
:purge
|
||||||
|
docker volume rm alf-acs-volume
|
||||||
|
docker volume rm alf-db-volume
|
||||||
|
docker volume rm alf-ass-volume
|
||||||
|
EXIT /B 0
|
@@ -1,3 +1,69 @@
|
|||||||
#!/bin/bash
|
#set( $symbol_dollar = '$' )
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
MAVEN_OPTS="-Xms256m -Xmx2G" mvn clean install alfresco:run
|
export COMPOSE_FILE_PATH=${symbol_dollar}{PWD}/target/classes/docker/docker-compose.yml
|
||||||
|
|
||||||
|
start() {
|
||||||
|
docker volume create alf-acs-volume
|
||||||
|
docker volume create alf-db-volume
|
||||||
|
docker volume create alf-ass-volume
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH up --build -d
|
||||||
|
}
|
||||||
|
|
||||||
|
down() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH down
|
||||||
|
}
|
||||||
|
|
||||||
|
purge() {
|
||||||
|
docker volume rm alf-acs-volume
|
||||||
|
docker volume rm alf-db-volume
|
||||||
|
docker volume rm alf-ass-volume
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
docker rmi alfresco-content-services-${rootArtifactId}:development
|
||||||
|
mvn clean install -DskipTests=true
|
||||||
|
}
|
||||||
|
|
||||||
|
tail() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH logs -f
|
||||||
|
}
|
||||||
|
|
||||||
|
test() {
|
||||||
|
mvn verify
|
||||||
|
}
|
||||||
|
|
||||||
|
case "${symbol_dollar}1" in
|
||||||
|
build_start)
|
||||||
|
down
|
||||||
|
build
|
||||||
|
start
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
start)
|
||||||
|
start
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
down
|
||||||
|
;;
|
||||||
|
purge)
|
||||||
|
down
|
||||||
|
purge
|
||||||
|
;;
|
||||||
|
tail)
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
build_test)
|
||||||
|
down
|
||||||
|
build
|
||||||
|
start
|
||||||
|
test
|
||||||
|
down
|
||||||
|
;;
|
||||||
|
test)
|
||||||
|
test
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: ${symbol_dollar}0 {build_start|start|stop|purge|tail|build_test|test}"
|
||||||
|
esac
|
@@ -1,7 +1,7 @@
|
|||||||
<assembly
|
<assembly
|
||||||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
|
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Note that the Module dependency specified in the configuration section for the Alfresco Maven Plugin
|
Note that the Module dependency specified in the configuration section for the Alfresco Maven Plugin
|
||||||
|
@@ -0,0 +1,18 @@
|
|||||||
|
FROM ${docker.acs.image}:${alfresco.platform.version}
|
||||||
|
|
||||||
|
ARG TOMCAT_DIR=/usr/local/tomcat
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no JARs exist
|
||||||
|
COPY Dockerfile extensions/*.jar $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib/
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no AMPs exist
|
||||||
|
COPY Dockerfile extensions/*.amp $TOMCAT_DIR/amps/
|
||||||
|
RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
|
||||||
|
$TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force
|
||||||
|
|
||||||
|
COPY alfresco-global.properties $TOMCAT_DIR/shared/classes/alfresco-global.properties
|
||||||
|
COPY dev-log4j.properties $TOMCAT_DIR/shared/classes/alfresco/extension
|
||||||
|
COPY disable-webscript-caching-context.xml $TOMCAT_DIR/shared/classes/alfresco/extension
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no license file exists
|
||||||
|
COPY Dockerfile license/*.* $TOMCAT_DIR/webapps/alfresco/WEB-INF/classes/alfresco/extension/license/
|
@@ -1,3 +1,6 @@
|
|||||||
|
#set( $symbol_pound = '#' )
|
||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
#set( $symbol_escape = '\' )
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
# this work for additional information regarding copyright ownership.
|
# this work for additional information regarding copyright ownership.
|
||||||
@@ -15,14 +18,12 @@
|
|||||||
# RUN TIME PROPERTIES
|
# RUN TIME PROPERTIES
|
||||||
# -------------------
|
# -------------------
|
||||||
|
|
||||||
########################################################################################################################
|
#
|
||||||
# Alfresco configuration for running locally with PostgreSQL Database
|
# Alfresco configuration for running locally with PostgreSQL Database
|
||||||
#
|
#
|
||||||
# Configuration when running Tomcat embedded from Maven.
|
# Configuration when running Tomcat embedded from Maven.
|
||||||
# Property values from the POM but it can also be edited here.
|
# 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 Repo Webapp (alfresco.war) context, ports etc
|
||||||
alfresco.context=alfresco
|
alfresco.context=alfresco
|
||||||
@@ -33,14 +34,9 @@ alfresco.protocol=http
|
|||||||
# Alfresco Share Webapp (share.war) context, ports etc
|
# Alfresco Share Webapp (share.war) context, ports etc
|
||||||
share.context=share
|
share.context=share
|
||||||
share.host=localhost
|
share.host=localhost
|
||||||
share.port=8080
|
share.port=8180
|
||||||
share.protocol=http
|
share.protocol=http
|
||||||
|
|
||||||
index.subsystem.name=solr4
|
|
||||||
solr.host=localhost
|
|
||||||
solr.port=8080
|
|
||||||
solr.secureComms=none
|
|
||||||
|
|
||||||
# Don't try and recover any index
|
# Don't try and recover any index
|
||||||
index.recovery.mode=NONE
|
index.recovery.mode=NONE
|
||||||
|
|
||||||
@@ -57,12 +53,24 @@ integrity.failOnError=true
|
|||||||
# Alfresco Repository PostgreSQL Database configuration.
|
# Alfresco Repository PostgreSQL Database configuration.
|
||||||
# The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
|
# The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
|
||||||
db.driver=org.postgresql.Driver
|
db.driver=org.postgresql.Driver
|
||||||
db.url=jdbc:postgresql://localhost:5432/alfrescoaio
|
|
||||||
|
# This Alfresco Platform Configuration file should be used for custom properties that are introduced by this module.
|
||||||
|
# Define default values for all properties here.
|
||||||
|
# System Administrators can override these values in environment specific configurations in
|
||||||
|
# alfresco/tomcat/shared/classes/alfresco-global.properties.
|
||||||
|
#
|
||||||
|
index.subsystem.name=solr6
|
||||||
|
solr.host=${rootArtifactId}-ass
|
||||||
|
solr.port=8983
|
||||||
|
solr.secureComms=none
|
||||||
|
|
||||||
db.username=alfresco
|
db.username=alfresco
|
||||||
db.password=alfresco
|
db.password=alfresco
|
||||||
db.pool.initial=10
|
db.pool.initial=10
|
||||||
db.pool.max=100
|
db.pool.max=100
|
||||||
|
|
||||||
|
db.url=jdbc:postgresql://${rootArtifactId}-postgres:5432/alfresco
|
||||||
|
|
||||||
# File servers related properties
|
# File servers related properties
|
||||||
# For local runs we disable CIFS and FTP
|
# For local runs we disable CIFS and FTP
|
||||||
cifs.enabled=false
|
cifs.enabled=false
|
@@ -4,7 +4,6 @@
|
|||||||
# Set root logger level to error
|
# Set root logger level to error
|
||||||
log4j.rootLogger=error, Console, File
|
log4j.rootLogger=error, Console, File
|
||||||
|
|
||||||
###### Console appender definition #######
|
|
||||||
|
|
||||||
# All outputs currently set to be a ConsoleAppender.
|
# All outputs currently set to be a ConsoleAppender.
|
||||||
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
||||||
@@ -14,7 +13,6 @@ log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
|||||||
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
|
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.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
||||||
|
|
||||||
###### File appender definition #######
|
|
||||||
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
||||||
log4j.appender.File.File=alfresco.log
|
log4j.appender.File.File=alfresco.log
|
||||||
log4j.appender.File.Append=true
|
log4j.appender.File.Append=true
|
||||||
@@ -22,13 +20,11 @@ log4j.appender.File.DatePattern='.'yyyy-MM-dd
|
|||||||
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
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.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
|
||||||
|
|
||||||
###### Hibernate specific appender definition #######
|
|
||||||
#log4j.appender.file=org.apache.log4j.FileAppender
|
#log4j.appender.file=org.apache.log4j.FileAppender
|
||||||
#log4j.appender.file.File=hibernate.log
|
#log4j.appender.file.File=hibernate.log
|
||||||
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||||
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
|
||||||
|
|
||||||
###### Log level overrides #######
|
|
||||||
|
|
||||||
# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
|
# 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
|
# Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
|
||||||
@@ -64,8 +60,7 @@ log4j.logger.org.apache.myfaces.taglib=error
|
|||||||
# OpenOfficeConnection
|
# OpenOfficeConnection
|
||||||
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
|
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
|
||||||
|
|
||||||
# log prepared statement cache activity ###
|
# log prepared statement cache activity log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
||||||
log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
|
||||||
|
|
||||||
# Alfresco
|
# Alfresco
|
||||||
log4j.logger.org.alfresco=error
|
log4j.logger.org.alfresco=error
|
||||||
@@ -215,7 +210,6 @@ log4j.logger.org.jbpm.graph.def.GraphElement=fatal
|
|||||||
|
|
||||||
#log4j.logger.org.alfresco.repo.googledocs=debug
|
#log4j.logger.org.alfresco.repo.googledocs=debug
|
||||||
|
|
||||||
###### Scripting #######
|
|
||||||
|
|
||||||
# Web Framework
|
# Web Framework
|
||||||
log4j.logger.org.springframework.extensions.webscripts=info
|
log4j.logger.org.springframework.extensions.webscripts=info
|
||||||
@@ -271,3 +265,6 @@ log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationsConsistenc
|
|||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
log4j.logger.${package}.platformsample.DemoComponent=debug
|
log4j.logger.${package}.platformsample.DemoComponent=debug
|
||||||
log4j.logger.${package}.platformsample.HelloWorldWebScript=debug
|
log4j.logger.${package}.platformsample.HelloWorldWebScript=debug
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,3 +1,6 @@
|
|||||||
|
#set( $symbol_pound = '#' )
|
||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
#set( $symbol_escape = '\' )
|
||||||
# Enable hotswap so that changes in this module will be automatically reloaded
|
# Enable hotswap so that changes in this module will be automatically reloaded
|
||||||
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
||||||
autoHotswap=true
|
autoHotswap=true
|
||||||
@@ -11,7 +14,7 @@ autoHotswap=true
|
|||||||
# i.e. monitor /target/classes
|
# i.e. monitor /target/classes
|
||||||
# should work with extraClasspath=${project.build.outputDirectory}
|
# should work with extraClasspath=${project.build.outputDirectory}
|
||||||
# If not try
|
# If not try
|
||||||
extraClasspath=${project.build.outputDirectory};${project.build.testOutputDirectory}
|
extraClasspath=/usr/local/tomcat/hotswap-agent
|
||||||
|
|
||||||
# Comma separated list of disabled plugins
|
# Comma separated list of disabled plugins
|
||||||
# Use plugin name - e.g.
|
# Use plugin name - e.g.
|
||||||
@@ -23,12 +26,12 @@ disabledPlugins=Hibernate,Spring
|
|||||||
#
|
#
|
||||||
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
||||||
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
||||||
extraWebappContext=${project.build.outputDirectory}/META-INF/resources
|
extraWebappContext=/usr/local/tomcat/hotswap-agent/${rootArtifactId}/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Load static web resources from different directory.
|
# Load static web resources from different directory.
|
||||||
#
|
#
|
||||||
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
||||||
webappDir=${project.build.outputDirectory}/META-INF/resources
|
webappDir=/usr/local/tomcat/hotswap-agent/${rootArtifactId}/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Watch for changes in a directory (resources only).
|
# Watch for changes in a directory (resources only).
|
||||||
#
|
#
|
@@ -0,0 +1,6 @@
|
|||||||
|
# Enterprise License location
|
||||||
|
|
||||||
|
Put the Alfresco Enterprise license file in this directory.
|
||||||
|
It will then be copied into the ACS container in the
|
||||||
|
$TOMCAT_DIR/WEB-INF/classes/alfresco/extension/license directory.
|
||||||
|
|
@@ -1,6 +1,23 @@
|
|||||||
#set( $symbol_pound = '#' )
|
#set( $symbol_pound = '#' )
|
||||||
#set( $symbol_dollar = '$' )
|
#set( $symbol_dollar = '$' )
|
||||||
#set( $symbol_escape = '\' )
|
#set( $symbol_escape = '\' )
|
||||||
|
/**
|
||||||
|
* Copyright (C) 2017 Alfresco Software Limited.
|
||||||
|
* <p/>
|
||||||
|
* This file is part of the Alfresco SDK project.
|
||||||
|
* <p/>
|
||||||
|
* Licensed 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
|
||||||
|
* <p/>
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
* <p/>
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
package ${package}.platformsample;
|
package ${package}.platformsample;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,22 +1,23 @@
|
|||||||
#set($symbol_pound='#')
|
#set($symbol_pound='#')
|
||||||
#set($symbol_dollar='$')
|
#set($symbol_dollar='$')
|
||||||
#set($symbol_escape='\' )
|
#set($symbol_escape='\' )
|
||||||
/*
|
/**
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
* Copyright (C) 2017 Alfresco Software Limited.
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
* <p/>
|
||||||
this work for additional information regarding copyright ownership.
|
* This file is part of the Alfresco SDK project.
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
* <p/>
|
||||||
(the "License"); you may not use this file except in compliance with
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
the License. You may obtain a copy of the License at
|
* 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
|
* <p/>
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
Unless required by applicable law or agreed to in writing, software
|
* <p/>
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
See the License for the specific language governing permissions and
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
limitations under the License.
|
* See the License for the specific language governing permissions and
|
||||||
*/
|
* limitations under the License.
|
||||||
|
*/
|
||||||
package ${package}.platformsample;
|
package ${package}.platformsample;
|
||||||
|
|
||||||
import org.alfresco.repo.module.AbstractModuleComponent;
|
import org.alfresco.repo.module.AbstractModuleComponent;
|
||||||
|
@@ -1,22 +1,23 @@
|
|||||||
#set($symbol_pound='#')
|
#set($symbol_pound='#')
|
||||||
#set($symbol_dollar='$')
|
#set($symbol_dollar='$')
|
||||||
#set($symbol_escape='\' )
|
#set($symbol_escape='\' )
|
||||||
/*
|
/**
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
* Copyright (C) 2017 Alfresco Software Limited.
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
* <p/>
|
||||||
this work for additional information regarding copyright ownership.
|
* This file is part of the Alfresco SDK project.
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
* <p/>
|
||||||
(the "License"); you may not use this file except in compliance with
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
the License. You may obtain a copy of the License at
|
* 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
|
* <p/>
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
Unless required by applicable law or agreed to in writing, software
|
* <p/>
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
See the License for the specific language governing permissions and
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
limitations under the License.
|
* See the License for the specific language governing permissions and
|
||||||
*/
|
* limitations under the License.
|
||||||
|
*/
|
||||||
package ${package}.platformsample;
|
package ${package}.platformsample;
|
||||||
|
|
||||||
import org.springframework.extensions.webscripts.Cache;
|
import org.springframework.extensions.webscripts.Cache;
|
||||||
|
@@ -3,20 +3,20 @@
|
|||||||
#set( $symbol_escape = '\' )
|
#set( $symbol_escape = '\' )
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
this work for additional information regarding copyright ownership.
|
this work for additional information regarding copyright ownership.
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
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 not use this file except in compliance with
|
||||||
the License. You may obtain a copy of the License at
|
the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
@@ -20,7 +20,8 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
||||||
<!-- This is filtered by Maven at build time, so that module name is single sourced. -->
|
|
||||||
|
<!-- This is filtered by Maven at build time, so that module name is single sourced. -->
|
||||||
<!-- Note. The bootstrap-context.xml file has to be loaded first.
|
<!-- Note. The bootstrap-context.xml file has to be loaded first.
|
||||||
Otherwise your custom models are not yet loaded when your service beans are instantiated and you
|
Otherwise your custom models are not yet loaded when your service beans are instantiated and you
|
||||||
cannot for example register policies on them. -->
|
cannot for example register policies on them. -->
|
||||||
|
@@ -0,0 +1,56 @@
|
|||||||
|
#set($symbol_pound='#')
|
||||||
|
#set($symbol_dollar='$')
|
||||||
|
#set($symbol_escape='\' )
|
||||||
|
/**
|
||||||
|
* Copyright (C) 2017 Alfresco Software Limited.
|
||||||
|
* <p/>
|
||||||
|
* This file is part of the Alfresco SDK project.
|
||||||
|
* <p/>
|
||||||
|
* Licensed 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
|
||||||
|
* <p/>
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
* <p/>
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
package ${package}.platformsample;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.mockito.Mockito;
|
||||||
|
import org.springframework.extensions.webscripts.*;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unit testing the Web Script Java Controller
|
||||||
|
*
|
||||||
|
* @author martin.bergljung@alfresco.com
|
||||||
|
* @version 1.0
|
||||||
|
* @since 3.0
|
||||||
|
*/
|
||||||
|
public class HelloWorldWebScriptControllerTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testController() {
|
||||||
|
WebScriptRequest req = Mockito.mock(WebScriptRequest.class);
|
||||||
|
Status status = Mockito.mock(Status.class);
|
||||||
|
Cache cache = Mockito.mock(Cache.class);
|
||||||
|
|
||||||
|
String helloPropName = "fromJava";
|
||||||
|
String helloPropExpectedValue = "HelloFromJava";
|
||||||
|
HelloWorldWebScript ws = new HelloWorldWebScript();
|
||||||
|
Map<String, Object> model = ws.executeImpl(req, status, cache);
|
||||||
|
|
||||||
|
assertNotNull("Response from Web Script Java Controller is null", model);
|
||||||
|
assertEquals("Incorrect Web Script Java Controller Response",
|
||||||
|
helloPropExpectedValue, model.get(helloPropName));
|
||||||
|
}
|
||||||
|
}
|
@@ -1,10 +0,0 @@
|
|||||||
# Enterprise License location
|
|
||||||
|
|
||||||
Put the Alfresco Enterprise license file in this directory.
|
|
||||||
It will then be copied into the Platform WAR in the
|
|
||||||
WEB-INF/classes/alfresco/extension/license directory.
|
|
||||||
|
|
||||||
And then not be part of any other classpaths.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,63 +0,0 @@
|
|||||||
<?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>
|
|
@@ -26,8 +26,6 @@
|
|||||||
<include>archetype-resources/pom.xml</include>
|
<include>archetype-resources/pom.xml</include>
|
||||||
<include>archetype-resources/run.sh</include>
|
<include>archetype-resources/run.sh</include>
|
||||||
<include>archetype-resources/run.bat</include>
|
<include>archetype-resources/run.bat</include>
|
||||||
<include>archetype-resources/debug.sh</include>
|
|
||||||
<include>archetype-resources/debug.bat</include>
|
|
||||||
<include>META-INF/maven/archetype-metadata.xml</include>
|
<include>META-INF/maven/archetype-metadata.xml</include>
|
||||||
</includes>
|
</includes>
|
||||||
<filtering>true</filtering>
|
<filtering>true</filtering>
|
||||||
@@ -38,8 +36,6 @@
|
|||||||
<exclude>archetype-resources/pom.xml</exclude>
|
<exclude>archetype-resources/pom.xml</exclude>
|
||||||
<exclude>archetype-resources/run.sh</exclude>
|
<exclude>archetype-resources/run.sh</exclude>
|
||||||
<exclude>archetype-resources/run.bat</exclude>
|
<exclude>archetype-resources/run.bat</exclude>
|
||||||
<exclude>archetype-resources/debug.sh</exclude>
|
|
||||||
<exclude>archetype-resources/debug.bat</exclude>
|
|
||||||
<exclude>META-INF/maven/archetype-metadata.xml</exclude>
|
<exclude>META-INF/maven/archetype-metadata.xml</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
<filtering>false</filtering>
|
<filtering>false</filtering>
|
||||||
|
@@ -11,12 +11,38 @@
|
|||||||
</requiredProperties>
|
</requiredProperties>
|
||||||
|
|
||||||
<fileSets>
|
<fileSets>
|
||||||
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
|
<directory>docker</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
||||||
<directory>src/main/assembly</directory>
|
<directory>src/main/assembly</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**</include>
|
<include>**</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="false">
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<includes>
|
||||||
|
<include>Dockerfile</include>
|
||||||
|
<include>share-config-custom.xml</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*.properties</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.properties</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>Dockerfile</exclude>
|
||||||
|
<exclude>share-config-custom.xml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||||
<directory>src/main/java</directory>
|
<directory>src/main/java</directory>
|
||||||
<includes>
|
<includes>
|
||||||
@@ -51,18 +77,9 @@
|
|||||||
<exclude>**/__artifactId__-example-widgets.xml</exclude>
|
<exclude>**/__artifactId__-example-widgets.xml</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet filtered="true" packaged="false" encoding="UTF-8">
|
<fileSet encoding="UTF-8" filtered="true">
|
||||||
<directory>src/test/resources</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
|
|
||||||
<fileSet encoding="UTF-8">
|
|
||||||
<directory></directory>
|
<directory></directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>debug.sh</include>
|
|
||||||
<include>debug.bat</include>
|
|
||||||
<include>run.sh</include>
|
<include>run.sh</include>
|
||||||
<include>run.bat</include>
|
<include>run.bat</include>
|
||||||
<include>README.md</include>
|
<include>README.md</include>
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
:: Dev environment startup script for Alfresco Community. ::
|
|
||||||
:: ::
|
|
||||||
:: Note. requires Alfresco.war to be running in another ::
|
|
||||||
:: Tomcat on port 8080. ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@echo off
|
|
||||||
|
|
||||||
mvnDebug clean install alfresco:run
|
|
||||||
|
|
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Note. requires Alfresco.war to be running in another Tomcat on port 8080
|
|
||||||
|
|
||||||
mvnDebug clean install alfresco:run
|
|
@@ -0,0 +1,65 @@
|
|||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
version: '3.4'
|
||||||
|
services:
|
||||||
|
${rootArtifactId}-share:
|
||||||
|
image: alfresco-share-${rootArtifactId}:development
|
||||||
|
build:
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
context: ../../../target
|
||||||
|
environment:
|
||||||
|
CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888"
|
||||||
|
REPO_HOST: ${rootArtifactId}-acs
|
||||||
|
REPO_PORT: 8080
|
||||||
|
ports:
|
||||||
|
- "${symbol_dollar}{share.port}:8080"
|
||||||
|
- "${symbol_dollar}{share.debug.port}:8888"
|
||||||
|
${rootArtifactId}-acs:
|
||||||
|
image: ${symbol_dollar}{docker.acs.image}:${symbol_dollar}{alfresco.platform.version}
|
||||||
|
environment:
|
||||||
|
JAVA_OPTS: "
|
||||||
|
-Ddb.driver=org.postgresql.Driver
|
||||||
|
-Ddb.username=alfresco
|
||||||
|
-Ddb.password=alfresco
|
||||||
|
-Ddb.url=jdbc:postgresql://${rootArtifactId}-postgres:5432/alfresco
|
||||||
|
-Dsolr.host=${rootArtifactId}-ass
|
||||||
|
-Dsolr.port=8983
|
||||||
|
-Dsolr.secureComms=none
|
||||||
|
-Dsolr.base.url=/solr
|
||||||
|
-Dindex.subsystem.name=solr6
|
||||||
|
"
|
||||||
|
ports:
|
||||||
|
- "${symbol_dollar}{acs.port}:8080"
|
||||||
|
volumes:
|
||||||
|
- alf-acs-volume:/usr/local/tomcat/alf_data
|
||||||
|
depends_on:
|
||||||
|
- ${rootArtifactId}-postgres
|
||||||
|
${rootArtifactId}-postgres:
|
||||||
|
image: postgres:9.6
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: alfresco
|
||||||
|
POSTGRES_USER: alfresco
|
||||||
|
POSTGRES_PASSWORD: alfresco
|
||||||
|
ports:
|
||||||
|
- "${symbol_dollar}{postgres.port}:5432"
|
||||||
|
volumes:
|
||||||
|
- alf-db-volume:/var/lib/postgresql/data
|
||||||
|
${rootArtifactId}-ass:
|
||||||
|
image: alfresco/alfresco-search-services:1.2.0
|
||||||
|
environment:
|
||||||
|
SOLR_ALFRESCO_HOST: ${rootArtifactId}-acs
|
||||||
|
SOLR_ALFRESCO_PORT: 8080
|
||||||
|
SOLR_SOLR_HOST: ${rootArtifactId}-ass
|
||||||
|
SOLR_SOLR_PORT: 8983
|
||||||
|
SOLR_CREATE_ALFRESCO_DEFAULTS: alfresco,archive
|
||||||
|
ports:
|
||||||
|
- "8983:8983"
|
||||||
|
volumes:
|
||||||
|
- alf-ass-volume:/opt/alfresco-search-services/contentstore
|
||||||
|
- alf-ass-volume:/opt/alfresco-search-services/data
|
||||||
|
volumes:
|
||||||
|
alf-acs-volume:
|
||||||
|
external: true
|
||||||
|
alf-db-volume:
|
||||||
|
external: true
|
||||||
|
alf-ass-volume:
|
||||||
|
external: true
|
@@ -5,158 +5,99 @@
|
|||||||
<groupId>${groupId}</groupId>
|
<groupId>${groupId}</groupId>
|
||||||
<artifactId>${artifactId}</artifactId>
|
<artifactId>${artifactId}</artifactId>
|
||||||
<version>${version}</version>
|
<version>${version}</version>
|
||||||
<name>${artifactId} Share Jar Module - SDK 4.0</name>
|
<name>${artifactId} Share JAR Module</name>
|
||||||
<description>Share JAR Module (to be included in the share.war) - SDK 4.0</description>
|
<description>Sample Share JAR Module (to be included in the share.war)</description>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Alfresco Maven Plugin version to use -->
|
<!-- Alfresco Maven Plugin version to use -->
|
||||||
<alfresco.sdk.version>@@alfresco.sdk.parent.version@@</alfresco.sdk.version>
|
<alfresco.sdk.version>@@alfresco.sdk.parent.version@@</alfresco.sdk.version>
|
||||||
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|
||||||
<!-- Properties used in dependency declarations, you don't need to change these -->
|
<!-- Properties used in dependency declarations, you don't need to change these -->
|
||||||
<alfresco.groupId>org.alfresco</alfresco.groupId>
|
<alfresco.groupId>org.alfresco</alfresco.groupId>
|
||||||
|
<alfresco.bomDependencyArtifactId>@@alfresco.bomDependency.artifactId@@</alfresco.bomDependencyArtifactId>
|
||||||
|
<alfresco.platform.version>@@alfresco.platform.version@@</alfresco.platform.version>
|
||||||
|
<alfresco.share.version>@@alfresco.share.version@@</alfresco.share.version>
|
||||||
|
|
||||||
<!-- Alfresco Share webapp version, this is the original Alfresco webapp that will be
|
<!-- Docker images -->
|
||||||
customized and then deployed and run by the tomcat maven plugin when
|
<docker.acs.image>@@alfresco.platform.docker.image@@</docker.acs.image>
|
||||||
executing for example $ mvn clean install alfresco:run -->
|
<docker.share.image>@@alfresco.share.docker.image@@</docker.share.image>
|
||||||
<alfresco.share.version>5.2.d</alfresco.share.version>
|
|
||||||
|
|
||||||
<!-- Default is to run with a Community edition, change to 'enterprise' if using Enterprise edition -->
|
|
||||||
<maven.alfresco.edition>community</maven.alfresco.edition>
|
|
||||||
|
|
||||||
<!-- Alfresco Surf version, if you change Share version you might need to change Surf version -->
|
|
||||||
<alfresco.surf.version>6.11</alfresco.surf.version>
|
|
||||||
|
|
||||||
<!-- Since alfresco.war (i.e. the Platform/Repository) is already running on port 8080, we run Share.WAR on port 8081.
|
|
||||||
If Alfresco Platform is not running, then generate a platform-jar-module and start it up. -->
|
|
||||||
<maven.tomcat.port>8081</maven.tomcat.port>
|
|
||||||
|
|
||||||
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
|
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
|
||||||
<jrebel.version>1.1.6</jrebel.version>
|
<jrebel.version>1.1.6</jrebel.version>
|
||||||
|
|
||||||
<!-- Compile with Java 7, default is 5 -->
|
<!-- Compile with Java 8, default is 5 -->
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
|
||||||
|
<!-- Environment configuration properties -->
|
||||||
|
<share.port>8180</share.port>
|
||||||
|
<share.debug.port>9898</share.debug.port>
|
||||||
|
<acs.host>${artifactId}-acs</acs.host>
|
||||||
|
<acs.port>8080</acs.port>
|
||||||
|
<postgres.port>5555</postgres.port>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<!-- Libs used in Unit and Integration tests -->
|
||||||
|
<!-- IMPORTANT - Test dependencies need to be here in the top parent POM as
|
||||||
|
the Alfresco Maven IT Mojo runs as part of the parent project ... -->
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- Following dependencies are needed for compiling Java code in src/main/java -->
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
<artifactId>share</artifactId>
|
<artifactId>share</artifactId>
|
||||||
<version>${alfresco.share.version}</version>
|
|
||||||
<classifier>classes</classifier>
|
<classifier>classes</classifier>
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.alfresco.surf</groupId>
|
|
||||||
<artifactId>spring-surf-api</artifactId>
|
|
||||||
<version>${alfresco.surf.version}</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<!-- This will import the dependencyManagement for all artifacts in the selected Alfresco platform.
|
||||||
|
NOTE: You still need to define dependencies in your POM, but you can omit version as
|
||||||
|
it's enforced by this dependencyManagement.
|
||||||
|
NOTE: It defaults to the latest version this SDK pom has been tested with,
|
||||||
|
but alfresco version can/should be overridden in your project's pom
|
||||||
|
-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
|
<artifactId>${alfresco.bomDependencyArtifactId}</artifactId>
|
||||||
|
<version>${alfresco.platform.version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- Redefine the following Share dependencies as they have different version numbers than platform.
|
||||||
|
They are defined in alfresco-platform-distribution... -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
|
<artifactId>share</artifactId>
|
||||||
|
<version>${alfresco.share.version}</version>
|
||||||
|
<type>war</type>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
|
<artifactId>share</artifactId>
|
||||||
|
<version>${alfresco.share.version}</version>
|
||||||
|
<classifier>classes</classifier>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
|
<artifactId>alfresco-web-framework-commons</artifactId>
|
||||||
|
<version>${alfresco.share.version}</version>
|
||||||
|
<classifier>classes</classifier>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!--
|
<!-- Filter the test resource files in the AIO parent project, and do property substitutions.
|
||||||
The Alfresco Maven Plugin contains all the logic to run the extension
|
We need this config so this is done before the Alfresco Maven Plugin 'run' is executed. -->
|
||||||
in an embedded Tomcat with the H2 database.
|
|
||||||
-->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
|
||||||
<artifactId>alfresco-maven-plugin</artifactId>
|
|
||||||
<version>${alfresco.sdk.version}</version>
|
|
||||||
<configuration>
|
|
||||||
|
|
||||||
<!-- We assume that the platform/repository is already running on localhost:8080 -->
|
|
||||||
<enablePlatform>false</enablePlatform>
|
|
||||||
|
|
||||||
<!-- Enable the Share webapp, which is what we customize with Share JAR modules -->
|
|
||||||
<enableShare>true</enableShare>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
JARs and AMPs that should be overlayed/applied to the Share WAR
|
|
||||||
(i.e. share.war)
|
|
||||||
-->
|
|
||||||
<shareModules>
|
|
||||||
<!-- Bring in this JAR project, need to be included here, otherwise share-config-custom.xml
|
|
||||||
will not be picked up. It will not be read from target/classes/META-INF -->
|
|
||||||
<moduleDependency>
|
|
||||||
<groupId>${project.groupId}</groupId>
|
|
||||||
<artifactId>${project.artifactId}</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</moduleDependency>
|
|
||||||
</shareModules>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- Build an AMP if 3rd party libs are needed by the extension -->
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
|
||||||
<version>2.6</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>build-amp-file</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>single</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<appendAssemblyId>false</appendAssemblyId>
|
|
||||||
<descriptor>src/main/assembly/amp.xml</descriptor>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
|
||||||
<artifactId>alfresco-maven-plugin</artifactId>
|
|
||||||
<version>${alfresco.sdk.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- Hot reloading with JRebel -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.zeroturnaround</groupId>
|
|
||||||
<artifactId>jrebel-maven-plugin</artifactId>
|
|
||||||
<version>${jrebel.version}</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>generate-rebel-xml</id>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>generate</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<!-- For more information about how to configure JRebel plugin see:
|
|
||||||
http://manuals.zeroturnaround.com/jrebel/standalone/maven.html#maven-rebel-xml -->
|
|
||||||
<classpath>
|
|
||||||
<fallback>all</fallback>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<!--
|
|
||||||
Empty resource element marks default configuration. By
|
|
||||||
default it is placed first in generated configuration.
|
|
||||||
-->
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
</classpath>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
alwaysGenerate - default is false
|
|
||||||
If 'false' - rebel.xml is generated if timestamps of pom.xml and the current rebel.xml file are not equal.
|
|
||||||
If 'true' - rebel.xml will always be generated
|
|
||||||
-->
|
|
||||||
<alwaysGenerate>true</alwaysGenerate>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
@@ -190,6 +131,150 @@
|
|||||||
<nonFilteredFileExtension>js</nonFilteredFileExtension>
|
<nonFilteredFileExtension>js</nonFilteredFileExtension>
|
||||||
</nonFilteredFileExtensions>
|
</nonFilteredFileExtensions>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-and-filter-docker-compose-resources</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.outputDirectory}/docker</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>docker</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>copy-and-filter-docker-resources</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/docker</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.0.2</version>
|
||||||
|
<executions>
|
||||||
|
<!-- Copy the share extension -->
|
||||||
|
<execution>
|
||||||
|
<id>copy-repo-extension</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifactItems>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${artifactId}</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
<overWrite>false</overWrite>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
</artifactItem>
|
||||||
|
</artifactItems>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<!-- Copy other dependencies (JARs or AMPs) declared in the share module -->
|
||||||
|
<execution>
|
||||||
|
<id>copy-third-party-dependencies</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||||
|
<includeScope>runtime</includeScope>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Build an AMP if 3rd party libs are needed by the extensions
|
||||||
|
JARs are the default artifact produced in your modules, if you want to build an amp for each module
|
||||||
|
you have to enable this plugin and inspect the src/main/assembly.xml file if you want to customize
|
||||||
|
the layout of your AMP. The end result is that Maven will produce both a JAR file and an AMP with your
|
||||||
|
module.
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<version>2.6</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>build-amp-file</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<descriptor>src/main/assembly/amp.xml</descriptor>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.alfresco.maven.plugin</groupId>
|
||||||
|
<artifactId>alfresco-maven-plugin</artifactId>
|
||||||
|
<version>${alfresco.sdk.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Hot reloading with JRebel -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.zeroturnaround</groupId>
|
||||||
|
<artifactId>jrebel-maven-plugin</artifactId>
|
||||||
|
<version>${jrebel.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>generate-rebel-xml</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>generate</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<!-- For more information about how to configure JRebel plugin see:
|
||||||
|
http://manuals.zeroturnaround.com/jrebel/standalone/maven.html#maven-rebel-xml -->
|
||||||
|
<classpath>
|
||||||
|
<fallback>all</fallback>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${project.build.outputDirectory}</directory>
|
||||||
|
<directory>${project.build.testOutputDirectory}</directory>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</classpath>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
alwaysGenerate - default is false
|
||||||
|
If 'false' - rebel.xml is generated if timestamps of pom.xml and the current rebel.xml file are not equal.
|
||||||
|
If 'true' - rebel.xml will always be generated
|
||||||
|
-->
|
||||||
|
<alwaysGenerate>true</alwaysGenerate>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
@@ -231,6 +316,7 @@
|
|||||||
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
|
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>alfresco-plugin-public</id>
|
<id>alfresco-plugin-public</id>
|
||||||
@@ -245,5 +331,4 @@
|
|||||||
</snapshots>
|
</snapshots>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
|
||||||
</project>
|
</project>
|
@@ -1,9 +1,91 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
#set( $symbol_dollar = '$' )
|
||||||
:: Dev environment startup script for Alfresco Community. ::
|
@ECHO OFF
|
||||||
:: ::
|
|
||||||
:: Note. requires Alfresco.war to be running in another ::
|
|
||||||
:: Tomcat on port 8080. ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@echo off
|
|
||||||
|
|
||||||
mvn clean install alfresco:run
|
SET COMPOSE_FILE_PATH=%CD%\target\classes\docker\docker-compose.yml
|
||||||
|
|
||||||
|
IF [%1]==[] (
|
||||||
|
echo "Usage: %0 {build_start|start|stop|purge|tail|reload_share|build_test|test}"
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
|
||||||
|
IF %1==build_start (
|
||||||
|
CALL :down
|
||||||
|
CALL :build
|
||||||
|
CALL :start
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==start (
|
||||||
|
CALL :start
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==stop (
|
||||||
|
CALL :down
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==purge (
|
||||||
|
CALL:down
|
||||||
|
CALL:purge
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==tail (
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==reload_share (
|
||||||
|
CALL :build_share
|
||||||
|
CALL :start_share
|
||||||
|
CALL :tail
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==build_test (
|
||||||
|
CALL :down
|
||||||
|
CALL :build
|
||||||
|
CALL :start
|
||||||
|
CALL :test
|
||||||
|
CALL :down
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
IF %1==test (
|
||||||
|
CALL :test
|
||||||
|
GOTO END
|
||||||
|
)
|
||||||
|
echo "Usage: %0 {build_start|start|stop|purge|tail|reload_share|build_test|test}"
|
||||||
|
:END
|
||||||
|
EXIT /B %ERRORLEVEL%
|
||||||
|
|
||||||
|
:start
|
||||||
|
docker volume create alf-acs-volume
|
||||||
|
docker volume create alf-db-volume
|
||||||
|
docker volume create alf-ass-volume
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d
|
||||||
|
EXIT /B 0
|
||||||
|
:start_share
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d ${rootArtifactId}-share
|
||||||
|
EXIT /B 0
|
||||||
|
:down
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" down
|
||||||
|
EXIT /B 0
|
||||||
|
:build
|
||||||
|
docker rmi alfresco-content-services-${rootArtifactId}:development
|
||||||
|
docker rmi alfresco-share-${rootArtifactId}:development
|
||||||
|
call mvn clean install -DskipTests
|
||||||
|
EXIT /B 0
|
||||||
|
:build_share
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-share
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-share
|
||||||
|
docker rmi alfresco-share-${rootArtifactId}:development
|
||||||
|
call mvn clean install -DskipTests
|
||||||
|
EXIT /B 0
|
||||||
|
:tail
|
||||||
|
docker-compose -f "%COMPOSE_FILE_PATH%" logs -f
|
||||||
|
EXIT /B 0
|
||||||
|
:test
|
||||||
|
call mvn verify -pl
|
||||||
|
EXIT /B 0
|
||||||
|
:purge
|
||||||
|
docker volume rm alf-acs-volume
|
||||||
|
docker volume rm alf-db-volume
|
||||||
|
docker volume rm alf-ass-volume
|
||||||
|
EXIT /B 0
|
@@ -1,4 +1,85 @@
|
|||||||
#!/bin/bash
|
#set( $symbol_dollar = '$' )
|
||||||
# Note. requires Alfresco.war to be running in another Tomcat on port 8080
|
#!/bin/sh
|
||||||
|
|
||||||
mvn clean install alfresco:run
|
export COMPOSE_FILE_PATH=${symbol_dollar}{PWD}/target/classes/docker/docker-compose.yml
|
||||||
|
|
||||||
|
start() {
|
||||||
|
docker volume create alf-acs-volume
|
||||||
|
docker volume create alf-db-volume
|
||||||
|
docker volume create alf-ass-volume
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH up --build -d
|
||||||
|
}
|
||||||
|
|
||||||
|
start_share() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH up --build -d ${rootArtifactId}-share
|
||||||
|
}
|
||||||
|
|
||||||
|
down() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH down
|
||||||
|
}
|
||||||
|
|
||||||
|
purge() {
|
||||||
|
docker volume rm alf-acs-volume
|
||||||
|
docker volume rm alf-db-volume
|
||||||
|
docker volume rm alf-ass-volume
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
docker rmi alfresco-share-${rootArtifactId}:development
|
||||||
|
mvn clean install -DskipTests=true
|
||||||
|
}
|
||||||
|
|
||||||
|
build_share() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH kill ${rootArtifactId}-share
|
||||||
|
yes | docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH rm -f ${rootArtifactId}-share
|
||||||
|
docker rmi alfresco-share-${rootArtifactId}:development
|
||||||
|
mvn clean install -DskipTests=true
|
||||||
|
}
|
||||||
|
|
||||||
|
tail() {
|
||||||
|
docker-compose -f ${symbol_dollar}COMPOSE_FILE_PATH logs -f
|
||||||
|
}
|
||||||
|
|
||||||
|
test() {
|
||||||
|
mvn verify -pl
|
||||||
|
}
|
||||||
|
|
||||||
|
case "${symbol_dollar}1" in
|
||||||
|
build_start)
|
||||||
|
down
|
||||||
|
build
|
||||||
|
start
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
start)
|
||||||
|
start
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
down
|
||||||
|
;;
|
||||||
|
purge)
|
||||||
|
down
|
||||||
|
purge
|
||||||
|
;;
|
||||||
|
tail)
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
reload_share)
|
||||||
|
build_share
|
||||||
|
start_share
|
||||||
|
tail
|
||||||
|
;;
|
||||||
|
build_test)
|
||||||
|
down
|
||||||
|
build
|
||||||
|
start
|
||||||
|
test
|
||||||
|
down
|
||||||
|
;;
|
||||||
|
test)
|
||||||
|
test
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: ${symbol_dollar}0 {build_start|start|stop|purge|tail|reload_share|build_test|test}"
|
||||||
|
esac
|
@@ -1,7 +1,7 @@
|
|||||||
<assembly
|
<assembly
|
||||||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
|
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
|
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Note that the Module dependency specified in the configuration section for the Alfresco Maven Plugin
|
Note that the Module dependency specified in the configuration section for the Alfresco Maven Plugin
|
||||||
|
@@ -0,0 +1,16 @@
|
|||||||
|
FROM ${docker.share.image}:${alfresco.share.version}
|
||||||
|
|
||||||
|
ARG TOMCAT_DIR=/usr/local/tomcat
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no JARs exist
|
||||||
|
COPY Dockerfile extensions/*.jar $TOMCAT_DIR/webapps/share/WEB-INF/lib/
|
||||||
|
|
||||||
|
# Copy Dockerfile to avoid an error if no AMPs exist
|
||||||
|
COPY Dockerfile extensions/*.amp $TOMCAT_DIR/amps_share/
|
||||||
|
RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
|
||||||
|
$TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force
|
||||||
|
|
||||||
|
COPY share-config-custom.xml $TOMCAT_DIR/shared/classes/alfresco/web-extension
|
||||||
|
|
||||||
|
COPY log4j.properties $TOMCAT_DIR/webapps/share/WEB-INF/classes
|
||||||
|
COPY hotswap-agent.properties $TOMCAT_DIR/webapps/share/WEB-INF/classes
|
@@ -1,3 +1,6 @@
|
|||||||
|
#set( $symbol_pound = '#' )
|
||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
#set( $symbol_escape = '\' )
|
||||||
# Enable hotswap so that changes in this module will be automatically reloaded
|
# Enable hotswap so that changes in this module will be automatically reloaded
|
||||||
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
||||||
autoHotswap=true
|
autoHotswap=true
|
||||||
@@ -11,7 +14,7 @@ autoHotswap=true
|
|||||||
# i.e. monitor /target/classes
|
# i.e. monitor /target/classes
|
||||||
# should work with extraClasspath=${project.build.outputDirectory}
|
# should work with extraClasspath=${project.build.outputDirectory}
|
||||||
# If not try
|
# If not try
|
||||||
extraClasspath=${project.basedir}/${artifactId}-share-jar/target/classes;${project.basedir}/${artifactId}-share-jar/target/test-classes
|
extraClasspath=/usr/local/tomcat/hotswap-agent
|
||||||
|
|
||||||
|
|
||||||
# Comma separated list of disabled plugins
|
# Comma separated list of disabled plugins
|
||||||
@@ -24,12 +27,12 @@ disabledPlugins=Hibernate,Spring
|
|||||||
#
|
#
|
||||||
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
# Load web application resources (such as HTML, JSP, CSS, ...) from this directory prior to default processing.
|
||||||
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
# Use this setting to set to serve resources from source directory directly (e.g. src/main/webapp).
|
||||||
extraWebappContext=${project.basedir}/${artifactId}-share-jar/target/classes/META-INF/resources;
|
extraWebappContext=/usr/local/tomcat/hotswap-agent/${rootArtifactId}/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Load static web resources from different directory.
|
# Load static web resources from different directory.
|
||||||
#
|
#
|
||||||
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
|
||||||
webappDir=${project.basedir}/${artifactId}-share-jar/target/classes/META-INF/resources;
|
webappDir=/usr/local/tomcat/hotswap-agent/${rootArtifactId}/target/classes/META-INF/resources;
|
||||||
|
|
||||||
# Watch for changes in a directory (resources only).
|
# Watch for changes in a directory (resources only).
|
||||||
#
|
#
|
@@ -1,7 +1,10 @@
|
|||||||
|
#set( $symbol_pound = '#' )
|
||||||
|
#set( $symbol_dollar = '$' )
|
||||||
|
#set( $symbol_escape = '\' )
|
||||||
# Set root logger level to error
|
# Set root logger level to error
|
||||||
log4j.rootLogger=error, Console, File
|
log4j.rootLogger=error, Console, File
|
||||||
|
|
||||||
###### Console appender definition #######
|
# Console appender definition #
|
||||||
|
|
||||||
# All outputs currently set to be a ConsoleAppender.
|
# All outputs currently set to be a ConsoleAppender.
|
||||||
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
||||||
@@ -11,7 +14,7 @@ log4j.appender.Console.layout=org.apache.log4j.PatternLayout
|
|||||||
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
|
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.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
|
||||||
|
|
||||||
###### File appender definition #######
|
# File appender definition #
|
||||||
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
|
||||||
log4j.appender.File.File=share.log
|
log4j.appender.File.File=share.log
|
||||||
log4j.appender.File.Append=true
|
log4j.appender.File.Append=true
|
@@ -0,0 +1,105 @@
|
|||||||
|
<alfresco-config>
|
||||||
|
|
||||||
|
<config evaluator="string-compare" condition="WebFramework">
|
||||||
|
<web-framework>
|
||||||
|
<autowire>
|
||||||
|
<!-- Changing this to 'development' currently breaks the Admin Console.
|
||||||
|
Instead we make a POST to clear Share dependency caches, see 'clear-caches-refresh-ws' profile. -->
|
||||||
|
<mode>production</mode> <!-- not really need in the long run, used for YUI - deprecate -->
|
||||||
|
</autowire>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
We don't need to do this when we have the new refresh mojos in the Alfresco plug-in.
|
||||||
|
|
||||||
|
If resource caching has been disabled then all the dependency caches will be cleared
|
||||||
|
before processing the Aikau jsonModel request...
|
||||||
|
(i.e. this.dojoDependencyHandler.clearCaches() )
|
||||||
|
|
||||||
|
For more information see the Aikau source code: https://github.com/Alfresco/Aikau
|
||||||
|
-->
|
||||||
|
<disable-resource-caching>false</disable-resource-caching>
|
||||||
|
</web-framework>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Global config section -->
|
||||||
|
<config replace="true">
|
||||||
|
<flags>
|
||||||
|
<!--
|
||||||
|
Developer debugging setting to turn on DEBUG mode for client scripts in the browser
|
||||||
|
-->
|
||||||
|
<client-debug>true</client-debug>
|
||||||
|
<!--
|
||||||
|
LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
|
||||||
|
This flag automatically activates logging on page load.
|
||||||
|
-->
|
||||||
|
<client-debug-autologging>false</client-debug-autologging>
|
||||||
|
</flags>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Disable CSRF completely for now
|
||||||
|
It seems Share has issues on 4.2.x with the embedded tomcat and CSRFPolicy
|
||||||
|
-->
|
||||||
|
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
||||||
|
<filter/>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Change so it is picked up from property where the Alfresco Repo Webapp is running
|
||||||
|
(e.g. http://localhost:8080/alfresco)
|
||||||
|
-->
|
||||||
|
<config evaluator="string-compare" condition="Remote">
|
||||||
|
<remote>
|
||||||
|
<endpoint>
|
||||||
|
<id>alfresco-noauth</id>
|
||||||
|
<name>Alfresco - unauthenticated access</name>
|
||||||
|
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
|
||||||
|
<connector-id>alfresco</connector-id>
|
||||||
|
<endpoint-url>http://${acs.host}:8080/alfresco/s</endpoint-url>
|
||||||
|
<identity>none</identity>
|
||||||
|
</endpoint>
|
||||||
|
|
||||||
|
<endpoint>
|
||||||
|
<id>alfresco</id>
|
||||||
|
<name>Alfresco - user access</name>
|
||||||
|
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
|
||||||
|
<connector-id>alfresco</connector-id>
|
||||||
|
<endpoint-url>http://${acs.host}:8080/alfresco/s</endpoint-url>
|
||||||
|
<identity>user</identity>
|
||||||
|
</endpoint>
|
||||||
|
|
||||||
|
<endpoint>
|
||||||
|
<id>alfresco-feed</id>
|
||||||
|
<name>Alfresco Feed</name>
|
||||||
|
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
|
||||||
|
<connector-id>http</connector-id>
|
||||||
|
<endpoint-url>http://${acs.host}:8080/alfresco/s</endpoint-url>
|
||||||
|
<basic-auth>true</basic-auth>
|
||||||
|
<identity>user</identity>
|
||||||
|
</endpoint>
|
||||||
|
|
||||||
|
<endpoint>
|
||||||
|
<id>activiti-admin</id>
|
||||||
|
<name>Activiti Admin UI - user access</name>
|
||||||
|
<description>Access to Activiti Admin UI, that requires user authentication</description>
|
||||||
|
<connector-id>activiti-admin-connector</connector-id>
|
||||||
|
<endpoint-url>http://${acs.host}:8080/alfresco/activiti-admin</endpoint-url>
|
||||||
|
<identity>user</identity>
|
||||||
|
</endpoint>
|
||||||
|
|
||||||
|
<endpoint>
|
||||||
|
<id>alfresco-api</id>
|
||||||
|
<parent-id>alfresco</parent-id>
|
||||||
|
<name>Alfresco Public API - user access</name>
|
||||||
|
<description>Access to Alfresco Repository Public API that require user authentication.
|
||||||
|
This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description>
|
||||||
|
<connector-id>alfresco</connector-id>
|
||||||
|
<endpoint-url>http://${acs.host}:8080/alfresco/api</endpoint-url>
|
||||||
|
<identity>user</identity>
|
||||||
|
</endpoint>
|
||||||
|
</remote>
|
||||||
|
</config>
|
||||||
|
</alfresco-config>
|
||||||
|
|
@@ -11,10 +11,10 @@
|
|||||||
-->
|
-->
|
||||||
<alfresco-config>
|
<alfresco-config>
|
||||||
<!--================================================================================================================
|
<!--================================================================================================================
|
||||||
Make custom types and aspects visible in "Change Type" and "Manage Aspects" actions.
|
Make custom types and aspects visible in "Change Type" and "Manage Aspects" actions.
|
||||||
This will also make them visible when creating rules.
|
This will also make them visible when creating rules.
|
||||||
(will be merged with out-of-the-box configured types and aspects)
|
(will be merged with out-of-the-box configured types and aspects)
|
||||||
=============================================================================================================-->
|
=============================================================================================================-->
|
||||||
|
|
||||||
<config evaluator="string-compare" condition="DocumentLibrary">
|
<config evaluator="string-compare" condition="DocumentLibrary">
|
||||||
<aspects>
|
<aspects>
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Add module specific messages and labels -->
|
<!-- Add module specific messages and labels -->
|
||||||
<bean id="${artifactId}.resources"
|
<bean id="${package}.${artifactId}.resources"
|
||||||
class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
|
class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
|
||||||
<property name="resourceBundles">
|
<property name="resourceBundles">
|
||||||
<list>
|
<list>
|
||||||
|
6
pom.xml
6
pom.xml
@@ -126,6 +126,12 @@
|
|||||||
<alfresco.sdk.parent.version>${project.version}</alfresco.sdk.parent.version>
|
<alfresco.sdk.parent.version>${project.version}</alfresco.sdk.parent.version>
|
||||||
<alfresco.sdk.tests.exclude>*/*-enterprise*/*</alfresco.sdk.tests.exclude>
|
<alfresco.sdk.tests.exclude>*/*-enterprise*/*</alfresco.sdk.tests.exclude>
|
||||||
|
|
||||||
|
<alfresco.bomDependency.artifactId>acs-community-packaging</alfresco.bomDependency.artifactId>
|
||||||
|
<alfresco.platform.version>6.0.7-ga</alfresco.platform.version>
|
||||||
|
<alfresco.share.version>6.0.c</alfresco.share.version>
|
||||||
|
<alfresco.platform.docker.image>alfresco/alfresco-content-repository-community</alfresco.platform.docker.image>
|
||||||
|
<alfresco.share.docker.image>alfresco/alfresco-share</alfresco.share.docker.image>
|
||||||
|
|
||||||
<!-- The following version is needed for alfresco-rad -->
|
<!-- The following version is needed for alfresco-rad -->
|
||||||
<alfresco.community.default.version>5.2.f</alfresco.community.default.version>
|
<alfresco.community.default.version>5.2.f</alfresco.community.default.version>
|
||||||
<alfresco.enterprise.default.version>5.2.0</alfresco.enterprise.default.version>
|
<alfresco.enterprise.default.version>5.2.0</alfresco.enterprise.default.version>
|
||||||
|
Reference in New Issue
Block a user