mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-09-10 14:12:12 +00:00
Compare commits
290 Commits
alfresco-s
...
fix/docume
Author | SHA1 | Date | |
---|---|---|---|
|
739d4422c6 | ||
|
007397f269 | ||
|
477cfd0815 | ||
|
ed8f8519b0 | ||
|
6ab259ae87 | ||
|
d9aadb1a7d | ||
|
3d312dd248 | ||
|
8746cc47ee | ||
|
f935952160 | ||
|
a303296159 | ||
|
d92cd1d28c | ||
|
d24a4e223d | ||
|
94646f41f1 | ||
|
3a5c7ab475 | ||
|
1f9ae91cb1 | ||
|
3126e0e128 | ||
|
3a1d65965e | ||
|
88c0604a6f | ||
|
bec7914830 | ||
|
ac0503904d | ||
|
536b01c56f | ||
|
33c93c4dfe | ||
|
0985d8b36d | ||
|
ac09ab3386 | ||
|
7de8c85c0a | ||
|
94a085d2bc | ||
|
db15d4366b | ||
|
7dce05b785 | ||
|
32f23dd922 | ||
|
b3fa4568a6 | ||
|
c53fb72935 | ||
|
906a608ffa | ||
|
459e3f1424 | ||
|
a879ad83c9 | ||
|
928f99336e | ||
|
9521f6ef42 | ||
|
0a0039dcb0 | ||
|
2c29c915d4 | ||
|
7878155ed9 | ||
|
7aa6400210 | ||
|
cc0955e012 | ||
|
2899b205ba | ||
|
340785180d | ||
|
2bc06e4222 | ||
|
4f70d0f575 | ||
|
fd106b13c7 | ||
|
f59a05a0c0 | ||
|
860fc03a03 | ||
|
a2cf89ed5e | ||
|
6e8f26220a | ||
|
70d61333e8 | ||
|
cc1fced0d8 | ||
|
9b513c151a | ||
|
326104acd8 | ||
|
265814e487 | ||
|
5b6ea1e3bb | ||
|
1191057d56 | ||
|
5411098636 | ||
|
e63c849d6d | ||
|
013fed7669 | ||
|
1cae6a854f | ||
|
20d4486da9 | ||
|
cabce2d981 | ||
|
019c5c70e0 | ||
|
693fde6285 | ||
|
515d23de2c | ||
|
9a5e70f324 | ||
|
b57196f46e | ||
|
a565f66c76 | ||
|
b3808e3e8b | ||
|
3f51507ea7 | ||
|
0a082f3bfc | ||
|
35e2800858 | ||
|
4a56544cad | ||
|
9c2ac0c956 | ||
|
8d407356b7 | ||
|
42e5726313 | ||
|
9c28f38f9c | ||
|
1aff0f2a01 | ||
|
712eb22dd4 | ||
|
905f589169 | ||
|
b1139739b8 | ||
|
219389197a | ||
|
782740ef99 | ||
|
2ce90ecc93 | ||
|
b3a1dabf72 | ||
|
7928ae358b | ||
|
a204305226 | ||
|
0352e2fd07 | ||
|
af396f70ac | ||
|
8634cc1d37 | ||
|
a3a7e9f158 | ||
|
0d2c76cc0c | ||
|
a39f4248a2 | ||
|
97967c35e6 | ||
|
d92a8d14e0 | ||
|
c672e75db6 | ||
|
5ea45fcca1 | ||
|
df508d3535 | ||
|
dc8ac36265 | ||
|
0464f9bd66 | ||
|
ce64b89d1d | ||
|
232db55be7 | ||
|
584e3e0339 | ||
|
a6f0b34074 | ||
|
bf853d72c8 | ||
|
7f19645f20 | ||
|
e61146ea07 | ||
|
10809ad2ba | ||
|
3d2ff7b1e8 | ||
|
8998e37414 | ||
|
c3ae5760e8 | ||
|
89d4d3fd9a | ||
|
372afc6ba4 | ||
|
3908cc73b7 | ||
|
76d813f2f4 | ||
|
5edd1f7b43 | ||
|
12db1fcb17 | ||
|
3e4a793f5d | ||
|
fba08f9ab7 | ||
|
56300e35aa | ||
|
b4b0be82ae | ||
|
50f43f23d3 | ||
|
2ee5120413 | ||
|
7f861a9672 | ||
|
b199afcd7e | ||
|
7baf3fb0a1 | ||
|
54504b4962 | ||
|
1503134f77 | ||
|
71ed669795 | ||
|
7d9b7de8c8 | ||
|
7483212c1f | ||
|
3d30a5893b | ||
|
32666d167f | ||
|
b737483c18 | ||
|
4cdc281f7f | ||
|
cc14a39be4 | ||
|
c910fa2b40 | ||
|
1ce98f09aa | ||
|
68155ef5a6 | ||
|
e5e0a7f76d | ||
|
ea4c12a836 | ||
|
d949a778ef | ||
|
099ac2ddeb | ||
|
b0bc6a38d5 | ||
|
1d1e89a86d | ||
|
517b20859e | ||
|
e27d6f1a70 | ||
|
10557e500d | ||
|
f7e4ea1b5c | ||
|
7838649c81 | ||
|
deaf4c06b8 | ||
|
067d751193 | ||
|
c0658f3a94 | ||
|
e378eec194 | ||
|
01e79d6953 | ||
|
b00ee7f5e5 | ||
|
6e5445a271 | ||
|
388f74eea3 | ||
|
2db3051599 | ||
|
8bb094b61a | ||
|
a4e79cc569 | ||
|
c14887f549 | ||
|
4e225147ea | ||
|
c5e92bdc25 | ||
|
ef59a6a39a | ||
|
42dc3659bd | ||
|
5d1fb4f4d9 | ||
|
185c4ad2bd | ||
|
0b85afc6fd | ||
|
9db0f5cff1 | ||
|
243f94227b | ||
|
330c66a1be | ||
|
ab4927afeb | ||
|
c48dffea69 | ||
|
b3391a67c3 | ||
|
465aa3de5a | ||
|
b32a78b7b3 | ||
|
7bd5c58136 | ||
|
5b21775793 | ||
|
2926a9ae83 | ||
|
246ae7a138 | ||
|
3661a06206 | ||
|
436b9a455a | ||
|
5418b57325 | ||
|
b76bb5730c | ||
|
7c4fc7a700 | ||
|
62dc99e9c6 | ||
|
ccee83f92d | ||
|
0027ef3ec4 | ||
|
32d286cb50 | ||
|
7017b057ea | ||
|
bb3780d31d | ||
|
2954b72765 | ||
|
13f6457fbd | ||
|
29006d1e93 | ||
|
301d0e81a0 | ||
|
4002c01134 | ||
|
64d53e0fe6 | ||
|
d1fb454772 | ||
|
cdcf9c6a96 | ||
|
9d7c80a147 | ||
|
beae915836 | ||
|
a6a199ad50 | ||
|
328faa3a5a | ||
|
cdaa995422 | ||
|
8617c29300 | ||
|
d2e21a38c6 | ||
|
a01573eff8 | ||
|
079b916d46 | ||
|
37275bcbf1 | ||
|
7d521e9f27 | ||
|
a7211c206b | ||
|
862c998542 | ||
|
29fdb576ab | ||
|
271ba3977f | ||
|
a1cbc0687d | ||
|
408fda1fd3 | ||
|
cb50841385 | ||
|
0d91902752 | ||
|
43405d037f | ||
|
4b98ff5846 | ||
|
45cf124566 | ||
|
0f500fab25 | ||
|
26c4364063 | ||
|
0c391693e4 | ||
|
92886f2ee9 | ||
|
991caa2191 | ||
|
f99521a851 | ||
|
49b489f181 | ||
|
424e6a5a26 | ||
|
a2b5e64848 | ||
|
6ae42f8fc0 | ||
|
c2ab1cf80a | ||
|
c7c4c49446 | ||
|
efbfc8fbba | ||
|
6e5bf3a757 | ||
|
4722c14121 | ||
|
d2c4dcc015 | ||
|
972c96ba0f | ||
|
067473669b | ||
|
3b0c2ddc9b | ||
|
9068c3209b | ||
|
4651f0a941 | ||
|
6bef9222eb | ||
|
a97975acec | ||
|
f0e604bd8c | ||
|
48a3eb6d7d | ||
|
0b79b0a71d | ||
|
3b25a7549c | ||
|
50c5c82f36 | ||
|
fff6bc4a41 | ||
|
c9a991698d | ||
|
97f0ea6119 | ||
|
7bf16b467b | ||
|
29c6a08066 | ||
|
00839a8170 | ||
|
646899610d | ||
|
126d31646e | ||
|
4c2ac6db7d | ||
|
6cd3e0c0c2 | ||
|
c6fbb76a39 | ||
|
706a6c2ccd | ||
|
c2f94e35bd | ||
|
8dd1ba923a | ||
|
0d158017e4 | ||
|
2c9fc00ea4 | ||
|
32a27e4f53 | ||
|
0577fcc168 | ||
|
c4dd6b01e6 | ||
|
eae6c13de5 | ||
|
0ca57b20a1 | ||
|
82cb58f472 | ||
|
779d53a051 | ||
|
5a35c948ca | ||
|
42a4805d93 | ||
|
1f18d34e8e | ||
|
3873d2907e | ||
|
86049b91bf | ||
|
8ff7f929e2 | ||
|
1fb478e77a | ||
|
f023ca2878 | ||
|
a891119b84 | ||
|
c84d0d4c87 | ||
|
d268c20c3a | ||
|
5291dc6e97 | ||
|
697ab7c3ec | ||
|
52a6938a66 | ||
|
7edac56eed | ||
|
fa828dede5 |
52
.ci.settings.xml
Normal file
52
.ci.settings.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
|
||||
<servers>
|
||||
<server>
|
||||
<id>alfresco-private-repository</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
<password>${env.MAVEN_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>activiti-private-repository</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
<password>${env.MAVEN_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>alfresco-public-snapshots</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
<password>${env.MAVEN_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>alfresco-public</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
<password>${env.MAVEN_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>alfresco-plugin-public</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
<password>${env.MAVEN_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>alfresco-plugin-public-snapshots</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
<password>${env.MAVEN_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>alfresco-internal-snapshots</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
<password>${env.MAVEN_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>alfresco-internal</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
<password>${env.MAVEN_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>central-releases-staging</id>
|
||||
<username>${env.MAVEN_CENTRAL_USERNAME}</username>
|
||||
<password>${env.MAVEN_CENTRAL_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
185
.github/workflows/ci.yml
vendored
Normal file
185
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,185 @@
|
||||
name: Alfresco SDK CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
- fix/**
|
||||
- feature/**
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- fix/**
|
||||
- feature/**
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
|
||||
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
|
||||
MAVEN_CENTRAL_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
|
||||
MAVEN_CENTRAL_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
|
||||
GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSPHRASE }}
|
||||
GITHUB_ACTIONS_DEPLOY_TIMEOUT: 90
|
||||
|
||||
jobs:
|
||||
pre_commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v8.16.0
|
||||
|
||||
veracode_sca:
|
||||
name: "Veracode - Source Clear Scan (SCA)"
|
||||
runs-on: ubuntu-latest
|
||||
if: >
|
||||
github.ref_name == 'master' ||
|
||||
github.event_name == 'pull_request'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
|
||||
- name: "Clean-up SNAPSHOT artifacts"
|
||||
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/veracode@v8.16.0
|
||||
continue-on-error: true
|
||||
with:
|
||||
srcclr-api-token: ${{ secrets.SRCCLR_API_TOKEN }}
|
||||
|
||||
build:
|
||||
name: "Build application"
|
||||
runs-on: ubuntu-latest
|
||||
needs: [pre_commit]
|
||||
if: "!contains(github.event.head_commit.message, '[skip tests]')"
|
||||
env:
|
||||
MAVEN_CLI_OPTS: >
|
||||
-B -q -e -fae -V -DinstallAtEnd=true -U
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
|
||||
- name: "Build"
|
||||
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||
- name: "Verify"
|
||||
run: mvn $MAVEN_CLI_OPTS verify -Dlogging.root.level=off -Dspring.main.banner-mode=off
|
||||
|
||||
tests:
|
||||
name: ${{ matrix.name }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
if: >
|
||||
!(failure() || cancelled()) &&
|
||||
!contains(github.event.head_commit.message, '[skip tests]')
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: "current version Java 17"
|
||||
java-version: 17
|
||||
- name: "25.1 Enterprise Java 17"
|
||||
java-version: 17
|
||||
suite: -Penterprise-251-tests
|
||||
- name: "25.1 Community Java 17"
|
||||
java-version: 17
|
||||
suite: -Pcommunity-251-tests
|
||||
- name: "23.4 Enterprise Java 17"
|
||||
java-version: 17
|
||||
suite: -Penterprise-234-tests
|
||||
- name: "23.4 Community Java 17"
|
||||
java-version: 17
|
||||
suite: -Pcommunity-234-tests
|
||||
- name: "23.3 Enterprise Java 17"
|
||||
java-version: 17
|
||||
suite: -Penterprise-233-tests
|
||||
- name: "23.3 Community Java 17"
|
||||
java-version: 17
|
||||
suite: -Pcommunity-233-tests
|
||||
- name: "23.2 Enterprise Java 17"
|
||||
java-version: 17
|
||||
suite: -Penterprise-232-tests
|
||||
- name: "23.2 Community Java 17"
|
||||
java-version: 17
|
||||
suite: -Pcommunity-232-tests
|
||||
- name: "23.1 Enterprise Java 17"
|
||||
java-version: 17
|
||||
suite: -Penterprise-231-tests
|
||||
- name: "23.1 Community Java 17"
|
||||
java-version: 17
|
||||
suite: -Pcommunity-231-tests
|
||||
- name: "7.4 Enterprise Java 17"
|
||||
java-version: 17
|
||||
suite: -Penterprise-74-tests
|
||||
- name: "7.4 Community Java 17"
|
||||
java-version: 17
|
||||
suite: -Pcommunity-74-tests
|
||||
- name: "7.4 Enterprise Java 11"
|
||||
java-version: 11
|
||||
suite: -Penterprise-74-tests
|
||||
- name: "7.4 Community Java 11"
|
||||
java-version: 11
|
||||
suite: -Pcommunity-74-tests
|
||||
- name: "7.3 Enterprise Java 17"
|
||||
java-version: 17
|
||||
suite: -Penterprise-73-tests
|
||||
- name: "7.3 Community Java 17"
|
||||
java-version: 17
|
||||
suite: -Pcommunity-73-tests
|
||||
- name: "7.3 Enterprise Java 11"
|
||||
java-version: 11
|
||||
suite: -Penterprise-73-tests
|
||||
- name: "7.3 Community Java 11"
|
||||
java-version: 11
|
||||
suite: -Pcommunity-73-tests
|
||||
- name: "7.2 Enterprise"
|
||||
java-version: 11
|
||||
suite: -Penterprise-72-tests
|
||||
- name: "7.2 Community"
|
||||
java-version: 11
|
||||
suite: -Pcommunity-72-tests
|
||||
- name: "7.1 Enterprise"
|
||||
java-version: 11
|
||||
suite: -Penterprise-71-tests
|
||||
- name: "7.1 Community"
|
||||
java-version: 11
|
||||
suite: -Pcommunity-71-tests
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
|
||||
with:
|
||||
java-version: ${{ matrix.java-version }}
|
||||
- name: "Login to Docker Hub"
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: "Login to Quay.io"
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: quay.io
|
||||
username: ${{ secrets.QUAY_USERNAME }}
|
||||
password: ${{ secrets.QUAY_PASSWORD }}
|
||||
- name: "Build"
|
||||
run: mvn clean install -B ${{ matrix.suite }}
|
||||
|
||||
publish:
|
||||
name: "Publish artifacts"
|
||||
runs-on: ubuntu-latest
|
||||
needs: [tests]
|
||||
if: >
|
||||
contains(github.event.head_commit.message, '[publish]')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
|
||||
- name: "Build"
|
||||
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||
- name: Import GPG key
|
||||
env:
|
||||
GPG_TTY: $(tty)
|
||||
run: |
|
||||
echo "${{ secrets.GPG_SIGNING_PRIVATE_KEY }}" | gpg --batch --import
|
||||
echo "use-agent" >> ~/.gnupg/gpg.conf
|
||||
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
|
||||
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
|
||||
gpg --batch --yes --pinentry-mode loopback --passphrase $GPG_SIGNING_PASSPHRASE --list-keys
|
||||
- name: "Publish"
|
||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||
run: mvn --batch-mode clean deploy -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE
|
10
.pre-commit-config.yaml
Normal file
10
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
default_language_version:
|
||||
# force all unspecified python hooks to run python3
|
||||
python: python3
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.4.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
args: [--allow-multiple-documents]
|
137
README.md
137
README.md
@@ -1,13 +1,32 @@
|
||||
# [](#features) Alfresco SDK
|
||||
|
||||
This is the home of the Alfresco SDK. The Alfresco SDK is used by developers to build extensions for the Alfresco Digital Business Platform. It is based on [Apache Maven](http://maven.apache.org/), compatible with major IDEs and enables Rapid Application Development (RAD) and Test Driven Development (TDD).
|
||||
|
||||
[](https://github.com/Alfresco/alfresco-sdk/actions/workflows/ci.yml)
|
||||
[](https://github.com/pre-commit/pre-commit)
|
||||

|
||||
|
||||
This is the home of the Alfresco SDK. The Alfresco SDK is used by developers to build extensions for the Alfresco Digital Business Platform. It is based on
|
||||
[Apache Maven](http://maven.apache.org/), compatible with major IDEs and enables [Rapid Application Development (RAD)](https://en.wikipedia.org/wiki/Rapid_application_development)
|
||||
and [Test Driven Development (TDD)](https://en.wikipedia.org/wiki/Test-driven_development).
|
||||
|
||||
## License
|
||||
This project is released under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) license.
|
||||
This project is released under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) license.
|
||||
If you are an Enterprise customer check the [Support](#alfresco-enterprise-customers-and-partners-support) section.
|
||||
|
||||
## News
|
||||
|
||||
- 2025-03: Alfresco SDK 4.11.0 released
|
||||
- 2024-11: Alfresco SDK 4.10.0 released
|
||||
- 2024-08: Alfresco SDK 4.9.0 released
|
||||
- 2024-03: Alfresco SDK 4.8.0 released
|
||||
- 2023-11: Alfresco SDK 4.7.0 released
|
||||
- 2023-06: Alfresco SDK 4.6.0 released
|
||||
- 2022-10: Alfresco SDK 4.5.0 released
|
||||
- 2022-03: Alfresco SDK 4.4.0 released
|
||||
- 2021-10: Alfresco SDK 4.3.0 released
|
||||
- 2021-02: Alfresco SDK 4.2.0 released
|
||||
- 2019-10: Alfresco SDK 4.1.0 released
|
||||
- 2019-03: Alfresco SDK 4.0.0 released
|
||||
- 2019-03: Alfresco SDK 3.1.0 released
|
||||
- 2017-06-23: Alfresco SDK 3.0.1 released, [containing a critical bugfix](https://github.com/Alfresco/alfresco-sdk/issues/461)
|
||||
- 2017-04-01: Alfresco SDK 3.0.0 released
|
||||
- 2017-03-27: After years of hard work, countless iterations and gathering feedback, SDK 3.0 has finally been merged into the master branch, ready for release in the coming days
|
||||
@@ -20,34 +39,102 @@ If you are an Enterprise customer check the [Support](#alfresco-enterprise-custo
|
||||
|
||||
## User Getting Started
|
||||
|
||||
### Important Notice about ACS 7.2
|
||||
|
||||
Please refer to https://github.com/Alfresco/alfresco-sdk/issues/635 to fix the Search Services 403 problem.
|
||||
|
||||
### Important Notice about ACS 7.1
|
||||
|
||||
#### Share Version Number
|
||||
|
||||
Since ACS 7.1, Share build pipeline has been refactored, and you now have to specify the internal
|
||||
Share version number, in addition to the version of the image, because they are not the same anymore.
|
||||
|
||||
This number can be located in the main pom.xml of the project used to build Share, hence:
|
||||
|
||||
- property `<alfresco-community-share.version>` of [acs-community-packaging](https://github.com/Alfresco/acs-community-packaging/blob/7.1.0/pom.xml#L17) (Community)
|
||||
- property `<alfresco-enterprise-share.version>`of [acs-packaging](https://github.com/Alfresco/acs-packaging/blob/7.1.0.1/pom.xml#L18) (Enterprise)
|
||||
|
||||
So, if for example you want to use the community version of `7.1.0.1`, you can go on acs-community-packaging,
|
||||
open the `7.1.0.1` release tag, browse its files, open the pom.xml in the root,
|
||||
then copy the value of `<alfresco-community-share.version>`.
|
||||
|
||||
You'll then need to paste this value inside the SDK property `<alfresco.share.version>`.
|
||||
|
||||
#### Alternate Docker User
|
||||
|
||||
- ACS 6 used to run everything as `root`.
|
||||
- ACS 7 introduced an `alfresco` user, that should've been used after the `root` user completed its configurations in the Dockerfile.
|
||||
|
||||
Due to a bug, this wasn't working in earlier SDKs, and has been fixed in SDK 4.3.
|
||||
|
||||
In order to be retro-compatible with ACS 6, however, the user is specified in the SDK property `<alfresco.platform.docker.user>`.
|
||||
|
||||
Hence, its values (already in place) are `root` for ACS 6, and `alfresco` for ACS 7+.
|
||||
|
||||
#### Log file location
|
||||
|
||||
To prevent writing permission problems when logging with the non-root user,
|
||||
the `alfresco.log` file has also been moved to a more appropriate location (Tomcat logs instead of Tomcat root).
|
||||
|
||||
### Important Notice about Version Numbers
|
||||
|
||||
In Q4 2020, Alfresco Platform has undergone a major structural refactoring.
|
||||
|
||||
Depending on the Platform version desired, you might need to use SDK 4.1, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9 or SDK 4.10 instead of SDK 4.11.0.
|
||||
|
||||
- For Enterprise and Community versions of 7.x, SDK 4.4 or higher must be used
|
||||
- For Enterprise versions of 6.0.x, 6.1.x, 6.2.x newer than November 2020, SDK 4.3 must be used
|
||||
- For Enterprise and Community versions of 6.0.x, 6.1.x, 6.2.x older than November 2020, SDK 4.1 must be used
|
||||
|
||||
It's also important to remember that:
|
||||
|
||||
- Community Platform versions are built by [acs-community-packaging](https://github.com/Alfresco/acs-community-packaging)
|
||||
- Community Docker images are published on [Docker Hub](https://hub.docker.com/r/alfresco/alfresco-content-repository-community/tags?page=1&ordering=last_updated)
|
||||
- Enterprise Platform versions are built by [acs-packaging](https://github.com/Alfresco/acs-packaging)
|
||||
- Enterprise Docker images are published on *Quay.io*
|
||||
|
||||
### Latest Documentation
|
||||
To get started with **Alfresco SDK 3.0.x** (latest) visit the [Alfresco Documentation](https://docs.alfresco.com/5.2/concepts/sdk-intro.html)
|
||||
To get started with **Alfresco SDK 4.9.x** (latest) visit the [Alfresco Documentation](docs/README.md).
|
||||
|
||||
#### Documentation about Previous Versions
|
||||
| SDK Version | Alfresco Enterprise Version | Alfresco Community Version | Documentation |
|
||||
| ------------- |:-------------:| :-----:|:-----|
|
||||
| SDK 2.2 | Alfresco 5.1.x | Alfresco 5.1.x | https://docs.alfresco.com/5.1/concepts/alfresco-sdk-intro.html |
|
||||
| SDK 2.1 | Alfresco 5.0.1 | Alfresco 5.0.d | https://docs.alfresco.com/sdk2.1/concepts/alfresco-sdk-intro.html |
|
||||
| SDK 2.0 | Alfresco 5.0.0 | Alfresco 5.0.c | https://docs.alfresco.com/sdk2.0/concepts/alfresco-sdk-intro.html |
|
||||
| SDK 1.1.1 | Alfresco 4.2.x | Alfresco 4.2.x | https://docs.alfresco.com/4.2/concepts/dev-extensions-maven-sdk-intro.html |
|
||||
|
||||
|
||||
| SDK Version | Alfresco Enterprise Version | Alfresco Community Version | Documentation |
|
||||
|---------------|:------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| SDK 4.11.0 | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.1.x/ 23.2.x / 23.3.x / 23.4.x / 25.1.x | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.2.x / 23.3.x / 23.4.x / 25.1.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.10 | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.1.x/ 23.2.x / 23.3.x / 23.4.x | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.2.x / 23.3.x / 23.4.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.9 | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.1.x/ 23.2.x / 23.3.x | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.2.x / 23.3.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.8 | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.1.x/ 23.2.x | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.2.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.7 | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.1.x | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x / 23.1.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.6 | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x / 7.4.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.5 | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x | Alfresco 7.0.x / 7.1.x / 7.2.x / 7.3.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.4 | Alfresco 7.0.x / 7.1.x / 7.2.x | Alfresco 7.0.x / 7.1.x / 7.2.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.3 | Alfresco 6.0.x / 6.1.x / 6.2.x / 7.0.x / 7.1.x | Alfresco 7.0.x / 7.1.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.2 | Alfresco 6.0.x / 6.1.x / 6.2.x / 7.0.x | Alfresco 7.0.x | https://github.com/Alfresco/alfresco-sdk/tree/master/docs/README.md |
|
||||
| SDK 4.1 | Alfresco 6.0.x / 6.1.x / 6.2.x | Alfresco 6.0.x / 6.1.x / 6.2.x | https://github.com/Alfresco/alfresco-sdk/blob/sdk-4.1/docs/README.md |
|
||||
| SDK 4.0 | Alfresco 6.0.x / 6.1.x | Alfresco 6.0.x / 6.1.x | https://github.com/Alfresco/alfresco-sdk/blob/sdk-4.0/docs/README.md |
|
||||
| SDK 3.1 | Alfresco 5.2.x | Alfresco 5.2.x | http://docs.alfresco.com/5.2/concepts/sdk-intro.html |
|
||||
| SDK 3.0 | Alfresco 5.2.x | Alfresco 5.2.x | http://docs.alfresco.com/5.2/concepts/sdk-intro.html |
|
||||
| SDK 2.2 | Alfresco 5.1.x | Alfresco 5.1.x | https://docs.alfresco.com/5.1/concepts/alfresco-sdk-intro.html |
|
||||
| SDK 2.1 | Alfresco 5.0.1 | Alfresco 5.0.d | https://docs.alfresco.com/sdk2.1/concepts/alfresco-sdk-intro.html |
|
||||
| SDK 2.0 | Alfresco 5.0.0 | Alfresco 5.0.c | https://docs.alfresco.com/sdk2.0/concepts/alfresco-sdk-intro.html |
|
||||
| SDK 1.1.1 | Alfresco 4.2.x | Alfresco 4.2.x | https://docs.alfresco.com/4.2/concepts/dev-extensions-maven-sdk-intro.html |
|
||||
|
||||
## Reporting Issues and Community Support
|
||||
Report issues (and contribute!) [here](https://github.com/Alfresco/alfresco-sdk/issues?milestone=1&state=open) or join us on the [IRC Channel](http://chat.alfresco.com/).
|
||||
|
||||
## Alfresco Enterprise Customers and Partners Support
|
||||
If you are an Alfresco Customer
|
||||
please check the [SDK Support status](http://www.alfresco.com/services/subscription/technical-support/product-support-status)
|
||||
If you are an Alfresco Customer
|
||||
please check the [SDK Support status](http://www.alfresco.com/services/subscription/technical-support/product-support-status)
|
||||
for the version you are using. If your version is in Limited or Full Support and you need help, visit the [Support Portal](http://support.alfresco.com).
|
||||
|
||||
## Maven repositories
|
||||
- As of version 2.0-beta-1, The Alfresco SDK is released in [Maven Central](http://search.maven.org/#search|ga|1|alfresco-sdk). Previous versions are available in the [Alfresco Artifacts Repository](https://artifacts.alfresco.com/).
|
||||
- As of version 2.0-beta-1, The Alfresco SDK is released in [Maven Central](http://search.maven.org/#search|ga|1|alfresco-sdk). Previous versions are available
|
||||
in the [Alfresco Artifacts Repository](https://artifacts.alfresco.com/).
|
||||
- Alfresco (Community and Enterprise) artifacts are hosted in the [Alfresco Artifacts Repository](https://artifacts.alfresco.com/).
|
||||
- Alfresco Community artifacts (JARs, WARs, AMPs, poms) and SDK artifacts are publicly available.
|
||||
|
||||
*NOTE:* By default the Alfresco SDK will use Community Edition releases but it can be configured to use Enterprise Edition releases. Enterprise and Premier customers can use the SDK with
|
||||
Enterprise Edition releases by following the process described in [Working with Enterprise](https://docs.alfresco.com/5.2/concepts/sdk-using-enterprise.html)
|
||||
*NOTE:* By default the Alfresco SDK will use Community Edition releases but it can be configured to use Enterprise Edition releases. Enterprise and Premier
|
||||
customers can use the SDK with Enterprise Edition releases by following the process described in [Working with Enterprise](docs/advanced-topics/working-with-enterprise/README.md).
|
||||
|
||||
### Alfresco Artifacts Repository
|
||||
|
||||
@@ -71,6 +158,22 @@ To test new unreleased (unsupported) features, you can use the following snippet
|
||||
</repository>
|
||||
```
|
||||
|
||||
## Docker registries
|
||||
- Alfresco Community Docker images are publicly available at the [Alfresco's Docker Hub profile](https://hub.docker.com/u/alfresco/).
|
||||
- Alfresco Enterprise Docker images are hosted at [Quay.io](https://quay.io/). Its configuration process is described in detail in [How to configure private Alfresco Docker registry](docs/advanced-topics/working-with-enterprise/enterprise-docker-registry.md).
|
||||
|
||||
## For Developers that want to contribute to the SDK
|
||||
See the [Developers Wiki page](https://github.com/Alfresco/alfresco-sdk/wiki/Developer-Wiki).
|
||||
|
||||
## Publishing the release on Maven Central
|
||||
- Manually change the version from SNAPSHOT to final (eg. when releasing SDK 4.11.0, replacing all the occurrences of 4.11.0-SNAPSHOT with 4.11.0)
|
||||
|
||||
- Commit and push changes to GitHub with the commit message [publish], then it will automatically publish your artifacts to maven central
|
||||
|
||||
At this point, we need to manually proceed with the remaining steps:
|
||||
|
||||
1- Manually create a release tag on GitHub
|
||||
|
||||
2- Manually change the version from final to next SNAPSHOT (eg. replacing all the occurrences of 4.11.0 with 4.12.0-SNAPSHOT (in pom.xml, not in READMEs - if not needed)
|
||||
|
||||
3- Commit and push on GitHub
|
||||
|
1
archetypes/activiti-jar-archetype/.gitignore
vendored
1
archetypes/activiti-jar-archetype/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
*.DS_Store
|
@@ -1,61 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.alfresco.maven.archetype</groupId>
|
||||
<artifactId>activiti-jar-archetype</artifactId>
|
||||
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>DEPRECATED - UNSUPPORTED - EXPERIMENTAL: Alfresco SDK - Activiti JAR Archetype</name>
|
||||
<description>DEPRECATED - UNSUPPORTED - EXPERIMENTAL</description>
|
||||
|
||||
<parent>
|
||||
<groupId>org.alfresco.maven</groupId>
|
||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>archetype-resources/pom.xml</include>
|
||||
<include>archetype-resources/run.sh</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>
|
||||
</includes>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<excludes>
|
||||
<exclude>archetype-resources/pom.xml</exclude>
|
||||
<exclude>archetype-resources/run.sh</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>
|
||||
</excludes>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<configuration>
|
||||
<useDefaultDelimiters>false</useDefaultDelimiters>
|
||||
<delimiters>
|
||||
<delimiter>@@</delimiter>
|
||||
</delimiters>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
@@ -1,68 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archetype-descriptor
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
|
||||
name="Activiti JAR Archetype"
|
||||
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<requiredProperties>
|
||||
<requiredProperty key="version">
|
||||
<defaultValue>1.0-SNAPSHOT</defaultValue>
|
||||
</requiredProperty>
|
||||
</requiredProperties>
|
||||
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8" filtered="true">
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/bpmn-models/**</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8" filtered="false">
|
||||
<directory>src/main/resources</directory>
|
||||
<excludes>
|
||||
<exclude>**/bpmn-models/**</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8" filtered="true">
|
||||
<directory>src/test/resources</directory>
|
||||
<includes>
|
||||
<include>log4j-dev.properties</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8" filtered="false">
|
||||
<directory>src/test/resources</directory>
|
||||
<excludes>
|
||||
<exclude>log4j-dev.properties</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8" filtered="false">
|
||||
<directory>src/test/license</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8">
|
||||
<directory></directory>
|
||||
<includes>
|
||||
<include>debug.sh</include>
|
||||
<include>debug.bat</include>
|
||||
<include>run.sh</include>
|
||||
<include>run.bat</include>
|
||||
<include>README.md</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</archetype-descriptor>
|
||||
R
|
@@ -1,21 +0,0 @@
|
||||
# Alfresco Activiti JAR Module - SDK 3
|
||||
|
||||
To run use `mvn clean install alfresco:run` or `./run.sh` and verify that it
|
||||
|
||||
* Runs the embedded Tomcat + H2 DB
|
||||
* Runs Activiti Explorer
|
||||
* Optionally runs Activiti REST
|
||||
* Packages both a JAR with customization
|
||||
|
||||
# Few things to notice
|
||||
|
||||
* No parent pom
|
||||
* WAR assembly is handled by the Alfresco Maven Plugin configuration
|
||||
* Standard JAR packaging and layout
|
||||
* Works seamlessly with Eclipse and IntelliJ IDEA
|
||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so`
|
||||
* [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin`
|
||||
* No unit testing/functional tests just yet
|
||||
|
||||
|
||||
|
@@ -1,9 +0,0 @@
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
:: Dev environment startup script for Alfresco Community ::
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
@echo off
|
||||
|
||||
set MAVEN_OPTS=-Xms1G -Xmx2G
|
||||
|
||||
mvnDebug clean install alfresco:run
|
||||
|
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
MAVEN_OPTS="-Xms1G -Xmx2G" mvnDebug clean install alfresco:run
|
@@ -1,300 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<version>${version}</version>
|
||||
<name>DEPRECATED - UNSUPPORTED - EXPERIMENTAL ${artifactId} Activiti Jar Module - SDK 3</name>
|
||||
<description>DEPRECATED - UNSUPPORTED - EXPERIMENTAL Activiti JAR Module that produces a JAR file with Java extensions such as service task delegates. It also produces an application ZIP with workflow definition, forms etc that can be deployed via /activiti-app - SDK 3</description>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<!-- DEPRECATION NOTICE -->
|
||||
<!-- This archetype has been deprecated in SDK 3.1 and will be removed or replaced in SDK 4.0 -->
|
||||
<!-- This archetype was introduced as experimental support for Activiti 1.5 Enterprise. -->
|
||||
<!-- The archetype and Activiti/APS features present in the SDK is NOT supported, use at your own risk -->
|
||||
|
||||
<properties>
|
||||
<!-- Alfresco Maven Plugin version to use -->
|
||||
<alfresco.sdk.version>@@alfresco.sdk.parent.version@@</alfresco.sdk.version>
|
||||
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
<!-- Base directory for all RDBMS data and Content data -->
|
||||
<activiti.datadir>${project.basedir}/activiti_data_dev</activiti.datadir>
|
||||
|
||||
<!-- Properties used in dependency declarations, you don't usually need to change these -->
|
||||
<activiti.groupId>com.activiti</activiti.groupId>
|
||||
<activiti.app.war.artifactId>activiti-app</activiti.app.war.artifactId> <!--This contains the Alfresco Activiti webapp, including the workflow engine. This webapp is also the user interface for people involved in the task and processes running in the Activiti engine. You also use this webapp to create and manage process definitions, and to display and define analytics reports on users' tasks and processes. -->
|
||||
<activiti.admin.war.artifactId>activiti-admin</activiti.admin.war.artifactId> <!-- This contains the Alfresco Activiti Administrator webapp. You use this to administer and monitor your Alfresco Activiti engines.-->
|
||||
|
||||
<!-- The version of the Alfresco Activiti Enterprise Workflow Engine that the customization will run in -->
|
||||
<activiti.version>1.5.3</activiti.version>
|
||||
|
||||
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
|
||||
<jrebel.version>1.1.6</jrebel.version>
|
||||
|
||||
<!-- Compile with Java 7, default is 5 -->
|
||||
<maven.compiler.source>1.7</maven.compiler.source>
|
||||
<maven.compiler.target>1.7</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<!-- The main Activiti Enterprise application dependency that brings in all
|
||||
needed classes to compile your customizations -->
|
||||
<dependency>
|
||||
<groupId>${activiti.groupId}</groupId>
|
||||
<artifactId>activiti-app-logic</artifactId>
|
||||
<version>${activiti.version}</version>
|
||||
<exclusions>
|
||||
<!-- Exclude the SLF4J JAR so we don't get multiple binding warnings when running -->
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<!-- Testing -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Logging, maybe needed for testing....
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
<version>1.7.5</version>
|
||||
</dependency>
|
||||
-->
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- Create the BAR with project process definitions, forms etc -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>create-app-zip</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<zip destfile="${project.build.directory}/${project.artifactId}-app-${project.version}.zip">
|
||||
<fileset dir="src/main/resources/apps/helloworld">
|
||||
<include name="**"/>
|
||||
</fileset>
|
||||
</zip>
|
||||
</tasks>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</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 need the flat file H2 database to run Activiti -->
|
||||
<enableH2>true</enableH2>
|
||||
|
||||
<!-- Bring in the Activiti Workflow Engine and Management webapp (i.e. activiti-app.war) -->
|
||||
<enableActivitiApp>true</enableActivitiApp>
|
||||
|
||||
<!-- Optionally bring in the Activiti Admin App (i.e. activiti-admin.war) -->
|
||||
<enableActivitiAdmin>false</enableActivitiAdmin>
|
||||
|
||||
<!-- Disable all Alfresco ECM apps by default -->
|
||||
<alfrescoEdition>community</alfrescoEdition>
|
||||
<enablePlatform>false</enablePlatform>
|
||||
<enableSolr>false</enableSolr>
|
||||
<enableShare>false</enableShare>
|
||||
|
||||
<!--
|
||||
JARs that should be overlayed/applied to the Activiti App WAR
|
||||
(i.e. activiti-app.war)
|
||||
-->
|
||||
<activitiModules>
|
||||
<!-- 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>
|
||||
</activitiModules>
|
||||
</configuration>
|
||||
</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>
|
||||
<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>
|
||||
</plugins>
|
||||
|
||||
<resources>
|
||||
<!-- Filter the resource files in this project and do property substitutions -->
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
<!-- The Project JAR Should not contain any process definition stuff,
|
||||
it cannot be deployed via JAR in Activiti Enterprise -->
|
||||
<excludes>
|
||||
<exclude>apps/**</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<!-- Filter the test resource files in this project and do property substitutions -->
|
||||
<testResource>
|
||||
<directory>src/test/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</testResource>
|
||||
<!-- Copy over the Activiti license to the classpath -->
|
||||
<testResource>
|
||||
<directory>src/test/license</directory>
|
||||
<filtering>false</filtering>
|
||||
</testResource>
|
||||
</testResources>
|
||||
</build>
|
||||
|
||||
<!--
|
||||
Alfresco Maven Repositories
|
||||
-->
|
||||
<repositories>
|
||||
<!-- Alfresco ECM -->
|
||||
<repository>
|
||||
<id>alfresco-public</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>alfresco-public-snapshots</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
</snapshots>
|
||||
</repository>
|
||||
<!-- Alfresco Enterprise Edition Artifacts, put username/pwd for server in settings.xml -->
|
||||
<repository>
|
||||
<id>alfresco-private-repository</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
|
||||
</repository>
|
||||
|
||||
<!-- Activiti BPM -->
|
||||
<repository>
|
||||
<id>activiti-public</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/repositories/activiti-releases/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>activiti-public-snapshots</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
</snapshots>
|
||||
</repository>
|
||||
<!-- Activiti Enterprise Edition Artifacts, put username/pwd for server in settings.xml -->
|
||||
<repository>
|
||||
<id>activiti-private-repository</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/repositories/activiti-enterprise-releases</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>alfresco-plugin-public</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
|
||||
</pluginRepository>
|
||||
<pluginRepository>
|
||||
<id>alfresco-plugin-public-snapshots</id>
|
||||
<url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>daily</updatePolicy>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
</project>
|
@@ -1,8 +0,0 @@
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
:: Dev environment startup script for Alfresco Community ::
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
@echo off
|
||||
|
||||
set MAVEN_OPTS=-Xms1G -Xmx2G
|
||||
|
||||
mvn clean install alfresco:run
|
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
MAVEN_OPTS="-Xms1G -Xmx2G" mvn clean install alfresco:run
|
@@ -1,38 +0,0 @@
|
||||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
package ${package}.tasks.service;
|
||||
|
||||
import org.activiti.engine.delegate.DelegateExecution;
|
||||
import org.activiti.engine.delegate.JavaDelegate;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* A sample service task Java implementation
|
||||
*
|
||||
* @author martin.bergljung@alfresco.com
|
||||
*/
|
||||
public class HelloWorldServiceTask implements JavaDelegate {
|
||||
private static Logger logger = LoggerFactory.getLogger(HelloWorldServiceTask.class);
|
||||
|
||||
public void execute(DelegateExecution execution) throws Exception {
|
||||
logger.debug("Hello World from the Java Service Task!");
|
||||
}
|
||||
}
|
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"id": 2005,
|
||||
"name": "Hello World",
|
||||
"version": 1,
|
||||
"modelType": 0,
|
||||
"description": "The Hello World business process that is part of the Alfresco SDK 3.0 Activiti JAR Module Maven archetype",
|
||||
"stencilSetId": 0,
|
||||
"createdByFullName": " Administrator",
|
||||
"createdBy": 1,
|
||||
"lastUpdatedByFullName": " Administrator",
|
||||
"lastUpdatedBy": 1,
|
||||
"lastUpdated": "2016-09-29T12:38:13.716+0000"
|
||||
}
|
||||
],
|
||||
"theme": "theme-1",
|
||||
"icon": "glyphicon-cog",
|
||||
"publishIdentityInfo": []
|
||||
}
|
@@ -1,141 +0,0 @@
|
||||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn"
|
||||
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
|
||||
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
|
||||
typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
|
||||
targetNamespace="http://www.activiti.org/processdef" xmlns:modeler="http://activiti.com/modeler"
|
||||
modeler:version="1.0en" modeler:exportDateTime="20160930093425488" modeler:modelId="2005"
|
||||
modeler:modelVersion="11" modeler:modelLastUpdated="1475224420676">
|
||||
<process id="HelloWorld" name="Hello World" isExecutable="true">
|
||||
<documentation>The Hello World business process that is part of the Alfresco SDK 3.0 Activiti JAR Module Maven
|
||||
archetype
|
||||
</documentation>
|
||||
|
||||
<startEvent id="startHelloWorld" activiti:formKey="2006">
|
||||
<extensionElements>
|
||||
<modeler:form-reference-id><![CDATA[2006]]></modeler:form-reference-id>
|
||||
<modeler:form-reference-name><![CDATA[Hello World Start]]></modeler:form-reference-name>
|
||||
<modeler:editor-resource-id><![CDATA[startEvent1]]></modeler:editor-resource-id>
|
||||
</extensionElements>
|
||||
</startEvent>
|
||||
|
||||
<sequenceFlow id="sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA" sourceRef="startHelloWorld"
|
||||
targetRef="decideGreeting">
|
||||
<extensionElements>
|
||||
<modeler:editor-resource-id>
|
||||
<![CDATA[sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA]]></modeler:editor-resource-id>
|
||||
</extensionElements>
|
||||
</sequenceFlow>
|
||||
|
||||
<serviceTask id="decideGreeting" name="Decide greeting"
|
||||
activiti:delegateExpression="${activiti_executeDecisionDelegate}">
|
||||
<extensionElements>
|
||||
<activiti:field name="decisionTableReferenceKey">
|
||||
<activiti:string><![CDATA[DecideWhatGreeting]]></activiti:string>
|
||||
</activiti:field>
|
||||
<modeler:decisiontable-reference modeler:decisiontablereferenceid="2007"
|
||||
modeler:decisiontablereferencename="Decide What Greeting"/>
|
||||
<modeler:editor-resource-id>
|
||||
<![CDATA[sid-B4E2D526-60B7-47B9-856C-FC824DA15708]]></modeler:editor-resource-id>
|
||||
</extensionElements>
|
||||
</serviceTask>
|
||||
|
||||
<sequenceFlow id="sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD" sourceRef="decideGreeting"
|
||||
targetRef="printGreetingFromJava">
|
||||
<extensionElements>
|
||||
<modeler:editor-resource-id>
|
||||
<![CDATA[sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD]]></modeler:editor-resource-id>
|
||||
</extensionElements>
|
||||
</sequenceFlow>
|
||||
|
||||
<serviceTask id="printGreetingFromJava" name="Print Greeting From Java"
|
||||
activiti:class="${package}.tasks.service.HelloWorldServiceTask">
|
||||
<extensionElements>
|
||||
<modeler:editor-resource-id>
|
||||
<![CDATA[sid-61E86F19-FC5F-4814-B9AB-2394B03171D6]]></modeler:editor-resource-id>
|
||||
</extensionElements>
|
||||
</serviceTask>
|
||||
|
||||
<sequenceFlow id="sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810" sourceRef="printGreetingFromJava"
|
||||
targetRef="sid-68AE120D-AB55-4ED2-AFD5-845139236AD3">
|
||||
<extensionElements>
|
||||
<modeler:editor-resource-id>
|
||||
<![CDATA[sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810]]></modeler:editor-resource-id>
|
||||
</extensionElements>
|
||||
</sequenceFlow>
|
||||
|
||||
<scriptTask id="sid-68AE120D-AB55-4ED2-AFD5-845139236AD3" name="Print Greeting from JS"
|
||||
scriptFormat="JavaScript" activiti:autoStoreVariables="false">
|
||||
<extensionElements>
|
||||
<modeler:editor-resource-id>
|
||||
<![CDATA[sid-68AE120D-AB55-4ED2-AFD5-845139236AD3]]></modeler:editor-resource-id>
|
||||
</extensionElements>
|
||||
<script><![CDATA[print("Hello World from JavaScript task:");
|
||||
var userId = initiator;
|
||||
print(dayGreeting + " " + userInfoBean.getUser(userId).getFullName());
|
||||
print("You entered '" + greeting + "' as a greeting text.");
|
||||
]]></script>
|
||||
</scriptTask>
|
||||
|
||||
<sequenceFlow id="sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F" sourceRef="sid-68AE120D-AB55-4ED2-AFD5-845139236AD3"
|
||||
targetRef="endHelloWorld">
|
||||
<extensionElements>
|
||||
<modeler:editor-resource-id>
|
||||
<![CDATA[sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F]]></modeler:editor-resource-id>
|
||||
</extensionElements>
|
||||
</sequenceFlow>
|
||||
|
||||
<endEvent id="endHelloWorld">
|
||||
<extensionElements>
|
||||
<modeler:editor-resource-id>
|
||||
<![CDATA[sid-9F0B5A13-7D1F-4ADF-8A08-7B9F0D851DA6]]></modeler:editor-resource-id>
|
||||
</extensionElements>
|
||||
<terminateEventDefinition/>
|
||||
</endEvent>
|
||||
</process>
|
||||
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_HelloWorld">
|
||||
<bpmndi:BPMNPlane bpmnElement="HelloWorld" id="BPMNPlane_HelloWorld">
|
||||
<bpmndi:BPMNShape bpmnElement="startHelloWorld" id="BPMNShape_startHelloWorld">
|
||||
<omgdc:Bounds height="30.0" width="30.0" x="90.0" y="190.0"/>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape bpmnElement="decideGreeting" id="BPMNShape_decideGreeting">
|
||||
<omgdc:Bounds height="80.0" width="100.0" x="210.0" y="165.0"/>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape bpmnElement="sid-68AE120D-AB55-4ED2-AFD5-845139236AD3"
|
||||
id="BPMNShape_sid-68AE120D-AB55-4ED2-AFD5-845139236AD3">
|
||||
<omgdc:Bounds height="80.0" width="100.0" x="675.0" y="165.0"/>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape bpmnElement="endHelloWorld" id="BPMNShape_endHelloWorld">
|
||||
<omgdc:Bounds height="28.0" width="28.0" x="915.0" y="191.0"/>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape bpmnElement="printGreetingFromJava" id="BPMNShape_printGreetingFromJava">
|
||||
<omgdc:Bounds height="80.0" width="100.0" x="443.0" y="165.0"/>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge bpmnElement="sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810"
|
||||
id="BPMNEdge_sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810">
|
||||
<omgdi:waypoint x="543.0" y="205.0"/>
|
||||
<omgdi:waypoint x="675.0" y="205.0"/>
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge bpmnElement="sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA"
|
||||
id="BPMNEdge_sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA">
|
||||
<omgdi:waypoint x="120.0" y="205.0"/>
|
||||
<omgdi:waypoint x="210.0" y="205.0"/>
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge bpmnElement="sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD"
|
||||
id="BPMNEdge_sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD">
|
||||
<omgdi:waypoint x="310.0" y="205.0"/>
|
||||
<omgdi:waypoint x="443.0" y="205.0"/>
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge bpmnElement="sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F"
|
||||
id="BPMNEdge_sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F">
|
||||
<omgdi:waypoint x="775.0" y="205.0"/>
|
||||
<omgdi:waypoint x="915.0" y="205.0"/>
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</definitions>
|
@@ -1,403 +0,0 @@
|
||||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
{
|
||||
"resourceId": 2005,
|
||||
"properties": {
|
||||
"process_id": "HelloWorld",
|
||||
"name": "Hello World",
|
||||
"documentation": "The Hello World business process that is part of the Alfresco SDK 3.0 Activiti JAR Module Maven archetype",
|
||||
"process_author": "",
|
||||
"process_version": "",
|
||||
"process_namespace": "http://www.activiti.org/processdef",
|
||||
"executionlisteners": "",
|
||||
"eventlisteners": "",
|
||||
"signaldefinitions": "",
|
||||
"messagedefinitions": "",
|
||||
"executionvariables": "",
|
||||
"metadata": ""
|
||||
},
|
||||
"stencil": {
|
||||
"id": "BPMNDiagram"
|
||||
},
|
||||
"childShapes": [
|
||||
{
|
||||
"resourceId": "startEvent1",
|
||||
"properties": {
|
||||
"overrideid": "startHelloWorld",
|
||||
"name": "",
|
||||
"documentation": "",
|
||||
"executionlisteners": "",
|
||||
"initiator": "",
|
||||
"formkeydefinition": "",
|
||||
"formreference": {
|
||||
"id": 2006,
|
||||
"name": "Hello World Start",
|
||||
"referenceId": 2005,
|
||||
"variablesmapping": []
|
||||
},
|
||||
"fieldstovariables": "",
|
||||
"formproperties": ""
|
||||
},
|
||||
"stencil": {
|
||||
"id": "StartNoneEvent"
|
||||
},
|
||||
"childShapes": [],
|
||||
"outgoing": [
|
||||
{
|
||||
"resourceId": "sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 120,
|
||||
"y": 220
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 90,
|
||||
"y": 190
|
||||
}
|
||||
},
|
||||
"dockers": []
|
||||
},
|
||||
{
|
||||
"resourceId": "sid-B4E2D526-60B7-47B9-856C-FC824DA15708",
|
||||
"properties": {
|
||||
"overrideid": "decideGreeting",
|
||||
"name": "Decide greeting",
|
||||
"documentation": "",
|
||||
"asynchronousdefinition": "false",
|
||||
"exclusivedefinition": "false",
|
||||
"executionlisteners": "",
|
||||
"multiinstance_type": "None",
|
||||
"multiinstance_cardinality": "",
|
||||
"multiinstance_collection": "",
|
||||
"multiinstance_variable": "",
|
||||
"multiinstance_condition": "",
|
||||
"isforcompensation": "false",
|
||||
"decisiontaskdecisiontablereference": {
|
||||
"id": 2007,
|
||||
"name": "Decide What Greeting",
|
||||
"referenceId": 2005,
|
||||
"variablesmapping": []
|
||||
}
|
||||
},
|
||||
"stencil": {
|
||||
"id": "DecisionTask"
|
||||
},
|
||||
"childShapes": [],
|
||||
"outgoing": [
|
||||
{
|
||||
"resourceId": "sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 310,
|
||||
"y": 245
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 210,
|
||||
"y": 165
|
||||
}
|
||||
},
|
||||
"dockers": []
|
||||
},
|
||||
{
|
||||
"resourceId": "sid-4A014247-BF0C-436D-B3CE-EA297F2A18FA",
|
||||
"properties": {
|
||||
"overrideid": "",
|
||||
"name": "",
|
||||
"documentation": "",
|
||||
"conditionsequenceflow": "",
|
||||
"executionlisteners": "",
|
||||
"defaultflow": "false"
|
||||
},
|
||||
"stencil": {
|
||||
"id": "SequenceFlow"
|
||||
},
|
||||
"childShapes": [],
|
||||
"outgoing": [
|
||||
{
|
||||
"resourceId": "sid-B4E2D526-60B7-47B9-856C-FC824DA15708"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 209.3515625,
|
||||
"y": 205
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 120.53125,
|
||||
"y": 205
|
||||
}
|
||||
},
|
||||
"dockers": [
|
||||
{
|
||||
"x": 15,
|
||||
"y": 15
|
||||
},
|
||||
{
|
||||
"x": 50,
|
||||
"y": 40
|
||||
}
|
||||
],
|
||||
"target": {
|
||||
"resourceId": "sid-B4E2D526-60B7-47B9-856C-FC824DA15708"
|
||||
}
|
||||
},
|
||||
{
|
||||
"resourceId": "sid-68AE120D-AB55-4ED2-AFD5-845139236AD3",
|
||||
"properties": {
|
||||
"scriptformat": "JavaScript",
|
||||
"scripttext": "print(\"Hello World from JavaScript task:\");\nvar userId = initiator;\nprint(dayGreeting + \" \" + userInfoBean.getUser(userId).getFullName());\nprint(\"You entered '\" + greeting + \"' as a greeting text.\");\n",
|
||||
"executionvariables": "",
|
||||
"overrideid": "",
|
||||
"name": "Print Greeting from JS",
|
||||
"documentation": "",
|
||||
"asynchronousdefinition": "false",
|
||||
"exclusivedefinition": "false",
|
||||
"executionlisteners": "",
|
||||
"multiinstance_type": "None",
|
||||
"multiinstance_cardinality": "",
|
||||
"multiinstance_collection": "",
|
||||
"multiinstance_variable": "",
|
||||
"multiinstance_condition": "",
|
||||
"isforcompensation": "false"
|
||||
},
|
||||
"stencil": {
|
||||
"id": "ScriptTask"
|
||||
},
|
||||
"childShapes": [],
|
||||
"outgoing": [
|
||||
{
|
||||
"resourceId": "sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 775,
|
||||
"y": 245
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 675,
|
||||
"y": 165
|
||||
}
|
||||
},
|
||||
"dockers": []
|
||||
},
|
||||
{
|
||||
"resourceId": "sid-9F0B5A13-7D1F-4ADF-8A08-7B9F0D851DA6",
|
||||
"properties": {
|
||||
"overrideid": "endHelloWorld",
|
||||
"name": "",
|
||||
"documentation": "",
|
||||
"executionlisteners": ""
|
||||
},
|
||||
"stencil": {
|
||||
"id": "EndTerminateEvent"
|
||||
},
|
||||
"childShapes": [],
|
||||
"outgoing": [],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 943,
|
||||
"y": 219
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 915,
|
||||
"y": 191
|
||||
}
|
||||
},
|
||||
"dockers": []
|
||||
},
|
||||
{
|
||||
"resourceId": "sid-6105A21B-6A76-41EC-B88E-78B3BE4A826F",
|
||||
"properties": {
|
||||
"overrideid": "",
|
||||
"name": "",
|
||||
"documentation": "",
|
||||
"conditionsequenceflow": "",
|
||||
"executionlisteners": "",
|
||||
"defaultflow": "false"
|
||||
},
|
||||
"stencil": {
|
||||
"id": "SequenceFlow"
|
||||
},
|
||||
"childShapes": [],
|
||||
"outgoing": [
|
||||
{
|
||||
"resourceId": "sid-9F0B5A13-7D1F-4ADF-8A08-7B9F0D851DA6"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 914.453125,
|
||||
"y": 205
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 775.40625,
|
||||
"y": 205
|
||||
}
|
||||
},
|
||||
"dockers": [
|
||||
{
|
||||
"x": 50,
|
||||
"y": 40
|
||||
},
|
||||
{
|
||||
"x": 14,
|
||||
"y": 14
|
||||
}
|
||||
],
|
||||
"target": {
|
||||
"resourceId": "sid-9F0B5A13-7D1F-4ADF-8A08-7B9F0D851DA6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"resourceId": "sid-61E86F19-FC5F-4814-B9AB-2394B03171D6",
|
||||
"properties": {
|
||||
"overrideid": "printGreetingFromJava",
|
||||
"name": "Print Greeting From Java",
|
||||
"documentation": "",
|
||||
"asynchronousdefinition": "false",
|
||||
"exclusivedefinition": "false",
|
||||
"executionlisteners": "",
|
||||
"multiinstance_type": "None",
|
||||
"multiinstance_cardinality": "",
|
||||
"multiinstance_collection": "",
|
||||
"multiinstance_variable": "",
|
||||
"multiinstance_condition": "",
|
||||
"isforcompensation": "false",
|
||||
"servicetaskclass": "${package}.tasks.service.HelloWorldServiceTask",
|
||||
"servicetaskexpression": "",
|
||||
"servicetaskdelegateexpression": "",
|
||||
"servicetaskfields": "",
|
||||
"servicetaskresultvariable": "",
|
||||
"executionvariables": ""
|
||||
},
|
||||
"stencil": {
|
||||
"id": "ServiceTask"
|
||||
},
|
||||
"childShapes": [],
|
||||
"outgoing": [
|
||||
{
|
||||
"resourceId": "sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 543,
|
||||
"y": 245
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 443,
|
||||
"y": 165
|
||||
}
|
||||
},
|
||||
"dockers": []
|
||||
},
|
||||
{
|
||||
"resourceId": "sid-AD10A830-F8B1-4DBA-9C48-DFD5136E3810",
|
||||
"properties": {
|
||||
"overrideid": "",
|
||||
"name": "",
|
||||
"documentation": "",
|
||||
"conditionsequenceflow": "",
|
||||
"executionlisteners": "",
|
||||
"defaultflow": "false"
|
||||
},
|
||||
"stencil": {
|
||||
"id": "SequenceFlow"
|
||||
},
|
||||
"childShapes": [],
|
||||
"outgoing": [
|
||||
{
|
||||
"resourceId": "sid-68AE120D-AB55-4ED2-AFD5-845139236AD3"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 674.15625,
|
||||
"y": 205
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 543.84375,
|
||||
"y": 205
|
||||
}
|
||||
},
|
||||
"dockers": [
|
||||
{
|
||||
"x": 50,
|
||||
"y": 40
|
||||
},
|
||||
{
|
||||
"x": 50,
|
||||
"y": 40
|
||||
}
|
||||
],
|
||||
"target": {
|
||||
"resourceId": "sid-68AE120D-AB55-4ED2-AFD5-845139236AD3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"resourceId": "sid-E8B736FE-874D-4EDF-85A6-8B602F1503FD",
|
||||
"properties": {
|
||||
"overrideid": "",
|
||||
"name": "",
|
||||
"documentation": "",
|
||||
"conditionsequenceflow": "",
|
||||
"executionlisteners": "",
|
||||
"defaultflow": "false",
|
||||
"showdiamondmarker": false
|
||||
},
|
||||
"stencil": {
|
||||
"id": "SequenceFlow"
|
||||
},
|
||||
"childShapes": [],
|
||||
"outgoing": [
|
||||
{
|
||||
"resourceId": "sid-61E86F19-FC5F-4814-B9AB-2394B03171D6"
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 443,
|
||||
"y": 205
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 310.59375,
|
||||
"y": 205
|
||||
}
|
||||
},
|
||||
"dockers": [
|
||||
{
|
||||
"x": 50,
|
||||
"y": 40
|
||||
},
|
||||
{
|
||||
"x": 1,
|
||||
"y": 40
|
||||
}
|
||||
],
|
||||
"target": {
|
||||
"resourceId": "sid-61E86F19-FC5F-4814-B9AB-2394B03171D6"
|
||||
}
|
||||
}
|
||||
],
|
||||
"bounds": {
|
||||
"lowerRight": {
|
||||
"x": 1200,
|
||||
"y": 1050
|
||||
},
|
||||
"upperLeft": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
}
|
||||
},
|
||||
"stencilset": {
|
||||
"url": "stencilsets/bpmn2.0/bpmn2.0.json",
|
||||
"namespace": "http://b3mn.org/stencilset/bpmn2.0#"
|
||||
},
|
||||
"ssextensions": []
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 1.0 KiB |
@@ -1,53 +0,0 @@
|
||||
{
|
||||
"referenceId": 2005,
|
||||
"name": "Decide What Greeting",
|
||||
"description": "Decide, depending on time of day, what greeting to display.",
|
||||
"editorJson": {
|
||||
"id": 2007,
|
||||
"name": "Decide What Greeting",
|
||||
"key": "DecideWhatGreeting",
|
||||
"description": "Decide, depending on time of day, what greeting to display.",
|
||||
"hitIndicator": "FIRST",
|
||||
"inputExpressions": [
|
||||
{
|
||||
"id": "3",
|
||||
"variableId": "timeofday",
|
||||
"variableType": "formfield",
|
||||
"type": "string",
|
||||
"label": "Time of day",
|
||||
"entries": null,
|
||||
"newVariable": false
|
||||
}
|
||||
],
|
||||
"outputExpressions": [
|
||||
{
|
||||
"id": "4",
|
||||
"variableId": "dayGreeting",
|
||||
"variableType": "variable",
|
||||
"type": "string",
|
||||
"label": "DayGreeting",
|
||||
"entries": null,
|
||||
"newVariable": true
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"3": "== \"time_of_day_morning\"",
|
||||
"4": "\"Good Morning!\""
|
||||
},
|
||||
{
|
||||
"3": "== \"time_of_day_lunch\"",
|
||||
"4": "\"Good Day!\""
|
||||
},
|
||||
{
|
||||
"3": "== \"time_of_day_dinner\"",
|
||||
"4": "\"Good Evening!\""
|
||||
},
|
||||
{
|
||||
"3": "== \"time_of_day_night\"",
|
||||
"4": "\"Good Night!\""
|
||||
}
|
||||
],
|
||||
"executionVariables": []
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,201 +0,0 @@
|
||||
{
|
||||
"referenceId": 2005,
|
||||
"name": "Hello World Start",
|
||||
"description": "The form for the Start task in the Hello World business process.",
|
||||
"editorJson": {
|
||||
"tabs": [],
|
||||
"fields": [
|
||||
{
|
||||
"fieldType": "ContainerRepresentation",
|
||||
"id": "1475149613209",
|
||||
"name": "Label",
|
||||
"type": "container",
|
||||
"value": null,
|
||||
"required": false,
|
||||
"readOnly": false,
|
||||
"overrideId": false,
|
||||
"colspan": 1,
|
||||
"placeholder": null,
|
||||
"minLength": 0,
|
||||
"maxLength": 0,
|
||||
"minValue": null,
|
||||
"maxValue": null,
|
||||
"regexPattern": null,
|
||||
"optionType": null,
|
||||
"hasEmptyValue": null,
|
||||
"options": null,
|
||||
"restUrl": null,
|
||||
"restResponsePath": null,
|
||||
"restIdProperty": null,
|
||||
"restLabelProperty": null,
|
||||
"tab": null,
|
||||
"className": null,
|
||||
"dateDisplayFormat": null,
|
||||
"layout": null,
|
||||
"sizeX": 2,
|
||||
"sizeY": 1,
|
||||
"row": -1,
|
||||
"col": -1,
|
||||
"visibilityCondition": null,
|
||||
"numberOfColumns": 2,
|
||||
"fields": {
|
||||
"1": [
|
||||
{
|
||||
"fieldType": "FormFieldRepresentation",
|
||||
"id": "greeting",
|
||||
"name": "Greeting",
|
||||
"type": "text",
|
||||
"value": null,
|
||||
"required": true,
|
||||
"readOnly": false,
|
||||
"overrideId": false,
|
||||
"colspan": 1,
|
||||
"placeholder": null,
|
||||
"minLength": 0,
|
||||
"maxLength": 0,
|
||||
"minValue": null,
|
||||
"maxValue": null,
|
||||
"regexPattern": null,
|
||||
"optionType": null,
|
||||
"hasEmptyValue": null,
|
||||
"options": null,
|
||||
"restUrl": null,
|
||||
"restResponsePath": null,
|
||||
"restIdProperty": null,
|
||||
"restLabelProperty": null,
|
||||
"tab": null,
|
||||
"className": null,
|
||||
"params": {
|
||||
"existingColspan": 1,
|
||||
"maxColspan": 2
|
||||
},
|
||||
"dateDisplayFormat": null,
|
||||
"layout": {
|
||||
"row": -1,
|
||||
"column": -1,
|
||||
"colspan": 1
|
||||
},
|
||||
"sizeX": 1,
|
||||
"sizeY": 1,
|
||||
"row": -1,
|
||||
"col": -1,
|
||||
"visibilityCondition": null
|
||||
}
|
||||
],
|
||||
"2": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"fieldType": "ContainerRepresentation",
|
||||
"id": "1475149862241",
|
||||
"name": "Label",
|
||||
"type": "container",
|
||||
"value": null,
|
||||
"required": false,
|
||||
"readOnly": false,
|
||||
"overrideId": false,
|
||||
"colspan": 1,
|
||||
"placeholder": null,
|
||||
"minLength": 0,
|
||||
"maxLength": 0,
|
||||
"minValue": null,
|
||||
"maxValue": null,
|
||||
"regexPattern": null,
|
||||
"optionType": null,
|
||||
"hasEmptyValue": null,
|
||||
"options": null,
|
||||
"restUrl": null,
|
||||
"restResponsePath": null,
|
||||
"restIdProperty": null,
|
||||
"restLabelProperty": null,
|
||||
"tab": null,
|
||||
"className": null,
|
||||
"dateDisplayFormat": null,
|
||||
"layout": null,
|
||||
"sizeX": 2,
|
||||
"sizeY": 1,
|
||||
"row": -1,
|
||||
"col": -1,
|
||||
"visibilityCondition": null,
|
||||
"numberOfColumns": 2,
|
||||
"fields": {
|
||||
"1": [
|
||||
{
|
||||
"fieldType": "RestFieldRepresentation",
|
||||
"id": "timeofday",
|
||||
"name": "Time of Day",
|
||||
"type": "dropdown",
|
||||
"value": "Choose one...",
|
||||
"required": false,
|
||||
"readOnly": false,
|
||||
"overrideId": false,
|
||||
"colspan": 1,
|
||||
"placeholder": null,
|
||||
"minLength": 0,
|
||||
"maxLength": 0,
|
||||
"minValue": null,
|
||||
"maxValue": null,
|
||||
"regexPattern": null,
|
||||
"optionType": null,
|
||||
"hasEmptyValue": true,
|
||||
"options": [
|
||||
{
|
||||
"id": "empty",
|
||||
"name": "Choose one..."
|
||||
},
|
||||
{
|
||||
"id": "time_of_day_morning",
|
||||
"name": "Morning"
|
||||
},
|
||||
{
|
||||
"id": "time_of_day_lunch",
|
||||
"name": "Lunch"
|
||||
},
|
||||
{
|
||||
"id": "time_of_day_dinner",
|
||||
"name": "Dinner"
|
||||
},
|
||||
{
|
||||
"id": "time_of_day_night",
|
||||
"name": "Night"
|
||||
}
|
||||
],
|
||||
"restUrl": null,
|
||||
"restResponsePath": null,
|
||||
"restIdProperty": null,
|
||||
"restLabelProperty": null,
|
||||
"tab": null,
|
||||
"className": null,
|
||||
"params": {
|
||||
"existingColspan": 1,
|
||||
"maxColspan": 2
|
||||
},
|
||||
"dateDisplayFormat": null,
|
||||
"layout": {
|
||||
"row": -1,
|
||||
"column": -1,
|
||||
"colspan": 1
|
||||
},
|
||||
"sizeX": 1,
|
||||
"sizeY": 1,
|
||||
"row": -1,
|
||||
"col": -1,
|
||||
"visibilityCondition": null,
|
||||
"endpoint": null,
|
||||
"requestHeaders": null
|
||||
}
|
||||
],
|
||||
"2": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"outcomes": [],
|
||||
"javascriptEvents": [],
|
||||
"className": "",
|
||||
"style": "",
|
||||
"customFieldTemplates": {},
|
||||
"metadata": {},
|
||||
"variables": [],
|
||||
"gridsterForm": false
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB |
@@ -1,9 +0,0 @@
|
||||
# Enterprise License location
|
||||
|
||||
Put the Activiti Enterprise license file (activiti.lic) in this directory.
|
||||
It will then be copied into the WAR..............
|
||||
|
||||
And then not be part of any other classpaths.
|
||||
|
||||
|
||||
|
@@ -1,35 +0,0 @@
|
||||
server.onpremise=true
|
||||
server.stencil.custom.allowed=true
|
||||
server.contextroot=/activiti-app
|
||||
|
||||
# Database connection
|
||||
datasource.driver=org.h2.Driver
|
||||
datasource.url=jdbc:h2:${activiti.datadir}/h2/activiti;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0
|
||||
datasource.username=alfresco
|
||||
datasource.password=alfresco
|
||||
hibernate.dialect=org.hibernate.dialect.H2Dialect
|
||||
|
||||
# Elastic Search server config for historical process data
|
||||
elastic-search.server.type=none
|
||||
elastic-search.cluster.name=activiti-elastic-search-cluster-dev
|
||||
elastic-search.enable.http=true
|
||||
elastic-search.data.path=${activiti.datadir}/es
|
||||
|
||||
event.generation.enabled=true
|
||||
event.processing.enabled=true
|
||||
|
||||
# Administrator login username = email
|
||||
admin.email=admin@app.activiti.com
|
||||
# koala
|
||||
admin.passwordHash=4efe081594ce25ee4efd9f7067f7f678a347bccf2de201f3adf2a3eb544850b465b4e51cdc3fcdde
|
||||
admin.lastname=Administrator
|
||||
admin.group=Superusers
|
||||
|
||||
# Where to store any uploaded files
|
||||
contentstorage.fs.rootFolder=${activiti.datadir}/contentstore
|
||||
contentstorage.fs.createRoot=true
|
||||
contentstorage.fs.depth=4
|
||||
contentstorage.fs.blockSize=1024
|
||||
|
||||
# Disable Cross-Site-Request-Forgery (CSRF) protection, so we can access from other client app via REST
|
||||
security.csrf.disabled=true
|
@@ -1,3 +0,0 @@
|
||||
ldap.authentication.enabled=false
|
||||
ldap.synchronization.full.enabled=false
|
||||
ldap.synchronization.differential.enabled=false
|
@@ -1,40 +0,0 @@
|
||||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
|
||||
# This file is copied (with RunMojo) into target/activitiApp-war/WEB-INF/classes dir before webapp deployment
|
||||
#
|
||||
|
||||
log4j.rootLogger=INFO, CA, File
|
||||
|
||||
# ConsoleAppender
|
||||
log4j.appender.CA=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.CA.layout.ConversionPattern= %d{hh:mm:ss,SSS} [%t] %-5p %c %x - %m%n
|
||||
|
||||
# File Appender
|
||||
log4j.appender.File=org.apache.log4j.RollingFileAppender
|
||||
log4j.appender.File.File=${project.build.directory}/activiti.log
|
||||
log4j.appender.File.threshold=INFO
|
||||
log4j.appender.File.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.File.layout.ConversionPattern=%d{ISO8601} %-5p [%c] %m%n
|
||||
log4j.appender.File.MaxFileSize=100MB
|
||||
log4j.appender.File.MaxBackupIndex=1
|
||||
|
||||
# Custom tweaks
|
||||
log4j.logger.org.apache.ibatis.level=INFO
|
||||
log4j.logger.javax.activation.level=INFO
|
||||
log4j.logger.com.codahale.metrics=WARN
|
||||
log4j.logger.com.ryantenney=WARN
|
||||
log4j.logger.com.zaxxer=WARN
|
||||
log4j.logger.org.apache=WARN
|
||||
log4j.logger.org.hibernate=WARN
|
||||
log4j.logger.org.hibernate.engine.internal=WARN
|
||||
log4j.logger.org.hibernate.validator=WARN
|
||||
log4j.logger.org.springframework=WARN
|
||||
log4j.logger.org.springframework.web=WARN
|
||||
log4j.logger.org.springframework.security=WARN
|
||||
|
||||
|
||||
# Custom classes logging
|
||||
log4j.logger.${package}.tasks.service=DEBUG
|
@@ -1,6 +0,0 @@
|
||||
log4j.rootLogger=WARN, CA
|
||||
|
||||
# ConsoleAppender
|
||||
log4j.appender.CA=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.CA.layout.ConversionPattern= %d{hh:mm:ss,SSS} [%t] %-5p %c %x - %m%n
|
@@ -1,5 +0,0 @@
|
||||
version=0.1-SNAPSHOT
|
||||
groupId=archetype.it
|
||||
artifactId=activitiJARTest
|
||||
package=it.pkg
|
||||
|
@@ -1 +0,0 @@
|
||||
verify -Dmaven.test.skip=true
|
@@ -1,4 +0,0 @@
|
||||
version=0.1-SNAPSHOT
|
||||
groupId=archetype.it
|
||||
artifactId=activitiJARTestRun
|
||||
package=it.pkg
|
@@ -1 +0,0 @@
|
||||
install
|
@@ -7,14 +7,14 @@
|
||||
<packaging>maven-archetype</packaging>
|
||||
<name>Alfresco SDK - All-in-One Archetype</name>
|
||||
<description>Sample multi-module project for All-in-One development on the Alfresco platform. Includes modules for Platform/Repository JAR and Share JAR</description>
|
||||
|
||||
|
||||
<parent>
|
||||
<groupId>org.alfresco.maven</groupId>
|
||||
<artifactId>alfresco-sdk-aggregator</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<version>4.12.0-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
@@ -23,8 +23,6 @@
|
||||
<include>archetype-resources/pom.xml</include>
|
||||
<include>archetype-resources/run.sh</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>
|
||||
</includes>
|
||||
<filtering>true</filtering>
|
||||
@@ -35,8 +33,6 @@
|
||||
<exclude>archetype-resources/pom.xml</exclude>
|
||||
<exclude>archetype-resources/run.sh</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>
|
||||
</excludes>
|
||||
<filtering>false</filtering>
|
||||
@@ -52,9 +48,10 @@
|
||||
<delimiters>
|
||||
<delimiter>@@</delimiter>
|
||||
</delimiters>
|
||||
<addDefaultExcludes>false</addDefaultExcludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
</project>
|
@@ -0,0 +1,2 @@
|
||||
def file = new File( request.getOutputDirectory(), request.getArtifactId()+"/run.sh" );
|
||||
file.setExecutable(true, false);
|
@@ -10,9 +10,9 @@
|
||||
</requiredProperty>
|
||||
</requiredProperties>
|
||||
<modules>
|
||||
<module id="${rootArtifactId}-platform-jar"
|
||||
name="${rootArtifactId}-platform-jar"
|
||||
dir="__rootArtifactId__-platform-jar">
|
||||
<module id="${rootArtifactId}-platform"
|
||||
name="${rootArtifactId}-platform"
|
||||
dir="__rootArtifactId__-platform">
|
||||
<fileSets>
|
||||
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
||||
<directory>src/main/assembly</directory>
|
||||
@@ -50,9 +50,9 @@
|
||||
</fileSets>
|
||||
</module>
|
||||
|
||||
<module id="${rootArtifactId}-share-jar"
|
||||
name="${rootArtifactId}-share-jar"
|
||||
dir="__rootArtifactId__-share-jar">
|
||||
<module id="${rootArtifactId}-share"
|
||||
name="${rootArtifactId}-share"
|
||||
dir="__rootArtifactId__-share">
|
||||
<fileSets>
|
||||
<fileSet filtered="false" packaged="false" encoding="UTF-8">
|
||||
<directory>src/main/assembly</directory>
|
||||
@@ -97,7 +97,9 @@
|
||||
</fileSets>
|
||||
</module>
|
||||
|
||||
<module id="integration-tests" name="integration-tests" dir="integration-tests">
|
||||
<module id="${rootArtifactId}-integration-tests"
|
||||
name="${rootArtifactId}-integration-tests"
|
||||
dir="__rootArtifactId__-integration-tests">
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
@@ -111,26 +113,61 @@
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8" filtered="true">
|
||||
<directory>src/test/resources</directory>
|
||||
<includes>
|
||||
<include>**/dev-log4j.properties</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</module>
|
||||
|
||||
<module id="${rootArtifactId}-platform-docker"
|
||||
name="${rootArtifactId}-platform-docker"
|
||||
dir="__rootArtifactId__-platform-docker">
|
||||
<fileSets>
|
||||
<fileSet encoding="UTF-8" filtered="false">
|
||||
<directory>src/test/resources</directory>
|
||||
<directory>src/main/docker</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
<include>license/**</include>
|
||||
<include>Dockerfile</include>
|
||||
<include>disable-webscript-caching-context.xml</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/dev-log4j.properties</exclude>
|
||||
<exclude>**/*.properties</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8" filtered="false">
|
||||
<directory>src/test/properties</directory>
|
||||
<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>
|
||||
</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>
|
||||
</fileSets>
|
||||
</module>
|
||||
@@ -138,44 +175,15 @@
|
||||
|
||||
<fileSets>
|
||||
<fileSet encoding="UTF-8" filtered="true">
|
||||
<directory>src/test/resources</directory>
|
||||
<directory>docker</directory>
|
||||
<includes>
|
||||
<include>**/dev-log4j.properties</include>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<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>
|
||||
<includes>
|
||||
<include>debug.sh</include>
|
||||
<include>debug.bat</include>
|
||||
<include>.gitignore</include>
|
||||
<include>run.sh</include>
|
||||
<include>run.bat</include>
|
||||
<include>README.md</include>
|
||||
|
38
archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/.gitignore
vendored
Normal file
38
archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/.gitignore
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
**.log*
|
||||
|
||||
# Maven
|
||||
target/
|
||||
pom.xml.tag
|
||||
pom.xml.releaseBackup
|
||||
pom.xml.versionsBackup
|
||||
pom.xml.next
|
||||
release.properties
|
||||
dependency-reduced-pom.xml
|
||||
buildNumber.properties
|
||||
.mvn/timing.properties
|
||||
.mvn/wrapper/maven-wrapper.jar
|
||||
|
||||
# Eclipse
|
||||
.metadata
|
||||
.project
|
||||
.classpath
|
||||
bin/
|
||||
tmp/
|
||||
*.tmp
|
||||
.settings/
|
||||
.loadpath
|
||||
.recommenders
|
||||
|
||||
# IntelliJ IDEA
|
||||
**.idea
|
||||
**.iml
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
|
||||
# macOS
|
||||
*.DS_Store
|
@@ -1,34 +1,46 @@
|
||||
# Alfresco AIO Project - SDK 3
|
||||
# Alfresco AIO Project - SDK 4.11.0
|
||||
|
||||
This is an All-In-One (AIO) project for Alfresco SDK 3.0.
|
||||
This is an All-In-One (AIO) project for Alfresco SDK 4.11.0.
|
||||
|
||||
Run with `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it
|
||||
Run with `./run.sh build_start` or `./run.bat build_start` and verify that it
|
||||
|
||||
* Runs the embedded Tomcat + H2 DB
|
||||
* Runs Alfresco Platform (Repository)
|
||||
* Runs Alfresco Solr4
|
||||
* Runs Alfresco Content Service (ACS)
|
||||
* Runs Alfresco Share
|
||||
* Packages both as JAR and AMP assembly for modules
|
||||
* Runs Alfresco Search Service (ASS)
|
||||
* Runs PostgreSQL database
|
||||
* Deploys the JAR assembled modules
|
||||
|
||||
All the services of the project are now run as docker containers. The run script offers the next tasks:
|
||||
|
||||
* `build_start`. Build the whole project, recreate the ACS and Share docker images, start the dockerised environment composed by ACS, Share, ASS and
|
||||
PostgreSQL and tail the logs of all the containers.
|
||||
* `build_start_it_supported`. Build the whole project including dependencies required for IT execution, recreate the ACS and Share docker images, start the
|
||||
dockerised environment composed by ACS, Share, ASS and PostgreSQL and tail the logs of all the containers.
|
||||
* `start`. Start the dockerised environment without building the project and tail the logs of all the containers.
|
||||
* `stop`. Stop the dockerised environment.
|
||||
* `purge`. Stop the dockerised container and delete all the persistent data (docker volumes).
|
||||
* `tail`. Tail the logs of all the containers.
|
||||
* `reload_share`. Build the Share module, recreate the Share docker image and restart the Share container.
|
||||
* `reload_acs`. Build the ACS module, recreate the ACS docker image and restart the ACS container.
|
||||
* `build_test`. Build the whole project, recreate the ACS and Share docker images, start the dockerised environment, execute the integration tests from the
|
||||
`integration-tests` module and stop the environment.
|
||||
* `test`. Execute the integration tests (the environment must be already started).
|
||||
|
||||
# Few things to notice
|
||||
|
||||
* No parent pom
|
||||
* No WAR projects, all handled by the Alfresco Maven Plugin
|
||||
* No runner project - it's all in the Alfresco Maven Plugin
|
||||
* No WAR projects, the jars are included in the custom docker images
|
||||
* No runner project - the Alfresco environment is now managed through [Docker](https://www.docker.com/)
|
||||
* Standard JAR packaging and layout
|
||||
* Works seamlessly with Eclipse and IntelliJ IDEA
|
||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so`
|
||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml [JRebel integration documentation]
|
||||
* AMP as an assembly
|
||||
* [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin`
|
||||
* No unit testing/functional tests just yet
|
||||
* Persistent test data through restart thanks to the use of Docker volumes for ACS, ASS and database data
|
||||
* Integration tests module to execute tests against the final environment (dockerised)
|
||||
* Resources loaded from META-INF
|
||||
* Web Fragment (this includes a sample servlet configured via web fragment)
|
||||
|
||||
|
||||
# TODO
|
||||
|
||||
|
||||
* Abstract assembly into a dependency so we don't have to ship the assembly in the archetype
|
||||
* Purge
|
||||
* Functional/remote unit tests
|
||||
|
||||
|
||||
|
||||
* Functional/remote unit tests
|
@@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<name>Integration Tests Module</name>
|
||||
<description>Integration Tests module for in-container integration testing - part of AIO - SDK 3</description>
|
||||
<description>Integration Tests module for in-container integration testing - part of AIO - SDK 4.11.0</description>
|
||||
<packaging>jar</packaging> <!-- Note. this just runs Integration Tests, but it needs to be a JAR otherwise
|
||||
nothing is compiled (i.e. you cannot set it to pom) -->
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
that is generated for the AIO project -->
|
||||
<dependency>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${rootArtifactId}-platform-jar</artifactId>
|
||||
<artifactId>${rootArtifactId}-platform</artifactId>
|
||||
<version>${version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
@@ -42,7 +42,6 @@
|
||||
<plugin>
|
||||
<groupId>org.zeroturnaround</groupId>
|
||||
<artifactId>jrebel-maven-plugin</artifactId>
|
||||
<version>${jrebel.version}</version>
|
||||
<configuration>
|
||||
<rebelXmlDirectory>${project.build.testOutputDirectory}</rebelXmlDirectory>
|
||||
</configuration>
|
||||
@@ -52,7 +51,6 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
@@ -67,46 +65,11 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-failsafe-plugin</artifactId>
|
||||
<version>2.19.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>integration-test</id>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>integration-test</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>verify-test</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>verify</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.surefire</groupId>
|
||||
<artifactId>surefire-junit47</artifactId>
|
||||
<version>2.19.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
|
||||
<!-- Run Alfresco Tomcat embedded -->
|
||||
<plugin>
|
||||
<groupId>org.alfresco.maven.plugin</groupId>
|
||||
<artifactId>alfresco-maven-plugin</artifactId>
|
||||
<version>${alfresco.sdk.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>start-alfresco</id>
|
||||
<goals>
|
||||
<goal>it</goal>
|
||||
</goals>
|
||||
<phase>pre-integration-test</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<systemPropertyVariables>
|
||||
<acs.endpoint.path>${test.acs.endpoint.path}</acs.endpoint.path>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
@@ -43,11 +43,6 @@ import static org.junit.Assert.assertNotNull;
|
||||
* @since 3.0
|
||||
*/
|
||||
@RunWith(value = AlfrescoTestRunner.class)
|
||||
// Specifying the remote endpoint is not required, it
|
||||
// will default to http://localhost:8080/alfresco if
|
||||
// not provided. This shows the syntax but simply
|
||||
// sets the value back to the default value.
|
||||
@Remote(endpoint = "http://localhost:8080/alfresco")
|
||||
public class DemoComponentIT extends AbstractAlfrescoIT {
|
||||
|
||||
@Test
|
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
package ${package}.platformsample;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.HttpStatus;
|
||||
@@ -44,9 +45,13 @@ import static org.junit.Assert.assertNotNull;
|
||||
* @since 3.0
|
||||
*/
|
||||
public class HelloWorldWebScriptIT {
|
||||
|
||||
private static final String ACS_ENDPOINT_PROP = "acs.endpoint.path";
|
||||
private static final String ACS_DEFAULT_ENDPOINT = "http://localhost:8080/alfresco";
|
||||
|
||||
@Test
|
||||
public void testWebScriptCall() throws Exception {
|
||||
String webscriptURL = "http://localhost:8080/alfresco/service/sample/helloworld";
|
||||
String webscriptURL = getPlatformEndpoint() + "/service/sample/helloworld";
|
||||
String expectedResponse = "Message: 'Hello from JS!' 'HelloFromJava'";
|
||||
|
||||
// Login credentials for Alfresco Repo
|
||||
@@ -72,4 +77,9 @@ public class HelloWorldWebScriptIT {
|
||||
httpclient.close();
|
||||
}
|
||||
}
|
||||
|
||||
private String getPlatformEndpoint() {
|
||||
final String platformEndpoint = System.getProperty(ACS_ENDPOINT_PROP);
|
||||
return StringUtils.isNotBlank(platformEndpoint) ? platformEndpoint : ACS_DEFAULT_ENDPOINT;
|
||||
}
|
||||
}
|
@@ -0,0 +1,130 @@
|
||||
<?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</artifactId>
|
||||
<version>${version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>${rootArtifactId}-integration-tests</artifactId>
|
||||
<version>${version}</version>
|
||||
<scope>test</scope>
|
||||
<classifier>tests</classifier>
|
||||
</dependency>
|
||||
<!-- Add any additional AMPs or extension JARs here that you want to be deployed in Alfresco -->
|
||||
<!-- IMPORTANT:
|
||||
If using amp extensions only, add <includeTypes>amp</includeTypes> to the "collect-extensions" execution below.
|
||||
If using both amp and jar extensions, you have to add:
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>*</groupId>
|
||||
<artifactId>*</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
to each amp dependency definition.
|
||||
-->
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<!-- Copy the repository extension and the dependencies required for execute integration tests -->
|
||||
<execution>
|
||||
<id>collect-test-artifacts</id>
|
||||
<phase>pre-integration-test</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||
<excludeScope>compile</excludeScope>
|
||||
</configuration>
|
||||
</execution>
|
||||
<!-- Collect extensions (JARs or AMPs) declared in this module do be deployed to docker -->
|
||||
<execution>
|
||||
<id>collect-extensions</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||
<includeScope>runtime</includeScope>
|
||||
<!-- IMPORTANT: if using amp dependencies only, add <includeTypes>amp</includeTypes> -->
|
||||
</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>
|
||||
<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>
|
||||
<exclude>**/*.gz</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>
|
||||
<include>**/*.gz</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
@@ -0,0 +1,29 @@
|
||||
FROM ${docker.acs.image}:${alfresco.platform.version}
|
||||
|
||||
ARG TOMCAT_DIR=/usr/local/tomcat
|
||||
ARG USERNAME=${alfresco.platform.docker.user}
|
||||
|
||||
USER root
|
||||
|
||||
# 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-log4j2.properties $TOMCAT_DIR/shared/classes/alfresco/extension/dev-log4j2.properties
|
||||
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/
|
||||
|
||||
# Move the log file
|
||||
RUN sed -i -e "s_appender.rolling.fileName\=alfresco.log_appender.rolling.fileName\=${TOMCAT_DIR}/logs\/alfresco.log_" \
|
||||
${TOMCAT_DIR}/shared/classes/alfresco/extension/dev-log4j2.properties && \
|
||||
sed -i -e "s_appender.rolling.filePattern=alfresco.log.%d{yyyy-MM-dd}_appender.rolling.filePattern\=${TOMCAT_DIR}/logs\/alfresco.log.%d{yyyy-MM-dd}_" \
|
||||
${TOMCAT_DIR}/shared/classes/alfresco/extension/dev-log4j2.properties
|
||||
|
||||
USER ${USERNAME}
|
@@ -1,3 +1,6 @@
|
||||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
# 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.
|
||||
@@ -15,14 +18,12 @@
|
||||
# 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
|
||||
@@ -33,14 +34,9 @@ alfresco.protocol=http
|
||||
# Alfresco Share Webapp (share.war) context, ports etc
|
||||
share.context=share
|
||||
share.host=localhost
|
||||
share.port=8080
|
||||
share.port=8180
|
||||
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
|
||||
|
||||
@@ -57,13 +53,36 @@ integrity.failOnError=true
|
||||
# Alfresco Repository PostgreSQL Database configuration.
|
||||
# The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
|
||||
db.driver=org.postgresql.Driver
|
||||
db.url=jdbc:postgresql://localhost:5432/alfrescoaio
|
||||
|
||||
# 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=secret
|
||||
solr.sharedSecret=secret
|
||||
|
||||
db.username=alfresco
|
||||
db.password=alfresco
|
||||
db.pool.initial=10
|
||||
db.pool.max=100
|
||||
|
||||
db.url=jdbc:postgresql://${rootArtifactId}-postgres:5432/alfresco
|
||||
|
||||
# File servers related properties
|
||||
# For local runs we disable CIFS and FTP
|
||||
cifs.enabled=false
|
||||
ftp.enabled=false
|
||||
ftp.enabled=false
|
||||
|
||||
csrf.filter.enabled=false
|
||||
|
||||
# Embedded broker without persistence
|
||||
messaging.broker.url=vm://localhost?broker.persistent=false
|
||||
|
||||
# Disable ATS
|
||||
transform.service.enabled=false
|
||||
local.transform.service.enabled=false
|
||||
legacy.transform.service.enabled=false
|
@@ -0,0 +1,412 @@
|
||||
rootLogger.level=error
|
||||
rootLogger.appenderRef.stdout.ref=ConsoleAppender
|
||||
rootLogger.appenderRef.rolling.ref=RollingAppender
|
||||
|
||||
# All outputs currently set to be a ConsoleAppender.
|
||||
appender.console.type=Console
|
||||
appender.console.name=ConsoleAppender
|
||||
appender.console.layout.type=PatternLayout
|
||||
# use log4j NDC to replace %x with tenant domain / username
|
||||
appender.console.layout.pattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %replace{%m}{[\r\n]+}{}%n
|
||||
|
||||
# File appender definition #
|
||||
appender.rolling.type=RollingFile
|
||||
appender.rolling.name=RollingAppender
|
||||
appender.rolling.fileName=alfresco.log
|
||||
appender.rolling.filePattern=alfresco.log.%d{yyyy-MM-dd}
|
||||
appender.rolling.layout.type=PatternLayout
|
||||
appender.rolling.layout.pattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %replace{%m}{[\r\n]+}{}%n
|
||||
appender.rolling.policies.type = Policies
|
||||
appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
|
||||
appender.rolling.policies.time.interval = 1
|
||||
|
||||
# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4J2HierarchyInit)
|
||||
# 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
|
||||
# Log4j2 addLoggerMBean as long as the logger exists and has been loaded.
|
||||
|
||||
# Hibernate
|
||||
logger.hibernate.name=org.hibernate
|
||||
logger.hibernate.level=error
|
||||
|
||||
logger.hibernate-util-JDBCExceptionReporter.name=org.hibernate.util.JDBCExceptionReporter
|
||||
logger.hibernate-util-JDBCExceptionReporter.level=fatal
|
||||
|
||||
logger.hibernate-event-def-AbstractFlushingEventListener.name=org.hibernate.event.def.AbstractFlushingEventListener
|
||||
logger.hibernate-event-def-AbstractFlushingEventListener.level=fatal
|
||||
|
||||
logger.hibernate-type.name=org.hibernate.type
|
||||
logger.hibernate-type.level=warn
|
||||
|
||||
logger.hibernate-cfg-SettingsFactory.name=org.hibernate.cfg.SettingsFactory
|
||||
logger.hibernate-cfg-SettingsFactory.level=warn
|
||||
|
||||
# Spring
|
||||
logger.springframework.name=org.springframework
|
||||
logger.springframework.level=warn
|
||||
# Turn off Spring remoting warnings that should really be info or debug.
|
||||
logger.springframework-remoting-support.name=org.springframework.remoting.support
|
||||
logger.springframework-remoting-support.level=error
|
||||
|
||||
logger.springframework-util.name=org.springframework.util
|
||||
logger.springframework-util.level=error
|
||||
|
||||
# Axis/WSS4J
|
||||
logger.apache-axis.name=org.apache.axis
|
||||
logger.apache-axis.level=info
|
||||
|
||||
logger.apache-ws.name=org.apache.ws
|
||||
logger.apache-ws.level=info
|
||||
|
||||
# CXF
|
||||
logger.apache-cxf.name=org.apache.cxf
|
||||
logger.apache-cxf.level=error
|
||||
|
||||
# MyFaces
|
||||
logger.apache-myfaces-util-DebugUtils.name=org.apache.myfaces.util.DebugUtils
|
||||
logger.apache-myfaces-util-DebugUtils.level=info
|
||||
|
||||
logger.apache-myfaces-el-VariableResolverImpl.name=org.apache.myfaces.el.VariableResolverImpl
|
||||
logger.apache-myfaces-el-VariableResolverImpl.level=error
|
||||
|
||||
logger.apache-myfaces-application-jsp-JspViewHandlerImpl.name=org.apache.myfaces.application.jsp.JspViewHandlerImpl
|
||||
logger.apache-myfaces-application-jsp-JspViewHandlerImpl.level=error
|
||||
|
||||
logger.apache-myfaces-taglib.name=org.apache.myfaces.taglib
|
||||
logger.apache-myfaces-taglib.level=error
|
||||
|
||||
# OpenOfficeConnection
|
||||
logger.sf-jooreports-openoffice-connection.name=net.sf.jooreports.openoffice.connection
|
||||
logger.sf-jooreports-openoffice-connection.level=fatal
|
||||
|
||||
# log prepared statement cache activity log4j.logger.org.hibernate.ps.PreparedStatementCache=info
|
||||
|
||||
# Alfresco
|
||||
logger.alfresco.name=org.alfresco
|
||||
logger.alfresco.level=error
|
||||
|
||||
logger.alfresco-repo-admin.name=org.alfresco.repo.admin
|
||||
logger.alfresco-repo-admin.level=info
|
||||
|
||||
logger.alfresco-repo-transaction.name=org.alfresco.repo.transaction
|
||||
logger.alfresco-repo-transaction.level=warn
|
||||
|
||||
logger.alfresco-repo-cache-TransactionalCache.name=org.alfresco.repo.cache.TransactionalCache
|
||||
logger.alfresco-repo-cache-TransactionalCache.level=warn
|
||||
|
||||
logger.alfresco-repo-model-filefolder.name=org.alfresco.repo.model.filefolder
|
||||
logger.alfresco-repo-model-filefolder.level=warn
|
||||
|
||||
logger.alfresco-repo-tenant.name=org.alfresco.repo.tenant
|
||||
logger.alfresco-repo-tenant.level=info
|
||||
|
||||
logger.alfresco-config.name=org.alfresco.config
|
||||
logger.alfresco-config.level=warn
|
||||
|
||||
logger.alfresco-config-JndiObjectFactoryBean.name=org.alfresco.config.JndiObjectFactoryBean
|
||||
logger.alfresco-config-JndiObjectFactoryBean.level=warn
|
||||
|
||||
logger.alfresco-config-JBossEnabledWebApplicationContext.name=org.alfresco.config.JBossEnabledWebApplicationContext
|
||||
logger.alfresco-config-JBossEnabledWebApplicationContext.level=warn
|
||||
|
||||
logger.alfresco-repo-management-subsystems.name=org.alfresco.repo.management.subsystems
|
||||
logger.alfresco-repo-management-subsystems.level=warn
|
||||
|
||||
logger.alfresco-repo-management-subsystems-ChildApplicationContextFactory.name=org.alfresco.repo.management.subsystems.ChildApplicationContextFactory
|
||||
logger.alfresco-repo-management-subsystems-ChildApplicationContextFactory.level=info
|
||||
|
||||
logger.alfresco-repo-management-subsystems-ChildApplicationContextFactory$ChildApplicationContext.name=org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext
|
||||
logger.alfresco-repo-management-subsystems-ChildApplicationContextFactory$ChildApplicationContext.level=warn
|
||||
|
||||
logger.alfresco-repo-security-sync.name=org.alfresco.repo.security.sync
|
||||
logger.alfresco-repo-security-sync.level=info
|
||||
|
||||
logger.alfresco-repo-security-person.name=org.alfresco.repo.security.person
|
||||
logger.alfresco-repo-security-person.level=info
|
||||
|
||||
logger.alfresco-sample.name=org.alfresco.sample
|
||||
logger.alfresco-sample.level=info
|
||||
|
||||
logger.alfresco-web.name=org.alfresco.web
|
||||
logger.alfresco-web.level=info
|
||||
|
||||
logger.alfresco-service-descriptor-DescriptorService.name=org.alfresco.service.descriptor.DescriptorService
|
||||
logger.alfresco-service-descriptor-DescriptorService.level=info
|
||||
|
||||
logger.alfresco-repo-importer-ImporterBootstrap.name=org.alfresco.repo.importer.ImporterBootstrap
|
||||
logger.alfresco-repo-importer-ImporterBootstrap.level=error
|
||||
#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
|
||||
|
||||
logger.alfresco-repo-admin-patch-PatchExecuter.name=org.alfresco.repo.admin.patch.PatchExecuter
|
||||
logger.alfresco-repo-admin-patch-PatchExecuter.level=info
|
||||
|
||||
logger.alfresco-repo-domain-patch-ibatis-PatchDAOImpl.name=org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl
|
||||
logger.alfresco-repo-domain-patch-ibatis-PatchDAOImpl.level=info
|
||||
|
||||
# Specific patches
|
||||
logger.alfresco-repo-admin-patch-impl-DeploymentMigrationPatch.name=org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch
|
||||
logger.alfresco-repo-admin-patch-impl-DeploymentMigrationPatch.level=info
|
||||
|
||||
logger.alfresco-repo-version-VersionMigrator.name=org.alfresco.repo.version.VersionMigrator
|
||||
logger.alfresco-repo-version-VersionMigrator.level=info
|
||||
|
||||
logger.alfresco-repo-module-ModuleServiceImpl.name=org.alfresco.repo.module.ModuleServiceImpl
|
||||
logger.alfresco-repo-module-ModuleServiceImpl.level=info
|
||||
|
||||
logger.alfresco-repo-domain-schema-SchemaBootstrap.name=org.alfresco.repo.domain.schema.SchemaBootstrap
|
||||
logger.alfresco-repo-domain-schema-SchemaBootstrap.level=info
|
||||
|
||||
logger.alfresco-repo-admin-ConfigurationChecker.name=org.alfresco.repo.admin.ConfigurationChecker
|
||||
logger.alfresco-repo-admin-ConfigurationChecker.level=info
|
||||
|
||||
logger.alfresco-repo-node-index-AbstractReindexComponent.name=org.alfresco.repo.node.index.AbstractReindexComponent
|
||||
logger.alfresco-repo-node-index-AbstractReindexComponent.level=warn
|
||||
|
||||
logger.alfresco-repo-node-index-IndexTransactionTracker.name=org.alfresco.repo.node.index.IndexTransactionTracker
|
||||
logger.alfresco-repo-node-index-IndexTransactionTracker.level=warn
|
||||
|
||||
logger.alfresco-repo-node-index-FullIndexRecoveryComponent.name=org.alfresco.repo.node.index.FullIndexRecoveryComponent
|
||||
logger.alfresco-repo-node-index-FullIndexRecoveryComponent.level=info
|
||||
|
||||
#logger.alfresco-repo-node-db-hibernate-HibernateNodeDaoServiceImpl.name=org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl
|
||||
#logger.alfresco-repo-node-db-hibernate-HibernateNodeDaoServiceImpl.level=warn
|
||||
|
||||
logger.alfresco-repo-domain-hibernate-DirtySessionMethodInterceptor.name=org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor
|
||||
logger.alfresco-repo-domain-hibernate-DirtySessionMethodInterceptor.level=warn
|
||||
|
||||
logger.alfresco-repo-transaction-RetryingTransactionHelper.name=org.alfresco.repo.transaction.RetryingTransactionHelper
|
||||
logger.alfresco-repo-transaction-RetryingTransactionHelper.level=warn
|
||||
|
||||
logger.alfresco-util-transaction-SpringAwareUserTransaction-trace.name=org.alfresco.util.transaction.SpringAwareUserTransaction.trace
|
||||
logger.alfresco-util-transaction-SpringAwareUserTransaction-trace.level=warn
|
||||
|
||||
logger.alfresco-util-AbstractTriggerBean.name=org.alfresco.util.AbstractTriggerBean
|
||||
logger.alfresco-util-AbstractTriggerBean.level=warn
|
||||
|
||||
logger.alfresco-enterprise-repo-cluster.name=org.alfresco.enterprise.repo.cluster
|
||||
logger.alfresco-enterprise-repo-cluster.level=info
|
||||
|
||||
logger.alfresco-repo-version-Version2ServiceImpl.name=org.alfresco.repo.version.Version2ServiceImpl
|
||||
logger.alfresco-repo-version-Version2ServiceImpl.level=warn
|
||||
|
||||
#logger.alfresco-web-app-DebugPhaseListener.name=org.alfresco.web.app.DebugPhaseListener
|
||||
#logger.alfresco-web-app-DebugPhaseListener.level=debug
|
||||
|
||||
logger.alfresco-repo-node-db-NodeStringLengthWorker.name=org.alfresco.repo.node.db.NodeStringLengthWorker
|
||||
logger.alfresco-repo-node-db-NodeStringLengthWorker.level=info
|
||||
|
||||
logger.alfresco-repo-workflow.name=org.alfresco.repo.workflow
|
||||
logger.alfresco-repo-workflow.level=info
|
||||
|
||||
# FTP server debugging
|
||||
logger.alfresco-ftp-protocol.name=org.alfresco.ftp.protocol
|
||||
logger.alfresco-ftp-protocol.level=error
|
||||
|
||||
# WebDAV debugging
|
||||
logger.alfresco-webdav-protocol.name=org.alfresco.webdav.protocol
|
||||
logger.alfresco-webdav-protocol.level=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
|
||||
logger.alfresco-fileserver.name=org.alfresco.fileserver
|
||||
logger.alfresco-fileserver.level=warn
|
||||
|
||||
# Repo filesystem debug logging
|
||||
#log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug
|
||||
|
||||
# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
|
||||
logger.alfresco-repo-node-integrity.name=org.alfresco.repo.node.integrity
|
||||
logger.alfresco-repo-node-integrity.level=error
|
||||
|
||||
# Indexer debugging
|
||||
logger.alfresco-repo-search-Indexer.name=org.alfresco.repo.search.Indexer
|
||||
logger.alfresco-repo-search-Indexer.level=error
|
||||
|
||||
logger.alfresco-repo-search-impl-lucene-index.name=org.alfresco.repo.search.impl.lucene.index
|
||||
logger.alfresco-repo-search-impl-lucene-index.level=error
|
||||
|
||||
logger.alfresco-repo-search-impl-lucene-fts-FullTextSearchIndexerImpl.name=org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl
|
||||
logger.alfresco-repo-search-impl-lucene-fts-FullTextSearchIndexerImpl.level=warn
|
||||
|
||||
# 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
|
||||
logger.missingProperties.name=alfresco.missingProperties
|
||||
logger.missingProperties.level=warn
|
||||
|
||||
# Dictionary/Model debugging
|
||||
logger.alfresco-repo-dictionary.name=org.alfresco.repo.dictionary
|
||||
logger.alfresco-repo-dictionary.level=warn
|
||||
|
||||
# Virtualization Server Registry
|
||||
logger.alfresco-mbeans-VirtServerRegistry.name=org.alfresco.mbeans.VirtServerRegistry
|
||||
logger.alfresco-mbeans-VirtServerRegistry.level=error
|
||||
|
||||
# Spring context runtime property setter
|
||||
logger.alfresco-util-RuntimeSystemPropertiesSetter.name=org.alfresco.util.RuntimeSystemPropertiesSetter
|
||||
logger.alfresco-util-RuntimeSystemPropertiesSetter.level=info
|
||||
|
||||
# Debugging options for clustering
|
||||
logger.alfresco-repo-content-ReplicatingContentStore.name=org.alfresco.repo.content.ReplicatingContentStore
|
||||
logger.alfresco-repo-content-ReplicatingContentStore.level=error
|
||||
|
||||
logger.alfresco-repo-content-replication.name=org.alfresco.repo.content.replication
|
||||
logger.alfresco-repo-content-replication.level=error
|
||||
|
||||
#log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
|
||||
|
||||
# Activity service
|
||||
logger.alfresco-repo-activities.name=org.alfresco.repo.activities
|
||||
logger.alfresco-repo-activities.level=warn
|
||||
|
||||
# User usage tracking
|
||||
logger.alfresco-repo-usage.name=org.alfresco.repo.usage
|
||||
logger.alfresco-repo-usage.level=info
|
||||
|
||||
# Sharepoint
|
||||
logger.alfresco-module-vti.name=org.alfresco.module.vti
|
||||
logger.alfresco-module-vti.level=info
|
||||
|
||||
# Forms Engine
|
||||
logger.alfresco-web-config-forms.name=org.alfresco.web.config.forms
|
||||
logger.alfresco-web-config-forms.level=info
|
||||
|
||||
logger.alfresco-web-scripts-forms.name=org.alfresco.web.scripts.forms
|
||||
logger.alfresco-web-scripts-forms.level=info
|
||||
|
||||
# CMIS
|
||||
logger.alfresco-opencmis.name=org.alfresco.opencmis
|
||||
logger.alfresco-opencmis.level=error
|
||||
|
||||
logger.alfresco-opencmis-AlfrescoCmisServiceInterceptor.name=org.alfresco.opencmis.AlfrescoCmisServiceInterceptor
|
||||
logger.alfresco-opencmis-AlfrescoCmisServiceInterceptor.level=error
|
||||
|
||||
logger.alfresco-cmis.name=org.alfresco.cmis
|
||||
logger.alfresco-cmis.level=error
|
||||
|
||||
logger.alfresco-cmis-dictionary.name=org.alfresco.cmis.dictionary
|
||||
logger.alfresco-cmis-dictionary.level=warn
|
||||
|
||||
logger.apache-chemistry-opencmis.name=org.apache.chemistry.opencmis
|
||||
logger.apache-chemistry-opencmis.level=info
|
||||
|
||||
logger.apache-chemistry-opencmis-server-impl-browser-CmisBrowserBindingServlet.name=org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet
|
||||
logger.apache-chemistry-opencmis-server-impl-browser-CmisBrowserBindingServlet.level=off
|
||||
|
||||
logger.apache-chemistry-opencmis-server-impl-atompub-CmisAtomPubServlet.name=org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet
|
||||
logger.apache-chemistry-opencmis-server-impl-atompub-CmisAtomPubServlet.level=off
|
||||
|
||||
# IMAP
|
||||
logger.alfresco-repo-imap.name=org.alfresco.repo.imap
|
||||
logger.alfresco-repo-imap.level=info
|
||||
|
||||
# JBPM
|
||||
# Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler
|
||||
logger.jbpm-graph-def-GraphElement.name=org.jbpm.graph.def.GraphElement
|
||||
logger.jbpm-graph-def-GraphElement.level=fatal
|
||||
|
||||
# Web Framework
|
||||
logger.springframework-extensions-webscripts.name=org.springframework.extensions.webscripts
|
||||
logger.springframework-extensions-webscripts.level=info
|
||||
|
||||
logger.springframework-extensions-webscripts-ScriptLogger.name=org.springframework.extensions.webscripts.ScriptLogger
|
||||
logger.springframework-extensions-webscripts-ScriptLogger.level=warn
|
||||
|
||||
logger.springframework-extensions-webscripts-ScriptDebugger.name=org.springframework.extensions.webscripts.ScriptDebugger
|
||||
logger.springframework-extensions-webscripts-ScriptDebugger.level=off
|
||||
|
||||
# Repository
|
||||
logger.alfresco-repo-web-scripts.name=org.alfresco.repo.web.scripts
|
||||
logger.alfresco-repo-web-scripts.level=warn
|
||||
|
||||
logger.alfresco-repo-web-scripts-BaseWebScriptTest.name=org.alfresco.repo.web.scripts.BaseWebScriptTest
|
||||
logger.alfresco-repo-web-scripts-BaseWebScriptTest.level=info
|
||||
|
||||
logger.alfresco-repo-web-scripts-AlfrescoRhinoScriptDebugger.name=org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger
|
||||
logger.alfresco-repo-web-scripts-AlfrescoRhinoScriptDebugger.level=off
|
||||
|
||||
logger.alfresco-repo-jscript.name=org.alfresco.repo.jscript
|
||||
logger.alfresco-repo-jscript.level=error
|
||||
|
||||
logger.alfresco-repo-jscript-ScriptLogger.name=org.alfresco.repo.jscript.ScriptLogger
|
||||
logger.alfresco-repo-jscript-ScriptLogger.level=warn
|
||||
|
||||
logger.alfresco-repo-cmis-rest-CMISTest.name=org.alfresco.repo.cmis.rest.CMISTest
|
||||
logger.alfresco-repo-cmis-rest-CMISTest.level=info
|
||||
|
||||
logger.alfresco-repo-domain-schema-script-ScriptBundleExecutorImpl.name=org.alfresco.repo.domain.schema.script.ScriptBundleExecutorImpl
|
||||
logger.alfresco-repo-domain-schema-script-ScriptBundleExecutorImpl.level=off
|
||||
|
||||
logger.alfresco-repo-domain-schema-script-ScriptExecutorImpl.name=org.alfresco.repo.domain.schema.script.ScriptExecutorImpl
|
||||
logger.alfresco-repo-domain-schema-script-ScriptExecutorImpl.level=info
|
||||
|
||||
logger.alfresco-repo-domain-schema-script-DeleteNotExistsExecutor.name=org.alfresco.repo.domain.schema.script.DeleteNotExistsExecutor
|
||||
logger.alfresco-repo-domain-schema-script-DeleteNotExistsExecutor.level=off
|
||||
|
||||
logger.alfresco-repo-search-impl-solr-facet-SolrFacetServiceImpl.name=org.alfresco.repo.search.impl.solr.facet.SolrFacetServiceImpl
|
||||
logger.alfresco-repo-search-impl-solr-facet-SolrFacetServiceImpl.level=info
|
||||
|
||||
# Bulk Filesystem Import Tool
|
||||
logger.alfresco-repo-bulkimport.name=org.alfresco.repo.bulkimport
|
||||
logger.alfresco-repo-bulkimport.level=warn
|
||||
|
||||
# Freemarker
|
||||
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
||||
logger.runtime.name=freemarker.runtime
|
||||
logger.runtime.level=
|
||||
|
||||
# Metadata extraction
|
||||
logger.alfresco-repo-content-metadata-AbstractMappingMetadataExtracter.name=org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter
|
||||
logger.alfresco-repo-content-metadata-AbstractMappingMetadataExtracter.level=warn
|
||||
|
||||
# Reduces PDFont error level due to ALF-7105
|
||||
logger.apache-pdfbox-pdmodel-font-PDSimpleFont.name=org.apache.pdfbox.pdmodel.font.PDSimpleFont
|
||||
logger.apache-pdfbox-pdmodel-font-PDSimpleFont.level=fatal
|
||||
|
||||
logger.apache-pdfbox-pdmodel-font-PDCIDFont.name=org.apache.pdfbox.pdmodel.font.PDCIDFont
|
||||
logger.apache-pdfbox-pdmodel-font-PDCIDFont.level=fatal
|
||||
|
||||
# no index support
|
||||
logger.alfresco-repo-search-impl-noindex-NoIndexIndexer.name=org.alfresco.repo.search.impl.noindex.NoIndexIndexer
|
||||
logger.alfresco-repo-search-impl-noindex-NoIndexIndexer.level=fatal
|
||||
|
||||
logger.alfresco-repo-search-impl-noindex-NoIndexSearchService.name=org.alfresco.repo.search.impl.noindex.NoIndexSearchService
|
||||
logger.alfresco-repo-search-impl-noindex-NoIndexSearchService.level=fatal
|
||||
|
||||
# lucene index warnings
|
||||
logger.alfresco-repo-search-impl-lucene-index-IndexInfo.name=org.alfresco.repo.search.impl.lucene.index.IndexInfo
|
||||
logger.alfresco-repo-search-impl-lucene-index-IndexInfo.level=warn
|
||||
|
||||
# Warn about RMI socket bind retries.
|
||||
logger.alfresco-util-remote-server-socket-HostConfigurableSocketFactory.name=org.alfresco.util.remote.server.socket.HostConfigurableSocketFactory
|
||||
logger.alfresco-util-remote-server-socket-HostConfigurableSocketFactory.level=warn
|
||||
|
||||
logger.alfresco-repo-usage-RepoUsageMonitor.name=org.alfresco.repo.usage.RepoUsageMonitor
|
||||
logger.alfresco-repo-usage-RepoUsageMonitor.level=info
|
||||
|
||||
# Authorization
|
||||
logger.alfresco-enterprise-repo-authorization-AuthorizationService.name=org.alfresco.enterprise.repo.authorization.AuthorizationService
|
||||
logger.alfresco-enterprise-repo-authorization-AuthorizationService.level=info
|
||||
|
||||
logger.alfresco-enterprise-repo-authorization-AuthorizationsConsistencyMonitor.name=org.alfresco.enterprise.repo.authorization.AuthorizationsConsistencyMonitor
|
||||
logger.alfresco-enterprise-repo-authorization-AuthorizationsConsistencyMonitor.level=warn
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Platform module logging
|
||||
#-----------------------------------------------------------------------
|
||||
logger.platformsample-DemoComponent.name=${package}.platformsample.DemoComponent
|
||||
logger.platformsample-DemoComponent.level=debug
|
||||
logger.platformsample-HelloWorldWebScript.name=${package}.platformsample.HelloWorldWebScript
|
||||
logger.platformsample-HelloWorldWebScript.level=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
|
||||
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
||||
autoHotswap=true
|
||||
@@ -10,8 +13,8 @@ autoHotswap=true
|
||||
# classes from built JAR file.
|
||||
# i.e. monitor /target/classes
|
||||
# should work with extraClasspath=${project.build.outputDirectory}
|
||||
# If not try
|
||||
extraClasspath=${project.build.outputDirectory};${project.build.testOutputDirectory}
|
||||
# If not try
|
||||
extraClasspath=/usr/local/tomcat/hotswap-agent
|
||||
|
||||
# Comma separated list of disabled plugins
|
||||
# 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.
|
||||
# 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/target/classes/META-INF/resources;
|
||||
|
||||
# Load static web resources from different directory.
|
||||
#
|
||||
# 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/target/classes/META-INF/resources;
|
||||
|
||||
# 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 +0,0 @@
|
||||
# Add here module-specific custom log4j.properties configuration
|
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn"
|
||||
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
|
||||
xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema"
|
||||
expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
|
||||
|
||||
<process id="my-process">
|
||||
|
||||
<startEvent id="start" />
|
||||
<sequenceFlow id="flow1" sourceRef="start" targetRef="someTask" />
|
||||
|
||||
<userTask id="someTask" name="Activiti is awesome!" />
|
||||
<sequenceFlow id="flow2" sourceRef="someTask" targetRef="end" />
|
||||
|
||||
<endEvent id="end" />
|
||||
|
||||
</process>
|
||||
|
||||
</definitions>
|
@@ -3,8 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<name>Alfresco Platform/Repository JAR Module</name>
|
||||
<description>Platform/Repo JAR Module (to be included in the alfresco.war) - part of AIO - SDK 3
|
||||
</description>
|
||||
<description>Platform/Repo JAR Module (to be included in the alfresco.war) - part of AIO - SDK 4.11.0</description>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
@@ -28,4 +27,4 @@
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
</project>
|
@@ -10,7 +10,7 @@
|
||||
<platformModules>
|
||||
<moduleDependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>some-platform-jar</artifactId>
|
||||
<artifactId>some-platform</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>amp</type>
|
||||
</moduleDependency>
|
||||
@@ -35,9 +35,9 @@
|
||||
<source>src/main/assembly/file-mapping.properties</source>
|
||||
<filtered>false</filtered>
|
||||
</file>
|
||||
<!-- Add module-specific log4j.properties configuration at top level in the AMP -->
|
||||
<!-- Add module-specific log4j2.properties configuration at top level in the AMP -->
|
||||
<file>
|
||||
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j.properties</source>
|
||||
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j2.properties</source>
|
||||
<filtered>false</filtered>
|
||||
</file>
|
||||
</files>
|
@@ -10,7 +10,7 @@ any existing web resources in the Alfresco.WAR.
|
||||
`
|
||||
<moduleDependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>some-platform-jar</artifactId>
|
||||
<artifactId>some-platform</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>amp</type>
|
||||
</moduleDependency>
|
@@ -36,5 +36,10 @@
|
||||
</props>
|
||||
</list>
|
||||
</property>
|
||||
<property name="labels">
|
||||
<list>
|
||||
<value>alfresco/module/${project.artifactId}/messages/workflow-messages</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
@@ -0,0 +1 @@
|
||||
# Add here module-specific custom log4j2.properties configuration
|
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Activiti My Process Workflow
|
||||
#
|
||||
my-process.workflow.title=My Process
|
||||
my-process.workflow.description=This is my custom process
|
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<definitions
|
||||
xmlns:activiti="http://activiti.org/bpmn"
|
||||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" typeLanguage="http://www.w3.org/2001/XMLSchema"
|
||||
expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
|
||||
|
||||
<process id="my-process">
|
||||
|
||||
<startEvent id="start" activiti:formKey="wf:submitAdhocTask"/>
|
||||
<sequenceFlow id="flow1" sourceRef="start" targetRef="someTask"/>
|
||||
|
||||
<userTask id="someTask" name="Activiti is awesome!" activiti:formKey="wf:adhocTask">
|
||||
<humanPerformer>
|
||||
<resourceAssignmentExpression>
|
||||
<formalExpression>${bpm_assignee.properties.userName}</formalExpression>
|
||||
</resourceAssignmentExpression>
|
||||
</humanPerformer>
|
||||
</userTask>
|
||||
<sequenceFlow id="flow2" sourceRef="someTask" targetRef="end"/>
|
||||
|
||||
<endEvent id="end"/>
|
||||
|
||||
</process>
|
||||
|
||||
</definitions>
|
@@ -0,0 +1,73 @@
|
||||
<?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</artifactId>
|
||||
<version>${version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<!-- Collect extensions (JARs or AMPs) declared in this module do be deployed to docker -->
|
||||
<execution>
|
||||
<id>collect-extensions</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
|
||||
<includeScope>runtime</includeScope>
|
||||
<!-- IMPORTANT: if using amp dependencies only, add <includeTypes>amp</includeTypes> -->
|
||||
</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>
|
||||
<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.docker.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 log4j2.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
|
||||
# Watch for changed class files on watchResources path and reload class definition in the running application.
|
||||
autoHotswap=true
|
||||
@@ -11,10 +14,11 @@ autoHotswap=true
|
||||
# i.e. monitor /target/classes
|
||||
# should work with extraClasspath=${project.build.outputDirectory}
|
||||
# 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
|
||||
# Use plugin name - e.g.
|
||||
# Use plugin name - e.g.
|
||||
# Hotswapper, AnonymousClassPatch, WatchResources, Hibernate, Spring, Jersey2, Jetty, Tomcat,
|
||||
# ZK, Logback, JSF, Seam, ELResolver, OsgiEquinox, Proxy, WebObjects, Weld, JBossModules, Resteasy, Gae
|
||||
disabledPlugins=Hibernate,Spring
|
||||
@@ -23,12 +27,12 @@ disabledPlugins=Hibernate,Spring
|
||||
#
|
||||
# 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).
|
||||
extraWebappContext=${project.basedir}/${artifactId}-platform-jar/target/classes/META-INF/resources;
|
||||
extraWebappContext=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-share/target/classes/META-INF/resources;
|
||||
|
||||
# Load static web resources from different directory.
|
||||
#
|
||||
# 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/target/classes/META-INF/resources;
|
||||
|
||||
# Watch for changes in a directory (resources only).
|
||||
#
|
@@ -0,0 +1,89 @@
|
||||
#set( $symbol_pound = '#' )
|
||||
#set( $symbol_dollar = '$' )
|
||||
#set( $symbol_escape = '\' )
|
||||
# Set root logger level to error
|
||||
#log4j.rootLogger=error, Console, File
|
||||
rootLogger.level=error
|
||||
rootLogger.appenderRef.stdout.ref=ConsoleAppender
|
||||
rootLogger.appenderRef.rolling.ref=RollingAppender
|
||||
|
||||
# Console appender definition #
|
||||
|
||||
# All outputs currently set to be a ConsoleAppender.
|
||||
appender.console.type=Console
|
||||
appender.console.name=ConsoleAppender
|
||||
appender.console.layout.type=PatternLayout
|
||||
appender.console.layout.pattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %replace{%m}{[\r\n]+}{}%n
|
||||
|
||||
# use log4j NDC to replace %x with tenant domain / username
|
||||
appender.console.layout.pattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %replace{%m}{[\r\n]+}{}%n
|
||||
|
||||
# File appender definition #
|
||||
appender.rolling.type=RollingFile
|
||||
appender.rolling.name=RollingAppender
|
||||
appender.rolling.fileName=alfresco.log
|
||||
appender.rolling.filePattern=alfresco.log.%d{yyyy-MM-dd}
|
||||
appender.rolling.layout.type=PatternLayout
|
||||
appender.rolling.layout.pattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %replace{%m}{[\r\n]+}{}%n
|
||||
appender.rolling.policies.type = Policies
|
||||
appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
|
||||
appender.rolling.policies.time.interval = 1
|
||||
|
||||
# Spring
|
||||
logger.springframework.name=org.springframework
|
||||
logger.springframework.level=warn
|
||||
|
||||
# Turn off Spring remoting warnings that should really be info or debug.
|
||||
logger.springframework-remoting-support.name=org.springframework.remoting.support
|
||||
logger.springframework-remoting-support.level=error
|
||||
|
||||
logger.springframework-util.name=org.springframework.util
|
||||
logger.springframework-util.level=error
|
||||
|
||||
# MyFaces
|
||||
logger.apache-myfaces-util-DebugUtils.name=org.apache.myfaces.util.DebugUtils
|
||||
logger.apache-myfaces-util-DebugUtils.level=info
|
||||
|
||||
logger.apache-myfaces-el-VariableResolverImpl.name=org.apache.myfaces.el.VariableResolverImpl
|
||||
logger.apache-myfaces-el-VariableResolverImpl.level=error
|
||||
|
||||
logger.apache-myfaces-application-jsp-JspViewHandlerImpl.name=org.apache.myfaces.application.jsp.JspViewHandlerImpl
|
||||
logger.apache-myfaces-application-jsp-JspViewHandlerImpl.level=error
|
||||
|
||||
logger.apache-myfaces-taglib.name=org.apache.myfaces.taglib
|
||||
logger.apache-myfaces-taglib.level=error
|
||||
|
||||
# Alfresco
|
||||
logger.alfresco.name=org.alfresco
|
||||
logger.alfresco.level=error
|
||||
|
||||
logger.alfresco-config.name=org.alfresco.config
|
||||
logger.alfresco-config.level=warn
|
||||
|
||||
logger.alfresco-config-JndiObjectFactoryBean.name=org.alfresco.config.JndiObjectFactoryBean
|
||||
logger.alfresco-config-JndiObjectFactoryBean.level=warn
|
||||
|
||||
logger.alfresco-web.name=org.alfresco.web
|
||||
logger.alfresco-web.level=info
|
||||
|
||||
# Web Framework
|
||||
logger.springframework-extensions-webscripts.name=org.springframework.extensions.webscripts
|
||||
logger.springframework-extensions-webscripts.level=info
|
||||
|
||||
logger.springframework-extensions-webscripts-ScriptLogger.name=org.springframework.extensions.webscripts.ScriptLogger
|
||||
logger.springframework-extensions-webscripts-ScriptLogger.level=warn
|
||||
|
||||
logger.springframework-extensions-webscripts-ScriptDebugger.name=org.springframework.extensions.webscripts.ScriptDebugger
|
||||
logger.springframework-extensions-webscripts-ScriptDebugger.level=off
|
||||
|
||||
# Freemarker
|
||||
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
|
||||
logger.freemarker-runtime.name=freemarker.runtime
|
||||
logger.freemarker-runtime.level=
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Custom Share module logging goes here...
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
|
||||
|
@@ -39,7 +39,7 @@
|
||||
|
||||
<!--
|
||||
Disable CSRF completely for now
|
||||
It seems Share has issues on 4.2.x with the embedded tomcat and CSRFPolicy
|
||||
It seems Share has issues on 4.x with the embedded tomcat and CSRFPolicy
|
||||
-->
|
||||
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
|
||||
<filter/>
|
||||
@@ -57,7 +57,7 @@
|
||||
<name>Alfresco - unauthenticated access</name>
|
||||
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
|
||||
<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>
|
||||
</endpoint>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<name>Alfresco - user access</name>
|
||||
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
|
||||
<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>
|
||||
</endpoint>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<name>Alfresco Feed</name>
|
||||
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
|
||||
<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>
|
||||
<identity>user</identity>
|
||||
</endpoint>
|
||||
@@ -85,7 +85,7 @@
|
||||
<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>${alfresco.repo.url}/activiti-admin</endpoint-url>
|
||||
<endpoint-url>http://${acs.host}:8080/alfresco/activiti-admin</endpoint-url>
|
||||
<identity>user</identity>
|
||||
</endpoint>
|
||||
|
||||
@@ -96,10 +96,18 @@
|
||||
<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>${alfresco.repo.url}/api</endpoint-url>
|
||||
<endpoint-url>http://${acs.host}:8080/alfresco/api</endpoint-url>
|
||||
<identity>user</identity>
|
||||
</endpoint>
|
||||
</remote>
|
||||
</config>
|
||||
<config evaluator="string-compare" condition="Users" replace="true">
|
||||
<users>
|
||||
<username-min-length>2</username-min-length>
|
||||
<password-min-length>3</password-min-length>
|
||||
<show-authorization-status>false</show-authorization-status>
|
||||
</users>
|
||||
<enable-external-users-panel>false</enable-external-users-panel>
|
||||
</config>
|
||||
</alfresco-config>
|
||||
|
@@ -1 +0,0 @@
|
||||
# Add here module-specific custom log4j.properties configuration
|
@@ -5,7 +5,7 @@
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<name>Alfresco Share JAR Module</name>
|
||||
<packaging>jar</packaging>
|
||||
<description>Sample Share JAR Module (to be included in the share.war) - part of AIO - SDK 3</description>
|
||||
<description>Sample Share JAR Module (to be included in the share.war) - part of AIO - SDK 4.11.0</description>
|
||||
|
||||
<parent>
|
||||
<groupId>${groupId}</groupId>
|
||||
@@ -25,11 +25,6 @@
|
||||
<artifactId>share</artifactId>
|
||||
<classifier>classes</classifier>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.alfresco.surf</groupId>
|
||||
<artifactId>spring-surf-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
@@ -41,4 +36,4 @@
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
</project>
|
@@ -10,7 +10,7 @@
|
||||
<shareModules>
|
||||
<moduleDependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>some-share-jar</artifactId>
|
||||
<artifactId>some-share</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>amp</type>
|
||||
</moduleDependency>
|
||||
@@ -35,9 +35,9 @@
|
||||
<source>src/main/assembly/file-mapping.properties</source>
|
||||
<filtered>false</filtered>
|
||||
</file>
|
||||
<!-- Add module-specific log4j.properties configuration at top level in the AMP -->
|
||||
<!-- Add module-specific log4j2.properties configuration at top level in the AMP -->
|
||||
<file>
|
||||
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j.properties</source>
|
||||
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j2.properties</source>
|
||||
<filtered>false</filtered>
|
||||
</file>
|
||||
</files>
|
@@ -10,7 +10,7 @@ any existing web resources in the Share.WAR.
|
||||
`
|
||||
<moduleDependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>some-share-jar</artifactId>
|
||||
<artifactId>some-share</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>amp</type>
|
||||
</moduleDependency>
|
@@ -0,0 +1 @@
|
||||
# Add here module-specific custom log4j2.properties configuration
|
@@ -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,77 @@
|
||||
#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=0.0.0.0: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:
|
||||
JAVA_TOOL_OPTIONS: "${symbol_dollar}{keystore.settings}"
|
||||
JAVA_OPTS: "
|
||||
-Dsolr.secureComms=secret
|
||||
-Dsolr.sharedSecret=secret
|
||||
-Dmessaging.broker.url=\"failover:(nio://${rootArtifactId}-activemq:61616)?timeout=3000&jms.useCompression=true\"
|
||||
"
|
||||
CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888"
|
||||
ports:
|
||||
- "${symbol_dollar}{acs.port}:8080"
|
||||
- "${symbol_dollar}{acs.debug.port}:8888"
|
||||
volumes:
|
||||
- ${rootArtifactId}-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
|
||||
command: postgres -c max_connections=300 -c log_min_messages=LOG
|
||||
ports:
|
||||
- "${symbol_dollar}{postgres.port}:5432"
|
||||
volumes:
|
||||
- ${rootArtifactId}-db-volume:/var/lib/postgresql/data
|
||||
${rootArtifactId}-ass:
|
||||
image: alfresco/alfresco-search-services:2.0.3
|
||||
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
|
||||
ALFRESCO_SECURE_COMMS: "secret"
|
||||
JAVA_TOOL_OPTIONS: "-Dalfresco.secureComms.secret=secret"
|
||||
ports:
|
||||
- "8983:8983"
|
||||
volumes:
|
||||
- ${rootArtifactId}-ass-volume:/opt/alfresco-search-services/contentstore
|
||||
- ${rootArtifactId}-ass-volume:/opt/alfresco-search-services/data
|
||||
${rootArtifactId}-activemq:
|
||||
image: alfresco/alfresco-activemq:5.16.1
|
||||
mem_limit: 1g
|
||||
ports:
|
||||
- 8161:8161 # Web Console
|
||||
- 5672:5672 # AMQP
|
||||
- 61616:61616 # OpenWire
|
||||
- 61613:61613 # STOMP
|
||||
|
||||
volumes:
|
||||
${rootArtifactId}-acs-volume:
|
||||
external: true
|
||||
${rootArtifactId}-db-volume:
|
||||
external: true
|
||||
${rootArtifactId}-ass-volume:
|
||||
external: true
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user