Compare commits

...

943 Commits

Author SHA1 Message Date
pzurek
cabce2d981 4.6.0 Release 2023-06-21 09:33:45 +02:00
Piotr Żurek
019c5c70e0 ACS-5413 Prepare SDK 4.6 Release (#650) 2023-06-21 09:03:23 +02:00
Domenico Sibilio
693fde6285 ACS-3750 Fix cancelled workflow condition (#649) 2023-02-23 16:22:13 +01:00
Damian Ujma
515d23de2c ACS-4624 Migrate to GHA (#648)
* ACS-4624 Migrate to GHA

* ACS-4624 Rename to .ci.settings.xml

* ACS-4624 Change java version to 11

* ACS-4624 Fix build

* ACS-4624 Add login to docker/quay steps

* ACS-4624 Add publish job + remove .travis.yml

* ACS-4624 Improve branch filter

* ACS-4624 Remove useless global var

* ACS-4624 Add oss sonatype credentials

* ACS-4624 Remove MAVEN_INSTALL_CMD
2023-02-20 17:19:49 +01:00
George Evangelopoulos
9a5e70f324 MNT-22384: Inline keystore settings to avoid invalid docker-compose file (#644) 2022-11-08 15:43:15 +00:00
pzurek
b57196f46e Add maven central repo configuration 2022-10-27 13:43:19 +02:00
Piotr Żurek
a565f66c76 Merge pull request #643 from Alfresco/configure-maven-central
Add maven central repo configuration
2022-10-27 13:04:25 +02:00
pzurek
b3808e3e8b Add maven central repo configuration 2022-10-27 12:43:00 +02:00
kmagdziarz
3f51507ea7 4.6.0-SNAPSHOT 2022-10-27 10:57:09 +02:00
Kacper Magdziarz
0a082f3bfc SDK 4.5
Add tests for ACS 7.3.
Add java 17 profile.

Co-authored-by: Grzegorz Oleksy <grzegorz.oleksy@hyland.com>
Co-authored-by: mstrankowski <marcin.strankowski@hyland.com>
2022-10-27 10:11:59 +02:00
Vítor Moreira
35e2800858 MNT-22946: version bump of acs-*-packaging and share (#637)
* MNT-22946: version bump of acs-*-packaging and share
* MNT-22946: updated ACS 7.2.1 versions
* MNT-22946: updated ACS 7.1.1 versions
* MNT-22946: updated ACS 7.0.1 versions
2022-09-29 13:52:39 +01:00
Kacper Magdziarz
4a56544cad ACS-3556 Add maven profile for Java 17 (#640)
* ACS-3556 Add maven profile for Java 17

* ACS-3556 Add range up to java 17 for java 11 profile.
2022-09-16 12:42:51 +02:00
Andrea Ligios
9c2ac0c956 Update README.md 2022-03-25 18:18:01 +01:00
Alex Mukha
8d407356b7 REPO-5711 Fix repository to Search services comms (#634)
The Search Services is now using a new default "secret" communication method.
The changes also have updates to use the latest Search Services version (2.0.3)
2022-03-23 18:18:22 +01:00
Andrea Ligios
42e5726313 4.5.0-SNAPSHOT 2022-03-22 13:07:16 +01:00
Andrea Ligios
9c28f38f9c SDK 4.4 (#633)
* Add 7.2 tests, remove 6.1 tests

* Fixed the version of Share in default build

* 7.2.0-A30

* Modification for solr properties.

* REPO-5709: adding alfresco-internal repository.

* REPO-5709: adding alfresco-internal repository.

* REPO-5709: adding alfresco-internal repository.

* REPO-5709: removing ACS 6.2 related tests.

* REPO-5709: adding alfresco-internal repository.

* 7.2.0

* Updated Docs and Tests versions

* Updated version in pom and documentation

* 4.4.0

Co-authored-by: mpichura <maciej.pichura@hyland.com>
2022-03-22 12:58:35 +01:00
Vítor Moreira
1aff0f2a01 Fix/mnt 22827 remove activemq all dependency (#631)
* MNT-22827: remove activemq-all dependency
2022-03-09 15:07:59 +00:00
Andrea Ligios
712eb22dd4 Getting ready for the next 4.4.0-SNAPSHOT version 2021-09-30 17:21:03 +02:00
Andrea Ligios
905f589169 Preparing for the release (4.3.0-SNAPSHOT to 4.3.0) 2021-09-30 15:44:05 +02:00
Andrea Ligios
b1139739b8 SDK 4.3 (#626)
* Improved the readability of the pom.xml

* Introduced 7.1 + upgrade others to the latest version

* Handled the new Share's versions separation

* Use a variable to set the user in the Dockerfile

* Final versions

* Updated README [ci skip]

* Fixed the broken URL to the new one

* Wildcard on the version to prevent further useless updates

Co-authored-by: gfertuso <giovanni.fertuso@alfresco.com>
2021-09-30 15:37:50 +02:00
Andrea Ligios
219389197a Revert "REPO-5641 - Allows localised file names"
This reverts commit 2319b4d1b5.
2021-09-09 17:39:19 +02:00
Andrea Ligios
782740ef99 REPO-5639 - Includes the ActiveMQ-All Jar 2021-09-09 17:39:19 +02:00
Andrea Ligios
2ce90ecc93 REPO-5641 - Allows localised file names 2021-09-09 17:39:19 +02:00
Andrea Ligios
b3a1dabf72 Upgraded the Build Tools to 1.1.5 2021-09-09 17:39:19 +02:00
Andrea Ligios
7928ae358b Activated branch sdk-4.3 on Travis 2021-09-09 17:39:19 +02:00
Andrea Ligios
a204305226 REPO-5677 - Updated HttpClient to 4.5.13 2021-09-09 17:39:19 +02:00
Andrea Ligios
0352e2fd07 Updated Commons IO from 2.5 (unsecure) to 2.11.0 2021-09-09 17:39:19 +02:00
Andrea Ligios
af396f70ac REPO-5676 - Removed the reference to the unsafe & unneeded repo 2021-09-09 17:39:19 +02:00
Nebil Kisa
8634cc1d37 Merge branch 'master' of github.com:Alfresco/alfresco-sdk 2021-06-03 13:06:07 +01:00
Andrea Ligios
a3a7e9f158 Fixed the SNAPSHOT version in SCM 2021-03-29 09:44:00 +02:00
Nebil Kisa
0d2c76cc0c Add pinentry-mode to gpg config 2021-03-19 15:33:55 +00:00
gfertuso
a39f4248a2 [maven-release-plugin][skip ci]prepare for next development iteration 2021-03-19 11:26:26 +00:00
gfertuso
97967c35e6 [maven-release-plugin][skip ci]prepare release alfresco-sdk-aggregator-4.2.0 2021-03-19 11:26:21 +00:00
gfertuso
d92a8d14e0 Revert pom.xml 2021-03-19 11:20:22 +00:00
gfertuso
c672e75db6 Revert "[maven-release-plugin][skip ci]prepare release alfresco-sdk-aggregator-4.2.0"
This reverts commit 5ea45fcc
2021-03-19 11:12:05 +00:00
gfertuso
5ea45fcca1 [maven-release-plugin][skip ci]prepare release alfresco-sdk-aggregator-4.2.0 2021-03-19 11:02:45 +00:00
gfertuso
df508d3535 Revert pom.xml 2021-03-19 10:56:27 +00:00
gfertuso
dc8ac36265 Revert "[maven-release-plugin][skip ci]prepare release alfresco-sdk-aggregator-4.2.0"
This reverts commit 232db55b
2021-03-19 10:54:17 +00:00
gfertuso
0464f9bd66 Revert "[maven-release-plugin][skip ci]prepare for next development iteration"
This reverts commit ce64b89d
2021-03-19 10:54:08 +00:00
gfertuso
ce64b89d1d [maven-release-plugin][skip ci]prepare for next development iteration 2021-03-19 10:34:33 +00:00
gfertuso
232db55be7 [maven-release-plugin][skip ci]prepare release alfresco-sdk-aggregator-4.2.0 2021-03-19 10:34:21 +00:00
Andrea Ligios
584e3e0339 SDK 4.2 - Final (#614)
* Added ActiveMQ to cope with Camel refactoring in 7.0.0-A24+
2021-03-18 14:13:16 +01:00
Andrea Ligios
a6f0b34074 Sdk 4.2 (#611)
* SDK 4.2 - Final adjustments

Co-authored-by: gfertuso <giovanni.fertuso@alfresco.com>
2021-02-12 18:59:56 +01:00
Andrea Ligios
bf853d72c8 SDK 4.2 (#609)
* migration to ACS and Share 7

* updated documentation to refer to version 4.2

* Migrated to Travis

* Dynamic Keystore settings + APL2 License fix

* Enterprise images pulled from quay.io

Co-authored-by: gfertuso <giovanni.fertuso@alfresco.com>
2021-02-09 13:18:12 +01:00
dependabot[bot]
7f19645f20 Bump junit (#603)
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-05 16:42:00 +01:00
dependabot[bot]
e61146ea07 Bump junit from 4.8.1 to 4.13.1 in /archetypes/archetypes-it (#602)
Bumps [junit](https://github.com/junit-team/junit4) from 4.8.1 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.8.1...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-05 16:39:58 +01:00
dependabot[bot]
10809ad2ba Bump junit from 4.12 to 4.13.1 in /modules/alfresco-rad (#601)
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-05 16:38:53 +01:00
Andrea Ligios
3d2ff7b1e8 travis migration (#607)
* Migrated to Travis

Co-authored-by: gfertuso <giovanni.fertuso@alfresco.com>
2021-02-02 19:05:55 +01:00
Ole Hejlskov
8998e37414 Merge pull request #598 from Alfresco/mwallach-amp-docs
Mwallach amp docs
2020-06-08 16:28:53 +02:00
Michael Wallach
c3ae5760e8 modified to reference extensions directory 2020-06-04 09:34:23 -04:00
Michael Wallach
89d4d3fd9a Added section 'another option for installing 3rd Party AMPs' 2020-06-03 10:34:14 -04:00
Jose Luis Osorno
372afc6ba4 Archetypes - Update ACS 6.2.0 version 2019-11-18 10:28:46 +01:00
Jose Luis Osorno
3908cc73b7 Archetypes - Update ACS enterprise version
Update version to 6.2.0-RC3.
2019-10-21 09:28:24 +02:00
Jose Luis Osorno
76d813f2f4 Archetypes - Update SDK and alfresco versions
- Update SDK version to 4.1.0-SNAPSHOT
- Update Alfresco versions for 6.2.0
2019-10-18 11:15:12 +02:00
Jose Luis Osorno
5edd1f7b43 Merge pull request #582 from Alfresco/sdk-4/doc-62-support
Documentation - Update documentation to SDK 4.1
2019-10-18 10:18:44 +02:00
Jose Luis Osorno
12db1fcb17 Documentation - Update documentation to SDK 4.1
- Update SDK and ACS versions
- New article how to setup ATS in alfresco community
- New troubleshooting section about configuring ATS
2019-10-18 10:16:18 +02:00
Jose Luis Osorno
3e4a793f5d Merge pull request #581 from Alfresco/bug/578
Archetypes - Fix deprecated use of maven project name
2019-10-18 08:22:21 +02:00
Jose Luis Osorno
fba08f9ab7 Archetypes - Fix deprecated use of maven project name
Fix the use of the deprecated maven key ${build.finalName}. Using ${project.build.finalName}
instead.
2019-10-18 08:20:31 +02:00
Jose Luis Osorno
56300e35aa Merge pull request #580 from Alfresco/sdk-4/workflow-sample-fix
Archetypes - Fix workflow sample
2019-10-18 08:17:55 +02:00
Jose Luis Osorno
b4b0be82ae Archetypes - Fix workflow sample
Fix workflow sample in aio and platform archetypes
2019-10-18 08:15:46 +02:00
Jose Luis Osorno
50f43f23d3 Merge pull request #579 from Alfresco/sdk-4/acs-62-support
Archetypes - Add support for ACS 6.2
2019-10-18 08:11:45 +02:00
Jose Luis Osorno
2ee5120413 Archetypes - Add support for ACS 6.2
- New alfresco community and enterprise 6.2.0 profiles
- Execute dockerfile as root to avoid issues applying AMPs
- Disable transformation service by default in archetypes
2019-10-18 08:06:00 +02:00
Ole Hejlskov
7f861a9672 Merge pull request #564 from nbarithel/pwd_whitespace
Allow working directory to include whitespaces
2019-04-16 15:24:13 +02:00
Nicolas Barithel
b199afcd7e Allow working directory to include whitespaces 2019-04-05 14:36:09 +02:00
Jose Luis Osorno
7baf3fb0a1 Merge pull request #563 from Alfresco/sdk-4.0
SDK 4.0 RELEASE
2019-03-27 15:41:34 +01:00
Jose Luis Osorno
54504b4962 Archetypes IT - Fix IT archetype version number
Modify the archetypes ITs to get the version number from the pom.xml
file instead of hardcode the version.
2019-03-27 15:09:00 +01:00
Jose Luis Osorno
1503134f77 Merge branch 'master' into sdk-4.0 2019-03-27 14:53:44 +01:00
Jose Luis Osorno
71ed669795 Merge pull request #562 from Alfresco/sdk-3.1
SDK 3.1 RELEASE
2019-03-27 14:46:25 +01:00
Jose Luis Osorno
7d9b7de8c8 Documentation - Update SDK-3.1 SDK-4.0 release versions 2019-03-27 14:42:43 +01:00
Martin Bergljung
7483212c1f Merge branch 'sdk-4.0' of https://github.com/Alfresco/alfresco-sdk into sdk-4.0 2019-03-27 10:42:29 +00:00
Martin Bergljung
3d30a5893b Added documentation around working with the projects 2019-03-27 10:25:53 +00:00
alfresco-build
32666d167f [maven-release-plugin] prepare for next development iteration 2019-03-26 20:19:31 +00:00
alfresco-build
b737483c18 [maven-release-plugin] prepare release alfresco-sdk-aggregator-4.0.0 2019-03-26 20:19:24 +00:00
alfresco-build
4cdc281f7f [maven-release-plugin] prepare for next development iteration 2019-03-26 18:50:32 +00:00
alfresco-build
f4c3ac7c84 [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.1.0 2019-03-26 18:50:25 +00:00
alfresco-build
af8c6c42c4 [maven-release-plugin] prepare for next development iteration 2019-03-26 16:25:15 +00:00
alfresco-build
e61c08c650 [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.1.0 2019-03-26 16:25:06 +00:00
Ole Hejlskov
cc14a39be4 Merge pull request #560 from Alfresco/sdk-4/platform-compile-approach
Archetypes - Change platform archetype build approach
2019-03-26 16:32:59 +01:00
Ole Hejlskov
c910fa2b40 Merge pull request #561 from Alfresco/sdk-4/share-compile-approach
Archetypes - Change share archetype build approach
2019-03-26 16:32:47 +01:00
Ole Hejlskov
3050c9deb4 Bump version to 3.1.0 2019-03-26 16:06:39 +01:00
Jose Luis Osorno
1ce98f09aa Archetypes - Change share archetype build approach
- Build the project using package goal instead of install
- Remove unused test tasks of the scripts
2019-03-26 13:45:33 +01:00
Jose Luis Osorno
6dc927e668 Archetypes - Update default enterprise version to 5.2.4 2019-03-26 13:12:35 +01:00
Jose Luis Osorno
68155ef5a6 Archetypes - Move assembly plugin up
In the platform archetype move the assembly plugin definition
before the maven resources plugin definition to be executed
always before the copy of the amp in the extensions folder.
2019-03-26 12:47:25 +01:00
Jose Luis Osorno
e5e0a7f76d Documentation - Update way of generating AMP in platform 2019-03-26 12:38:14 +01:00
Jose Luis Osorno
ea4c12a836 Archetypes - Change platform archetype build approach
- Build the project using package goal instead of install
- Copy the test dependencies only when IT is executed
- Add the build_start_it_supported task to execution scripts
2019-03-26 12:25:07 +01:00
Jose Luis Osorno
d949a778ef Merge pull request #559 from Alfresco/sdk-4/bug-reload-acs
Archetypes - Compile IT module to avoid fail reload ACS
2019-03-26 08:50:18 +01:00
Jose Luis Osorno
099ac2ddeb Archetypes - Compile IT module to avoid fail reload ACS
Add the compilation of the IT maven module to the reload_acs script
task to avoid a compilation failure if this module is not compiled
in this task.
2019-03-26 08:42:09 +01:00
Ole Hejlskov
b0bc6a38d5 Merge pull request #558 from Alfresco/sdk-4/acs-61-versions
Archetypes - Update Alfresco 6.1 versions
2019-03-25 16:56:04 +01:00
Jose Luis Osorno
1d1e89a86d Archetypes - Remove unnecessary properties 2019-03-25 16:51:05 +01:00
Jose Luis Osorno
517b20859e Documentation - Update Alfresco versions 2019-03-25 16:20:41 +01:00
Jose Luis Osorno
e27d6f1a70 Archetypes - Update ACS 6.1 versions
- Update the ACS and share versions to Alfresco 6.1.
- Set Alfresco community 6.1 as the default one.
- Create new profile to test Alfresco community 6.0.
2019-03-25 16:15:09 +01:00
Jose Luis Osorno
10557e500d Merge pull request #557 from Alfresco/bug/551
Archetypes - Make ACS containers optional in share archetype
2019-03-25 15:15:57 +01:00
Jose Luis Osorno
f7e4ea1b5c Archetypes - Make ACS containers optional in share archetype
Modify the docker-compose.yml file of the share-jar archetype in order to
comment out the unnecessary containers (ACS, ASS, DB). They're optional and
can be used simply removing the comments.
2019-03-25 15:10:51 +01:00
Ole Hejlskov
7838649c81 Merge pull request #556 from Alfresco/sdk-4/aio-build-it-supported
Archetypes - Add build with IT supported task
2019-03-25 12:27:37 +01:00
Jose Luis Osorno
deaf4c06b8 Archetypes - Add build with IT supported task
Modify the run scripts to add the task: build_start_it_supported. After the
last changes regarding the way the project is compiled and retrieves the
IT dependencies, it losted the ability to run the project in docker with
IT support (including the libraries required to execute IT) but without
executing the tests. It only had build_start (no IT supported) and build_test
(IT supported but started and stopped the environment after IT execution).

This new task allows the execution of the docker environment with IT execution
supported to cover the next use cases:
- Running IT classes from IDE (for instance, to debug the execution).
- Running IT classes with hot reload enabled.
2019-03-25 12:14:43 +01:00
Jose Luis Osorno
067d751193 Merge pull request #547 from it-novum/sdk-4.0-build-and-docker-fixes
Sdk 4.0 build and docker fixes
2019-03-25 10:28:15 +01:00
Jose Luis Osorno
c0658f3a94 Merge pull request #555 from Alfresco/bug/548-549
Archetypes - Update module dependency version
2019-03-25 08:23:20 +01:00
Jose Luis Osorno
e378eec194 Archetypes - Update project version in dependency
Change the share module dependency version to project.version in order
to avoid errors updating project version.

Fix minor typo.
2019-03-25 08:19:05 +01:00
Jose Luis Osorno
01e79d6953 Archetypes - Update project version in dependency
Change the platform module dependency version to project.version in order
to avoid errors updating project version.
2019-03-25 08:17:23 +01:00
Ole Hejlskov
b00ee7f5e5 Merge pull request #545 from it-novum/sdk-4.0-remove-duplicate-versions
Sdk 4.0 remove duplicate versions
2019-02-15 16:07:22 +01:00
Piotr Anders
6e5445a271 * Changing run scripts to execute maven package/verify instead of install (and to run unit tests during build).
* Changing artifacts collection for docker deployment in platform-docker module to use scopes (for integration tests) and adding comment how to deal with amps only or amps+jars extenstions.
2019-02-07 17:11:16 +01:00
Piotr Anders
388f74eea3 Removing duplicate library versions which are managed via imported acs-packaging pom. 2019-02-07 11:42:02 +01:00
Piotr Anders
2db3051599 Renaming modules in AIO archetype:
[artifactId]-plaform-jar -> [artifactId]-platform
[artifactId]-share-jar -> [artifactId]-share
integration-tests -> [artifactId]-integration-tests
2019-02-07 11:05:05 +01:00
panderspl
8bb094b61a Merge pull request #5 from Alfresco/sdk-4.0
Syncing upstream Sdk 4.0
2019-02-07 09:55:41 +01:00
Ole Hejlskov
a4e79cc569 Merge pull request #540 from jpotts/upgrade-to-4.0
Steps to upgrade to 4.0
2019-01-31 10:59:12 +01:00
Ole Hejlskov
c14887f549 Merge pull request #542 from Alfresco/bug/539
Archetypes - Remove redundant dependency copy
2019-01-31 10:58:32 +01:00
panderspl
4e225147ea Merge pull request #4 from Alfresco/sdk-4.0
Syncing upstream Alfresco/alfresco-sdk(sdk-4-0)
2019-01-30 11:12:13 +01:00
Jose Luis Osorno
c5e92bdc25 Archetypes - Remove redundant dependency copy
Modify the AIO archetype docker modules to remove the redundant copy
of the dependency to the corresponding jar module (share or platform).
2019-01-30 08:14:34 +01:00
jpotts
ef59a6a39a Add step to clean up project name references in run.sh and run.cmd 2019-01-29 14:16:41 +00:00
Jeff Potts
42dc3659bd Add more details around platform module and share module dependencies. Add a blurb about deleting alf_data_dev. Add a short section on how to test. 2019-01-29 14:04:05 +00:00
Jeff Potts
5d1fb4f4d9 Formatting tweaks and example project name change 2019-01-29 13:46:21 +00:00
Jeff Potts
185c4ad2bd Add new file to document upgrade steps
The new upgrading.md file documents steps necessary to upgrade from SDK 3.0.1 to SDK 4.0.0.
2019-01-29 07:26:48 -06:00
Ole Hejlskov
0b85afc6fd Merge pull request #536 from Alfresco/sdk-4/platform-it
Archetypes - Add ITs to platform jar archetype
2019-01-29 14:07:44 +01:00
Ole Hejlskov
9db0f5cff1 Merge pull request #534 from Alfresco/sdk-4/doc-change-db
Documentation - Switching ACS database
2019-01-29 14:07:35 +01:00
Ole Hejlskov
243f94227b Merge pull request #537 from Alfresco/bug/535
BUGFIX - Archetypes - Remove redundant license fileSet
2019-01-29 14:07:24 +01:00
Ole Hejlskov
330c66a1be Merge pull request #538 from Alfresco/sdk-4/gitignore
Archetypes - Add gitignore files to archetypes
2019-01-29 14:06:50 +01:00
Jose Luis Osorno
ab4927afeb Archetypes - Remove redundant license fileSet
Modify the AIO and platform-jar archetypes to remove a redundant fileSet
for the license folder.
2019-01-29 13:40:02 +01:00
Jose Luis Osorno
c48dffea69 Archetypes - Add gitignore files to archetypes
Add standard gitignore files to the archetypes.
2019-01-29 12:33:09 +01:00
Jose Luis Osorno
b3391a67c3 Archetypes - Add ITs to platform jar archetype
Modify the platform JAR archetype to include sample ITs.
2019-01-29 10:20:00 +01:00
Jose Luis Osorno
465aa3de5a Documentation - Switching ACS database
Add a new article to explain how to switch from the default
PostgreSQL database to another one (MySQL).
2019-01-29 08:48:14 +01:00
Jose Luis Osorno
b32a78b7b3 Merge branch 'master' into sdk-4.0 2019-01-28 15:38:49 +01:00
Jose Luis Osorno
7bd5c58136 Merge pull request #533 from Alfresco/sdk-4/acs-61-support
Archetypes - Add support for ACS 6.1
2019-01-28 13:53:56 +01:00
Jose Luis Osorno
5b21775793 Merge pull request #532 from Alfresco/sdk-4/documentation-update
Documentation - SDK 4 Documentation
2019-01-28 13:32:03 +01:00
Ole Hejlskov
1d551d1895 Merge pull request #531 from Alfresco/bug/sdk-3-bugfixing
BUGFIX - SDK 3.0.1 bug fixing
2019-01-28 12:36:36 +01:00
Jose Luis Osorno
766847585e Fix javadoc errors
- Fix the javadoc error raised by the javadoc-maven-plugin.
- Configure the javadoc-maven-plugin to accept custom javadoc annotations
from maven mojo development.
2019-01-28 12:30:05 +01:00
Ole Hejlskov
b366ae3ddd Merge pull request #530 from Alfresco/bug/255
BUGFIX - 255 - Archetypes - Add JS minification
2019-01-25 11:36:27 +01:00
Ole Hejlskov
19369a23b5 Merge pull request #529 from Alfresco/bug/457
BUGFIX - 457 - Archetypes - Modify IT company home assertion
2019-01-25 11:35:33 +01:00
Jose Luis Osorno
93c28f5dde 255 - Archetypes - Add JS minification
Modify the pom.xml files of the archetypes to include the
yuicompressor-maven-plugin in order to configure the minification
of the JS files.
2019-01-24 17:09:44 +01:00
Jose Luis Osorno
7792574dae 457 - Archetypes - Modify IT company home assertion
Modity the assertion about the name of the company home node in the
integration test DemoComponentIT to avoid issues with the language
in which the Alfresco environment is installed. It asserts now
about the path of the node which is independant from the language
of the application.
2019-01-24 12:34:50 +01:00
Ole Hejlskov
e8976addea Merge pull request #528 from Alfresco/bug/440
BUGFIX - 440 - Maven Plugin - Make Tomcat Maven Plugin version configurable
2019-01-24 11:48:55 +01:00
Jose Luis Osorno
a7f2db61e8 440 - Maven Plugin - Make Tomcat Maven Plugin version configurable
Add a new parameter (tomcatMavenPluginVersion) and maven property
(maven.alfresco.tomcat.maven.plugin.version) to be able to set the version of
the Tomcat Maven Plugin that is going to be used in the Alfresco Maven
Plugin to run the project.

This way, an integrator can create a patched version of the Tomcat Plugin to
solve any issue with it and tell the Alfresco Maven Plugin to use that fixed
version of the Tomcat Plugin. This is helpful with the reported issue about
the maxHttpHeaderSize (https://github.com/Alfresco/alfresco-sdk/issues/440).
2019-01-24 11:37:21 +01:00
Ole Hejlskov
2926a9ae83 Merge pull request #527 from Alfresco/bug/526
BUGFIX - 526 - Documentation - Installing 3rd party AMPs
2019-01-23 13:05:14 +01:00
Jose Luis Osorno
246ae7a138 526 - Documentation - Installing 3rd party AMPs
Fix the documentation about installing 3rd party AMPs because they
must be added as a dependency in the docker module and not in the
jar module.
2019-01-23 10:34:35 +01:00
Ole Hejlskov
387a584aa1 Merge pull request #525 from Alfresco/bug/420
BUGFIX - 420 - Maven Plugin - Add goal to generate WARs only
2019-01-22 15:15:55 +01:00
Ole Hejlskov
edd8d8317b Merge pull request #524 from Alfresco/bug/425
BUGFIX - 425 - Maven Plugin - Support for platform context file
2019-01-22 15:01:48 +01:00
Jose Luis Osorno
eb30a2d9e2 Merge pull request #491 from tartard/master
BUGFIX - Allow to write test methods in abstract classes
2019-01-22 11:01:33 +01:00
Jose Luis Osorno
cf777840be Merge pull request #496 from tartard/solr-cron
Make the Solr indexation frequency customizable
2019-01-22 10:01:15 +01:00
Jose Luis Osorno
efec137a10 Merge branch 'bug/sdk-3-bugfixing' into solr-cron 2019-01-22 10:00:46 +01:00
Jose Luis Osorno
210bee7d76 420 - Maven Plugin - Add goal to generate WARs only
Add a new goal to the Alfresco Mvane Plugin to be able to generate
the WAR files (platform, share and/or activity if they're enabled)
without the need of running the Tomcat server.
2019-01-22 09:33:39 +01:00
Jose Luis Osorno
534e70a2c4 425 - Maven Plugin - Support for platform context file
Code change migrated from PR https://github.com/Alfresco/alfresco-sdk/pull/431.

Change implemented by the user @pzrinscak.

Modify the Alfresco Maven Plugin to add the possibility to set
a custom Tomcat context file for the platform war. This features
enables the possibility to define custom JNDI resources in the
context of the Alfresco platform application.
2019-01-22 08:21:11 +01:00
Ole Hejlskov
0fcec384fd Merge pull request #523 from Alfresco/bug/469
BUGFIX - 469 - Maven Plugin - AMP files order
2019-01-21 15:59:02 +01:00
Jose Luis Osorno
9d1c2feaf2 469 - Maven Plugin - AMP files order
Modify the Alfresco Maven Plugin in order to take into
account the order in which the AMP modules were defined
as the same order of the AMPs to be applied to the war
files.
2019-01-21 15:16:46 +01:00
Ole Hejlskov
709b820f2c Merge pull request #520 from Alfresco/bug/MNT-19097
BUGFIX - MNT-19097 - Ensure unmount war files
2019-01-21 11:08:00 +01:00
Jose Luis Osorno
217f135006 Merge branch 'bug/sdk-3-bugfixing' into bug/MNT-19097 2019-01-21 11:04:49 +01:00
Ole Hejlskov
64843588f8 Merge pull request #521 from Alfresco/bug/499
BUGFIX - 499 - Maven Plugin - Add the ability to set Tomcat version
2019-01-21 10:59:56 +01:00
Ole Hejlskov
f1a7e645e4 Merge pull request #522 from Alfresco/bug/498
BUGFIX - 498 - Archetypes - Add module-specific log4j.properties to AMPs
2019-01-21 10:54:28 +01:00
Jose Luis Osorno
e3ae54be9b 498 - Archetypes - Add module-specific log4j.properties to AMPs
Add module-specific log4j.properties files to the archetypes and modify the assembly
files to include them in the AMPs. This way, it is possible to add custom log
configuration for each developed module.
2019-01-21 08:28:41 +01:00
Jose Luis Osorno
2871883c7d 499 - Maven Plugin - Add the ability to set Tomcat version
Add a new parameter to the Alfresco Maven Plugin in order to be able to set the
Tomcat version to be executed when running Tomcat through the Tomcat Maven Plugin.

The parameter "tomcatVersion" (or the Maven property "maven.alfresco.tomcat.version")
allows to modify the default Tomcat version used by the Tomcat Maven Plugin. The
default version currently is 7.0.47 (set by the Tomcat Maven Plugin v2.2). If the version
of Tomcat is not set via the plugin parameter or the maven property, then the default
one is used.
2019-01-18 15:56:26 +01:00
Jose Luis Osorno
3661a06206 Documentation - Remove not required param in markdown
Remove not required ?raw=true parameter in markdown images.
2019-01-18 14:36:06 +01:00
Ole Hejlskov
436b9a455a Update dev-env-eclipse.md 2019-01-18 14:23:55 +01:00
Ole Hejlskov
5418b57325 Update dev-env-eclipse.md
Quick change to image references to test with ABN
2019-01-18 14:22:36 +01:00
Jose Luis Osorno
376815c746 MNT-19097 - Ensure unmount war files
Ensure the unmount of the war files in the alfresco maven plugin to avoid
the exception thrown by the FsSyncShutdownHook.
2019-01-18 12:29:32 +01:00
Jose Luis Osorno
b76bb5730c Documentation - SDK 4 what's new
First version of the What's new article for SDK 4.0.
2019-01-17 16:15:07 +01:00
Jose Luis Osorno
7c4fc7a700 Documentation - Update root README file 2019-01-17 12:05:45 +01:00
Jose Luis Osorno
62dc99e9c6 Documentation - Add middle menu readme files
Add README.md files to the middle menu options to fit the requirements
of Alfresco Builder Network (ABN) in terms of structure.
2019-01-17 11:48:48 +01:00
Jose Luis Osorno
ccee83f92d Documentation - Reorganise documentation content
Reorganise the documentation content to fix the required folder structure
and file naming for the migration to ABN.
2019-01-17 11:32:21 +01:00
Jose Luis Osorno
0027ef3ec4 Documentation - Base SDK intro page
Add a new documentation article as the base entrypoint to the
SDK documentation.
2019-01-17 08:42:54 +01:00
Jose Luis Osorno
32d286cb50 Documentation - Switch ACS/Share versions
Add an article to explain how to switch from one version of
ACS/Share to another.
2019-01-16 16:31:13 +01:00
Ole Hejlskov
7017b057ea Update enterprise-docker-registry.md
Clarify that customers and partners can request access
2019-01-16 15:58:47 +01:00
Ole Hejlskov
bb3780d31d Update enterprise-mvn-repo.md
Clarify a bit that we're talking about artifacts.alfresco.com
2019-01-16 15:57:40 +01:00
Jose Luis Osorno
2954b72765 Documentation - Some fixes after review 2019-01-16 12:13:02 +01:00
Jose Luis Osorno
13f6457fbd Documentation - Integration tests
Add some articles to explain how integration tests works
and how to run these tests.
2019-01-16 11:59:45 +01:00
Jose Luis Osorno
29006d1e93 Documentation - Some fixes after review 2019-01-15 17:08:58 +01:00
Jose Luis Osorno
301d0e81a0 Documentation - Project structures
Complete project structure articles.
2019-01-15 14:36:17 +01:00
Jose Luis Osorno
4002c01134 Documentation - Project structures
Add articles to explain the SDK maven archetypes and the structure of
the projects generated with them.
2019-01-15 14:00:18 +01:00
Jose Luis Osorno
64d53e0fe6 Documentation - Working with Enterprise
Add some articles to explain how to properly configure the development
environment to work with Alfresco Enterprise instead of the Community
version.
2019-01-15 13:58:23 +01:00
Jose Luis Osorno
d1fb454772 Documentation - Control order AMPs applied
Add a new section to the article "Working with AMPs" to explain how you
can control the order the AMPs are applied.
2019-01-15 10:30:37 +01:00
Jose Luis Osorno
cdcf9c6a96 Documentation - Review fixes 2019-01-15 08:28:08 +01:00
Jose Luis Osorno
9d7c80a147 Documentation - Add metadata header
Modify the documentation articles to add a header with required
metadata.
2019-01-14 17:20:57 +01:00
Jose Luis Osorno
beae915836 Merge branch 'sdk-4/acs-61-support' into sdk-4/documentation-update 2019-01-14 16:19:21 +01:00
Jose Luis Osorno
a6a199ad50 Merge branch 'sdk-4.0' into sdk-4/acs-61-support 2019-01-14 16:15:56 +01:00
Ole Hejlskov
328faa3a5a Merge pull request #519 from Alfresco/sdk-4/avoid-error-msg
Archetypes - Logging improvements
2019-01-14 16:09:57 +01:00
Jose Luis Osorno
cdaa995422 Archetypes - Fix AIO run.bat 2019-01-14 16:01:48 +01:00
Jose Luis Osorno
8617c29300 Archetypes - Change postgresql log level
Change the log level of the postgresql container to avoid showing
needless messages.
2019-01-14 15:47:12 +01:00
Jose Luis Osorno
d2e21a38c6 Archetypes - Scripts improvement error messages
Improve the archetypes' run scripts to avoid needless error messages:
- Execute stop task only if the docker-compose file exists in the target folder
- Remove unnecessary docker rmi commands
2019-01-14 15:44:36 +01:00
Jose Luis Osorno
a01573eff8 Archetypes - Upgrade 6.1 enterprise versions
Upgrade the ACS 6.1 enterprise version to RC4.
2019-01-14 12:07:13 +01:00
Jose Luis Osorno
079b916d46 Documentation - Working with AMPs
Add a new article to explain how to work with AMPs instead of
JARs to deploy the developed Alfresco modules.
2019-01-14 08:10:54 +01:00
Jose Luis Osorno
37275bcbf1 Documentation - Dev env IntelliJ IDEA
Add a new article to explain how to setup the development
environment using IntelliJ IDEA IDE.
2019-01-14 08:10:04 +01:00
Jose Luis Osorno
7d521e9f27 Documentation - Dev env Eclipse
Add a new article to explain how to setup the development
environment using Eclipse IDE.
2019-01-14 08:08:42 +01:00
alfresco-build
a7211c206b [maven-release-plugin] prepare for next development iteration 2019-01-11 12:06:39 +00:00
alfresco-build
862c998542 [maven-release-plugin] prepare release alfresco-sdk-aggregator-4.0.0-beta-1 2019-01-11 12:06:33 +00:00
Jose Luis Osorno
29fdb576ab Fix javadoc errors
- Fix the javadoc error raised by the javadoc-maven-plugin.
- Configure the javadoc-maven-plugin to accept custom javadoc annotations
from maven mojo development.
2019-01-11 12:37:33 +01:00
Jose Luis Osorno
271ba3977f Fix javadoc errors
Fix the javadoc error raised by the javadoc-maven-plugin.
2019-01-11 12:10:12 +01:00
alfresco-build
a1cbc0687d [maven-release-plugin] prepare for next development iteration 2019-01-11 10:49:52 +00:00
alfresco-build
408fda1fd3 [maven-release-plugin] prepare release alfresco-sdk-aggregator-4.0.0-beta-1 2019-01-11 10:49:45 +00:00
Jose Luis Osorno
cb50841385 Merge branch 'sdk-4/acs-61-support' into sdk-4/documentation-update 2019-01-11 11:20:50 +01:00
Jose Luis Osorno
0d91902752 Merge branch 'sdk-4.0' into sdk-4/acs-61-support 2019-01-11 11:13:26 +01:00
Jose Luis Osorno
43405d037f Merge branch 'sdk-4.0' into sdk-4/documentation-update 2019-01-11 11:10:38 +01:00
Ole Hejlskov
4b98ff5846 Merge pull request #517 from Alfresco/sdk-4/it-logs
Archetypes - Add IT logs
2019-01-11 10:48:47 +01:00
Jose Luis Osorno
45cf124566 Documentation - Getting started
Add a new article to explain how to get started with the Alfresco
SDK 4.0. Mainly migrated from article http://docs.alfresco.com/5.2/concepts/sdk-getting-started.html.
2019-01-10 16:28:17 +01:00
Jose Luis Osorno
0f500fab25 Documentation - Projects usage 2019-01-10 15:58:24 +01:00
Jose Luis Osorno
26c4364063 Documentation - Projects usage
Initial version
2019-01-10 15:16:29 +01:00
Jose Luis Osorno
0c391693e4 Documentation - Troubleshooting 2019-01-10 13:32:33 +01:00
Jose Luis Osorno
92886f2ee9 Documentation - Troubleshooting
Add a new article to explain some troubleshooting.
2019-01-10 13:10:20 +01:00
Jose Luis Osorno
991caa2191 Documentation - How to remotely debug on IntelliJ IDEA
Add a new article to explain hot you can remotely debug the source code using
IntelliJ IDEA IDE.
2019-01-10 11:25:31 +01:00
Jose Luis Osorno
f99521a851 Documentation - How to remotely debug on Eclipse
Add a new article to explain hot you can remotely debug the source code using
Eclipse IDE.
2019-01-10 11:01:40 +01:00
Jose Luis Osorno
49b489f181 Archetypes - Change log message to trace
Change the log message showing the environment variables of the
ProcessBuilder to trace.
2019-01-10 07:36:16 +01:00
Jose Luis Osorno
424e6a5a26 Archetypes - Fix batch scripts 2019-01-10 07:35:55 +01:00
Jose Luis Osorno
a2b5e64848 Archetypes - Fix bash scripts 2019-01-09 20:39:52 +01:00
Jose Luis Osorno
6ae42f8fc0 Archetypes - Improve mvn executable localisation
Change the run script to use M2_HOME environment variable if it is
set to locate the mvn executable. If it is not set, then the script
uses a plain mvn command. So if the M2_HOME env variable is not set,
then the mvn executable must be in the path.
2019-01-09 19:27:41 +01:00
Ole Hejlskov
c2ab1cf80a Merge branch 'sdk-4/it-logs' of https://github.com/Alfresco/alfresco-sdk into sdk-4/it-logs 2019-01-09 18:58:03 +01:00
Ole Hejlskov
c7c4c49446 Try to force a Maven path from M2_HOME 2019-01-09 18:57:38 +01:00
Jose Luis Osorno
efbfc8fbba Archetypes - Modify AbstractArchetypeIT to print error output
Modify AbstractArchetypeIT to print the rror output as well as the standard
output in the execution of the integration tests.
2019-01-09 18:37:27 +01:00
Jose Luis Osorno
6e5bf3a757 Archetypes - Add extra information in sh script 2019-01-09 18:27:40 +01:00
Jose Luis Osorno
4722c14121 Archetypes - Add logs to archetype ITs
Add more logs with the result of the execution of the projects
generation and building in the archetype ITs.
2019-01-09 17:44:18 +01:00
Jose Luis Osorno
d2c4dcc015 Archetypes - Add logs to build_test task in scripts
Modify the run scripts to add docker-compose tail to the build_test
task in order to have more context of the execution of the tests in
docker.
2019-01-09 17:43:09 +01:00
Jose Luis Osorno
972c96ba0f Documentation - How to configure HotSwapAgent
Add a new article to explain how to set HotSwapAgent up in the projects
generated with the SDK.
2019-01-09 15:12:25 +01:00
Jose Luis Osorno
067473669b Documentation - Fixes and add images 2019-01-09 12:18:13 +01:00
Jose Luis Osorno
3b0c2ddc9b Documentation - How to configure JRebel
Add a new article to explain how to set JRebel up in the projects
generated with the SDK.
2019-01-09 11:56:42 +01:00
Jose Luis Osorno
9068c3209b Documentation - How to set up ATS
Add a new article to explain how to set up the Alfresco Transform Service
in the generated projects.
2019-01-09 11:54:40 +01:00
Jose Luis Osorno
4651f0a941 Archetypes - Do not filter gz files in resources 2019-01-08 09:51:39 +01:00
Jose Luis Osorno
6bef9222eb Archetypes - Add ACS 6.1 test profile
Add a new test profile named enterprise-61-tests to set the
properties required to use ACS 6.1 enterprise jars and docker
images in the integration tests.
2019-01-04 14:18:10 +01:00
Jose Luis Osorno
a97975acec Archetypes - Blank messaging broker url
Add a non persistent localhost messaging broker url to avoid
ACS 6.1 enterprise to get stuck waiting for the ActiveMQ service
that it is not configured in the SDK generated projects.

A new documentation article will be created to show how to configure
the transformation service with docker for ACS 6.1 enterprise.
2019-01-04 14:14:33 +01:00
Ole Hejlskov
f0e604bd8c Merge pull request #516 from Alfresco/sdk-4/it-verifier-archetypes
Archetypes - New ITs approach
2019-01-04 11:30:58 +01:00
Jose Luis Osorno
48a3eb6d7d Archetypes - Remote debug support for Java 11
From Java 9, the JDWP socket connector accept only local connections by default.
See: http://www.oracle.com/technetwork/java/javase/9-notes-3745703.html#JDK-8041435

So, to enable debug connections from outside, we needd to specify 0.0.0.0:8888 as
address in the CATALINA_OPTS of the ACS and share containers. This solution is
valid for both Java 8 and Java 11.
2019-01-04 08:36:00 +01:00
Jose Luis Osorno
0b79b0a71d Archetypes - Compilation profiles
Add new profiles activated by the jdk version in order to compile
the source code for Java 8 or Java 11 depending on the target platform.

For ACS 6.0 it should be used JDK 8-10, for ACS 6.1 it should be used
JDK 11.
2018-12-27 16:59:01 +01:00
Jose Luis Osorno
3b25a7549c Archetypes - Update maven plugins version
Update the version of the archetype projects maven plugin to the latests
stable one in order to avoid any issue with Java 11.
2018-12-27 16:50:27 +01:00
Jose Luis Osorno
50c5c82f36 Archetypes - Add post archetype generate scripts
Add post archetype generate groovy scripts to add exec permission to the bash
runner script in the repo jar and share jar archetypes.
2018-12-27 07:34:57 +01:00
Jose Luis Osorno
fff6bc4a41 Archetypes - Remove unnecessary dependency
Remove maven verifier dependency from the AIO archetype. It is only required
in the integration tests module.
2018-12-27 07:25:30 +01:00
Jose Luis Osorno
c9a991698d Archetypes - Add purge in AIO IT
Add a purge step before executing the build_test goal in the AIO project
to avoid old data fails the tests.
2018-12-26 13:03:34 +01:00
Jose Luis Osorno
97f0ea6119 Archetypes - Integration tests verifier approach
New approach for the execution of the ITs for the archetypes. It uses the
maven verifier component to generate the project from the archetype and
afterwards execute the required goal/s and check the results.

This approach works properly in windows in contrast to the default archetypes
ITs mechanism, which failed executing the runner script.
2018-12-26 11:19:11 +01:00
Jose Luis Osorno
7bf16b467b Archetypes - Add test profiles
Add a couple of profiles for archetypes integration tests.
+ docker-toolbox -> Sets the java system property with the ACS endpoint.
+ enterprise-60-tests -> Sets the properties to use the 6.0 enterprise jars
and docker images in the integration tests.
2018-12-26 11:15:22 +01:00
Jose Luis Osorno
29c6a08066 Archetypes - Refactor AIO integration tests
Refactor the AIO project integration tests to take into account the system
property added to set the ACS endpoint in case it is required (docker toolbox).
2018-12-26 11:13:49 +01:00
Jose Luis Osorno
00839a8170 Archetypes - Remove unnecessary test files
Remove archetype test files not required with the new integration tests
approach we're following for the archetype tests.
2018-12-26 11:11:47 +01:00
Jose Luis Osorno
646899610d Test with maven verifier - WIP 2018-12-21 12:38:23 +01:00
Jose Luis Osorno
126d31646e Merge pull request #514 from Alfresco/sdk-4/documentation
Archetypes - Update README files
2018-12-20 16:13:52 +01:00
Jose Luis Osorno
4c2ac6db7d Archetypes - Update README files
Update the README files of the archetypes with the new approach of the
Alfresco SDK.
2018-12-20 15:39:54 +01:00
Jose Luis Osorno
6cd3e0c0c2 Merge pull request #513 from Alfresco/sdk-4/archetypes-docker
Archetypes - Fixes after testing
2018-12-20 14:57:21 +01:00
Jose Luis Osorno
c6fbb76a39 Share archetype - Fix test task in script
Fix the test task in the scripts to remove the unrequired pl parameter.
2018-12-20 11:54:44 +01:00
Jose Luis Osorno
706a6c2ccd Share archetype - Fix module sub-directory name
Fix the name of the module sub-directory in the resources of the project.
2018-12-20 11:53:30 +01:00
Jose Luis Osorno
c2f94e35bd Merge pull request #512 from Alfresco/sdk-4/archetypes-docker
Archetypes - Several improvements
2018-12-20 08:59:58 +01:00
Jose Luis Osorno
8dd1ba923a Archetypes - Change docker volume names
Modify the docker volume names to be dependant of the name of
the project. This way, we can avoid issues with docker volume
name clashes with other projects that were generated with the
SDK.
2018-12-20 08:55:15 +01:00
Jose Luis Osorno
0d158017e4 Archetypes - Fix integration tests
Fix the integration tests for the archetypes and update the version
to ACS 6. The integration tests must be enhanced to enable more checks
and not only the packaging of the created project without any test
execution.
2018-12-20 08:20:51 +01:00
Jose Luis Osorno
2c9fc00ea4 Archetypes - Properly align community versions
Change the share version to be properly aligned with the platform version.
2018-12-19 17:54:34 +01:00
Jose Luis Osorno
32a27e4f53 Archetypes - disable CSRF filter ACS
Disable the CSRF filter in ACS containers.
2018-12-19 17:38:59 +01:00
Jose Luis Osorno
0577fcc168 Merge pull request #511 from Alfresco/sdk-4/archetypes-docker
Archetypes - Switch to docker environment
2018-12-19 16:27:53 +01:00
Jose Luis Osorno
c4dd6b01e6 Archetypes - Add properties to configure versions
Add properties to configure the versions of ACS and Share to be used
in the archetypes.
2018-12-19 16:06:27 +01:00
Jose Luis Osorno
eae6c13de5 Share archetype - Switch to docker environment
Change the platform project to add the required configuration to execute it
as an orchestrated docker environment that includes ACS (optional), Share,
PostgreSQL and ASS. This will replace the use of the Alfresco Maven Plugin.

New bash scripts has been added to manage the docker environment.
A new docker-compose file configure the docker environment.
All the unnecessary files and configuration have been removed from the archetype.
2018-12-19 15:35:04 +01:00
Jose Luis Osorno
0ca57b20a1 Platform archetype - Make share container optional
Comment out the share container in the docker-compose file because
it is optional in this archetype.
2018-12-19 14:20:21 +01:00
Jose Luis Osorno
82cb58f472 Platform archetype - Switch to docker environment
Change the platform project to add the required configuration to execute it
as an orchestrated docker environment that includes ACS, Share (optional),
PostgreSQL and ASS. This will replace the use of the Alfresco Maven Plugin.

New bash scripts has been added to manage the docker environment.
A new docker-compose file configure the docker environment.
All the unnecessary files and configuration have been removed from the archetype.
2018-12-19 14:13:48 +01:00
Jose Luis Osorno
779d53a051 AIO archetype - Switch to docker environment
Change the AIO project to add the required configuration to execute it
as an orchestrated docker environment that includes ACS, Share, PostgreSQL
and ASS. This will replace the use of the Alfresco Maven Plugin.

New bash scripts has been added to manage the docker environment.
A new docker-compose file configure the docker environment.
New docker aggregator modules has been created for platform and share.
All the unnecessary files and configuration have been removed from the archetype.
2018-12-19 12:05:30 +01:00
Ole Hejlskov
5a35c948ca Merge pull request #510 from Alfresco/sdk-4/acs-endpoint-property
Look for custom java system property for alfresco location
2018-12-18 12:47:07 +01:00
Jose Luis Osorno
42a4805d93 Look for custom java system property for alfresco location
Modify the Alfresco RAD module to check for the java system property acs.endpoint.path
as an alternative for the default location of alfresco which is http://localhost:8080/alfresco.

This is useful to avoid connection refuse when starting ACS 6 as a container in a windows
machine with Docker Toolbox, which exposes the containers through a custom IP instead of
localhost.
2018-12-18 12:11:00 +01:00
Fabian
1f18d34e8e Merge pull request #3 from Alfresco/sdk-4.0
Syncing changes from upstream (Alfresco/sdk 4.0)
2018-11-16 09:21:22 +01:00
Ole Hejlskov
3873d2907e Added bom property 2018-11-15 11:30:28 +01:00
Ole Hejlskov
86049b91bf Merge pull request #508 from it-novum/sdk-4.0_version_Bump
Bumping version number to 4.0 for documentation + descriptions
2018-11-12 11:56:22 +01:00
Fabian
8ff7f929e2 Merge pull request #2 from it-novum/sdk-4.0_version_Bump
Bumping version number to 4.0 for documenation + descriptions
2018-11-12 11:50:22 +01:00
Fabian Fritz
1fb478e77a Bumping version number to 4.0 for documenation + descriptions 2018-11-12 11:48:15 +01:00
Ole Hejlskov
f023ca2878 Merge pull request #507 from it-novum/sdk-4.0_version_Bump
Bump version to 4.0.0
2018-11-09 22:16:05 +01:00
Fabian
a891119b84 Merge pull request #1 from it-novum/sdk-4.0_version_Bump
Bump version to 4.0.0
2018-11-09 15:51:32 +01:00
Fabian Fritz
c84d0d4c87 Bump version to 4.0.0 2018-11-09 15:49:00 +01:00
Ole Hejlskov
d268c20c3a More clean up, fix AIO 2018-10-05 16:20:56 +02:00
Ole Hejlskov
5291dc6e97 More clean up regarding Solr and H2/other databases 2018-10-05 15:46:15 +02:00
Ole Hejlskov
697ab7c3ec Clean up poms and make compatible with ACS6 2018-10-05 15:23:50 +02:00
Ole Hejlskov
52a6938a66 Remove Solr and custom databases (including H2) from the plugin. This now requires these services to be available externally 2018-10-05 15:21:13 +02:00
Ole Hejlskov
7edac56eed Remove DB specific properties 2018-10-05 12:13:49 +02:00
Ole Hejlskov
fa828dede5 Remove Activiti experiments 2018-10-05 10:40:22 +02:00
Ole Hejlskov
f5e3552283 Merge pull request #500 from fcorti/patch-1
Typo in description.
2018-09-18 13:11:05 +02:00
Ole Hejlskov
ab9f384830 Merge pull request #505 from melahn/master
Updated the readme to bring it up-to-date.  See Issue #396
2018-09-18 13:10:42 +02:00
Gregory Melahn
dced89eda6 Updated the readme to bring it up-to-date. See Issue #396 2018-09-13 16:16:19 -04:00
Francesco Corti
3bced985d6 Typo in description.
Suggested from the Community.
(thank you Digicat and Yreg)
2018-06-04 10:07:50 +02:00
a.hausherr
f0210c173a Make the Solr indexation frequency customizable. 2018-04-06 15:21:05 +02:00
tartard
ea521ba7ee Avoid an InstantiationException to be thrown from RunTestWebscript when testing a class which inherits test methods from an abstract class. 2018-03-12 14:20:08 +01:00
Ole Hejlskov
865ae6fd38 Merge pull request #484 from marsv024/runtest_saxparseexception
Fix null check to work with assertEqual-failures and exception messages containing reserved xml characters
2017-11-09 16:49:41 +01:00
Marcus Svartmark
017dfcbff8 Fix null check to work with assertEqual-failures and exception messages containing reserved xml characters 2017-11-09 16:32:35 +01:00
Ole Hejlskov
c25417e702 Deprecate Activiti features. See #481 for more info 2017-09-22 16:40:51 +02:00
Ole Hejlskov
448b5c2929 Merge pull request #475 from tom-vandepoele/master
Feature request: adding support for custom solr config #474
2017-09-22 09:31:43 +01:00
Ole Hejlskov
ab29cc53fa Merge pull request #477 from nklomp/master
Nullpointer in code crashes Freemarker evaluation within Integration Testing
2017-09-22 09:24:50 +01:00
nklomp
228a98c566 Message of Failure delegates to getMessage() of the throwable which can be null in some cases (Nullpointer for instance) causing the Freemarker template evaluation to fail which in turn hides the real problem in the integration test 2017-07-09 19:05:05 +02:00
Tom.Vandepoele
82b7886a51 Feature request: adding support for custom solr config #474 2017-06-29 15:15:54 +02:00
Ole Hejlskov
012dc70f43 Update with 3.0.1 release info 2017-06-23 11:29:07 +02:00
alfresco-build
b8377041a5 [maven-release-plugin] prepare for next development iteration 2017-06-23 10:17:52 +01:00
alfresco-build
9071965850 [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.1 2017-06-23 10:17:47 +01:00
Ole Hejlskov
1e5db412f7 Tidy up fixes for #461 2017-06-22 12:13:28 +02:00
Ole Hejlskov
37c26cfaa8 Correctly configure the artifact id for alfresco-platform, reported in #461
This also raises questions around the use of <alfresco.platform.war.artifactId />
since this will never have any effect currently
2017-04-21 18:21:41 +02:00
Ole Hejlskov
1cd4b82037 Revert MMT dependency version 2017-04-21 17:36:06 +02:00
Ole Hejlskov
758ab83faf Merge pull request #459 from douglascrp/201702-GA_and_fixes
Solution for #458 and #454
2017-04-21 11:49:13 +02:00
Douglas C. R. Paes
8862d67acd Rolled back the api-explorer version as there is no 5.2.f version yet. 2017-04-20 16:41:49 -03:00
Douglas C. R. Paes
e4402a741f plataform and share dependencies upgraded to match the latest GA release, which is 201702-GA 2017-04-20 16:04:44 -03:00
Douglas C. R. Paes
b1facc65de gitignore 2017-04-20 16:03:12 -03:00
Ole Hejlskov
7668096829 Grab fix from #449 for 5.2.f support 2017-04-10 11:15:25 +02:00
Ole Hejlskov
ce7c374c1e Remove beta-reference in name tag in archetype poms. Fixes #446 2017-04-05 16:30:03 +02:00
Ole Hejlskov
68dda3b211 Fix endpoint url to avoid "Share services" error and fix CMM. Fixes #445 2017-04-05 16:26:41 +02:00
alfresco-build
47a329a762 [maven-release-plugin] prepare for next development iteration 2017-03-30 11:12:25 +01:00
alfresco-build
3ae8d043aa [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0 2017-03-30 11:12:20 +01:00
Ole Hejlskov
ba36d1ad5e Update readme 2017-03-30 10:25:59 +01:00
Ole Hejlskov
f54fb5e3d3 Update site, still work in progress 2017-03-27 13:28:44 +02:00
Ole Hejlskov
1a8d8b76b6 Properly separate enterprise tests, execute with correct share version 2017-03-27 11:27:09 +02:00
Ole Hejlskov
55ac6917b7 Merge branch 'master' into sdk-3.0 2017-03-27 09:58:49 +02:00
Ole Hejlskov
993d5dcefe Add archetype tests for 4.2, 5.0 and 5.1 2017-03-24 20:33:07 +01:00
Ole Hejlskov
0411bc5b1d Redo enterprise tests for the archetypes. When running "mvn clean install" only archetype tests for community edition.
Enabling the enterprise-tests profile will run all the tests
2017-03-24 16:49:13 +01:00
Ole Hejlskov
07bb743cfd Tidy up default pom 2017-03-24 15:09:59 +01:00
Ole Hejlskov
ccb9f3d86f Merge branch 'sdk-3.0' of https://github.com/Alfresco/alfresco-sdk into sdk-3.0 2017-03-24 14:51:19 +01:00
Ole Hejlskov
aebda9bf06 Move alfrescoEdition / maven.alfresco.edition up 2017-03-24 14:50:33 +01:00
Samuel Langlois
b7dbbe8995 Downgrade alfresco-mmt dependency to 5.1.g, for plugin to work with JDK7 2017-03-23 17:17:55 +00:00
Samuel Langlois
c9b33b4f59 #443 Upgrade Maven plugins and dependencies 2017-03-23 16:08:31 +00:00
Ole Hejlskov
93dde46f51 Deploy default webapp to / which enables an index.html (for AIO) to point to the services (#434) 2017-03-23 16:40:29 +01:00
Ole Hejlskov
addbc750c4 Merge pull request #438 from jgoldhammer/sdk-3.0
fixes(spring): use xml schema instead of dtd
2017-03-23 16:23:15 +01:00
Ole Hejlskov
e302055caf Merge branch 'sdk-3.0' into sdk-3.0 2017-03-23 16:23:05 +01:00
Ole Hejlskov
3b7e32df20 Initial fix for archetype tests 2017-03-23 16:08:35 +01:00
Ole Hejlskov
8178eac5b8 Remove debugging for cleaner test run 2017-03-23 11:54:33 +01:00
Ole Hejlskov
b5ec7b415d Add default hotswap agent to platform jar archetype. Enable integration testing on the archetype as well 2017-03-23 10:55:58 +01:00
Ole Hejlskov
278ba7f600 Comment out AMP assembly by default 2017-03-22 22:35:02 +01:00
Ole Hejlskov
fef948b982 Bring back resources plugin to archetype, otherwise test-resources get added too late 2017-03-22 21:27:17 +01:00
Ole Hejlskov
245a51402d Close the loop on 4.2 support and Solr 2017-03-22 21:07:17 +01:00
Ole Hejlskov
3630cced6d Remove references to buildonly 2017-03-20 16:29:02 +01:00
Ole Hejlskov
892920c114 Add hotswap-agent.properties for both platform and share jars 2017-03-20 15:23:52 +01:00
Ole Hejlskov
24500024ed Add integration-test module as a dependency for the platform war and include it to allow remote execution 2017-03-10 16:46:35 +01:00
Ole Hejlskov
85c7e11bb6 Make port configurable and dynamic 2017-03-09 16:44:22 +01:00
Martin Bergljung
aede276f9b Made sure alfresco:run can be executed without interference from alfresco:it,#401 2017-02-28 08:14:27 +00:00
Martin Bergljung
264d326bf2 Removed assembly/lib dir and associated descriptor config, picked up from dependency config 2017-02-23 11:57:35 +00:00
Martin Bergljung
d2868bdfae Added integration-tests subproject to AIO, #401 2017-02-23 09:53:13 +00:00
Martin Bergljung
673461b6e2 Fixed hard-coded bean ID in DemoComponentIT, #401 2017-02-17 16:07:25 +00:00
Martin Bergljung
6f1d01394d Initial check-in of Bindu's AlfrescoTestRunner frameowork plus sample tests, #401 2017-02-16 10:45:51 +00:00
Martin Bergljung
f5404b9d40 Updated to latest GA 5.2 libs, #439 2017-02-01 12:48:14 +00:00
Jens Goldhammer
e6394e25b7 fixes(spring): use xml schema instead of dtd
also increased xsd to spring version 3.0

fixes #429
2016-11-26 22:35:26 +01:00
Ole Hejlskov
0fd842192b Merge pull request #435 from Alfresco/github-issuetemplate
chore(github) : new github issue template
2016-11-23 20:38:41 +01:00
Jens Goldhammer
be8e10a556 chore(github) : new issue template
This commit provides an issue template which will be used when users will report a bug or suggest a new feature.
This should help to provide better and quicker support for the reported issues of alfresco SDK.
2016-11-23 20:28:55 +01:00
Martin Bergljung
3031b401a2 Fix logging for Share extensions, #418 2016-10-10 13:31:51 +01:00
Martin Bergljung
723b309670 Added validation of existence of alfresco-global-*.properties files, #416 2016-10-10 10:10:48 +01:00
Martin Bergljung
051e967240 Merge branch 'sdk-3.0' of https://github.com/Alfresco/alfresco-sdk into sdk-3.0 2016-10-10 09:06:35 +01:00
Martin Bergljung
1f46a9e2ff Added the possibility to use custom context path for Share, #417 2016-10-10 09:06:19 +01:00
alfresco-build
3cbdb5dc8e [maven-release-plugin] prepare for next development iteration 2016-10-05 09:51:22 +01:00
alfresco-build
07543c68d3 [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-5 2016-10-05 09:51:19 +01:00
Martin Bergljung
a07219e6e6 Support for custom webapps and sysprops, #412,#413 2016-10-03 12:05:39 +01:00
Martin Bergljung
4e26291761 Merge branch 'sdk-3.0' of https://github.com/Alfresco/alfresco-sdk into sdk-3.0 2016-09-30 12:10:54 +01:00
Martin Bergljung
c2ac314930 Initial check-in of Activiti JAR module, #410, #415 2016-09-30 12:10:35 +01:00
alfresco-build
08acf1f433 [maven-release-plugin] prepare for next development iteration 2016-09-23 10:02:48 +01:00
alfresco-build
b9331c365f [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-4 2016-09-23 10:02:44 +01:00
Ole Hejlskov
63bd9a63c0 Remove sources and javadoc plugin. This is already handled by the release plugin 2016-09-23 10:56:47 +02:00
alfresco-build
f1dbb608d9 [maven-release-plugin] prepare for next development iteration 2016-09-23 09:40:38 +01:00
alfresco-build
657d16b91c [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-4 2016-09-23 09:40:34 +01:00
alfresco-build
7739556c94 [maven-release-plugin] prepare for next development iteration 2016-09-23 09:14:01 +01:00
alfresco-build
d7b0805cef [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-4 2016-09-23 09:13:57 +01:00
Martin Bergljung
0b8db99cd8 Added debug.* scripts 2016-09-19 14:45:25 +01:00
Martin Bergljung
eba635c8f8 All logging controlled by src/test/resources/alfresco/extension/dev-log4j.properties, #392 2016-09-19 14:13:36 +01:00
Martin Bergljung
2782f30a42 Improved support for using different databases, #400 2016-09-16 17:53:08 +01:00
Samuel Langlois
a32a537206 internal-release profile allows publishing release in our Nexus repo 2016-09-15 17:01:08 +01:00
Martin Bergljung
49160034cf Upgraded to Community release 201609 EA and added API Explorer app to AIO and Platform module, #402 2016-09-15 14:08:03 +01:00
Martin Bergljung
50dac567c2 Added filtering of web resources added to AMP, #409 2016-09-15 12:58:08 +01:00
Martin Bergljung
9a7630acfb Added excludes for resource filtering, so we don't filter for example FTL, #407 2016-09-15 11:33:37 +01:00
Martin Bergljung
be11344137 Switched to props config for compiler plugin, #404 2016-09-14 10:14:19 +01:00
Martin Bergljung
db9d7d637c Add compiler plugin and set Java 7, #404 2016-09-14 09:12:34 +01:00
Martin Bergljung
04fe0678d7 Support for MySQL, PostgreSQL, and custom Tomcat dependencies, #400 2016-09-12 16:57:02 +01:00
Martin Bergljung
b46f173fb4 Added WAR artifact id property to platform jar project, #403 2016-09-12 14:09:05 +01:00
Martin Bergljung
d69f7e4937 Added private/enterprise repo to POMs, #394 2016-09-12 11:31:23 +01:00
Martin Bergljung
788347a5dd Support for overriding out-of-the-box web resources and including 3rd party libs, #389 2016-09-07 11:28:40 +01:00
Martin Bergljung
d6f11dd977 Added license directory placeholders 2016-09-06 09:50:39 +01:00
Martin Bergljung
f0955cff98 Changed where Enterprise license should be located, #395 2016-09-06 09:19:34 +01:00
Martin Bergljung
05b2cfbb1e Fix so JAR project files are not duplicated in WAR, #391 2016-09-05 15:23:53 +01:00
alfresco-build
558d4b422c [maven-release-plugin] prepare for next development iteration 2016-09-05 14:35:29 +01:00
alfresco-build
d040ceb60d [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-3 2016-09-05 14:35:25 +01:00
alfresco-build
a8db2ddde0 [maven-release-plugin] prepare for next development iteration 2016-09-05 14:25:15 +01:00
alfresco-build
c9d1878cb9 [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-3 2016-09-05 14:25:02 +01:00
Martin Bergljung
99c0a14220 Fix loading from META-INF in JAR, such as share-config-custom.xml, fix loading of resources such as /alfresco/test.html, #388 2016-08-26 09:12:17 +01:00
alfresco-build
6a1b09c102 [maven-release-plugin] prepare for next development iteration 2016-08-25 18:56:03 +01:00
alfresco-build
19d76702bd [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-2 2016-08-25 18:55:58 +01:00
Martin Bergljung
b88a0ae73b Removed the need for SDK version in RunMojo 2016-08-24 14:19:23 +01:00
alfresco-build
30d72ee6bd [maven-release-plugin] prepare for next development iteration 2016-08-22 11:35:10 +01:00
alfresco-build
75672bd2c4 [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-1 2016-08-22 11:35:00 +01:00
Ole Hejlskov
58843e516c Revert version after Bamboo failed 2016-08-22 12:28:48 +02:00
alfresco-build
db8c5e9cfd [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-1 2016-08-22 11:19:54 +01:00
alfresco-build
027ddb7df8 [maven-release-plugin] prepare for next development iteration 2016-08-22 11:09:33 +01:00
alfresco-build
9faf59972b [maven-release-plugin] prepare release alfresco-sdk-aggregator-3.0.0-beta-1 2016-08-22 11:09:29 +01:00
Ole Hejlskov
89566dc20b Don't hardcode a static copy of out dated h2 scripts 2016-08-22 11:57:27 +02:00
Ole Hejlskov
4bea907d8d Fix dynamic version for share-jar archetype as well 2016-08-22 11:53:59 +02:00
Martin Bergljung
89d4d7921a Fix dynamic setting of Alfresco Maven Plugin version 2016-08-22 10:52:04 +01:00
Martin Bergljung
c41d713643 For Solr data path on Windows machines 2016-08-22 10:08:27 +01:00
Martin Bergljung
a49c657441 Fixed content model to avoid confusion, remove property named property etc 2016-08-22 07:42:45 +01:00
Martin Bergljung
8968f8227b Fixed bug in share-jar project Alfresco Maven plugin config 2016-08-19 16:04:17 +01:00
Martin Bergljung
595a1c4cbc Fix mixup of module dependencies 2016-08-19 13:23:06 +01:00
Martin Bergljung
6bc23959b8 Added aikau.version prop and dependency so it can be brought in separately 2016-08-19 11:56:58 +01:00
Martin Bergljung
b84bcf798c Enterprise edition support, including license injection 2016-08-18 18:46:24 +01:00
Ole Hejlskov
38f69583d4 Bring back h2 support by copying them manually. Even though we have h2scripts from 5.1.e we don't have it for the older releases 2016-08-18 18:00:35 +02:00
Martin Bergljung
e997a33fc9 Fix h2 scripts for 5.0.[b|c], handle alfresco-platform or alfresco, clarify props docs 2016-08-18 13:49:41 +01:00
Martin Bergljung
07c06a2bbd Fixing hard-coded artifactId aio 2016-08-18 11:37:43 +01:00
Martin Bergljung
a724b3596e First take on supporting 4.2 in SDK 3, and fix WAR assembly 2016-08-18 09:41:42 +01:00
Martin Bergljung
d46fa394e7 Share JAR Maven Archetype for SKD 3.0 2016-08-16 15:56:37 +01:00
Martin Bergljung
101a04e309 Platform JAR Maven Archetype for SKD 3.0 2016-08-16 14:52:42 +01:00
Martin Bergljung
6eb8903562 AIO Maven Archetype for SKD 3.0 2016-08-16 11:06:24 +01:00
Martin Bergljung
4fca9989fd Added support for running version 5.0.x 2016-07-06 16:46:11 +01:00
Martin Bergljung
e8c1e19ecb Removed some params, changed module lists param names 2016-06-30 14:55:31 +01:00
Martin Bergljung
9ff222e8ed War assembly now handled by alfresco plugin, no need for war poms 2016-06-30 13:07:46 +01:00
Martin Bergljung
a05d69eac2 Removed context files for Share and Platform webapps, no longer needed, handled by jrebel 2016-06-27 15:47:16 +01:00
Martin Bergljung
e9fa82da5c Fixed refresh URL tomcat port default 2016-06-27 15:09:07 +01:00
Martin Bergljung
d2c6335869 Alfresco Maven plugin work for SDK 3 2016-06-23 12:38:59 +01:00
alfresco-build
3010c9773a [maven-release-plugin] prepare for next development iteration 2016-03-03 17:01:35 +00:00
alfresco-build
b7fff632e7 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.2.0 2016-03-03 17:01:29 +00:00
Ole Hejlskov
5b3b5d3914 Bump version down to 2.2.0-SNAPSHOT 2016-03-03 17:04:19 +01:00
Martin Bergljung
9b5db76577 Fix for share-amp/run.bat 2016-03-03 15:59:52 +00:00
Ole Hejlskov
43ad42aac8 Merge pull request #367 from jphuynh/master
Logo image source link was dead. Fixed that to use the logo published…
2016-03-03 16:33:35 +01:00
Jean-Pierre Huynh
9c5f1e9e0d Logo image source link was dead. Fixed that to use the logo published on wiki.alfresco.com. 2016-03-03 14:23:12 +00:00
alfresco-build
c46b0b86d2 [maven-release-plugin] prepare for next development iteration 2016-03-03 11:39:37 +00:00
alfresco-build
99031d5def [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.2.0 2016-03-03 11:39:32 +00:00
Ole Hejlskov
0bdacc4787 Realign ID's for authentication with Nexus 2016-03-03 11:53:40 +01:00
Ole Hejlskov
b6e170a0ce Remove 5.1 EA repositories 2016-03-03 11:40:19 +01:00
Ole Hejlskov
a37b121cb6 Add Alfresco REST API Explorer, see #366 for more details 2016-03-03 11:12:10 +01:00
Martin Bergljung
c7591ca848 #364 2016-02-29 16:35:43 +00:00
Martin Bergljung
54a067325a #356 - minor fix in run.bat 2016-02-29 15:32:31 +00:00
Martin Bergljung
ceed7af6fe #356 2016-02-29 15:14:15 +00:00
Martin Bergljung
377aaa5459 #355 2016-02-29 11:27:04 +00:00
Martin Bergljung
b226302572 Merge pull request #331 from Alfresco/slanglois-issue-298
#298 Define argLine as a property, not in surefire
2016-02-29 09:18:08 +00:00
Martin Bergljung
876f6286fc Bring branch up to date 2016-02-29 09:16:50 +00:00
Martin Bergljung
5d59d6cd27 Added back Spring Loaded when running Share AMP 2016-02-29 08:58:22 +00:00
Martin Bergljung
6d4b901129 Merge pull request #359 from loftuxab/utf8-url-fix
The current configuration doesn't encode url:s tomcat7-maven-plugin.
2016-02-29 08:23:47 +00:00
Peter Löfgren
0854929d99 The current configuration doesn't encode url:s properly and this breaks any pages/webscripts that uses parameters that contains non us-ascii characters. Adding the uriEncoding solves this. 2016-02-19 12:39:22 +01:00
alfresco-build
8415da72b0 [maven-release-plugin] prepare for next development iteration 2016-02-04 10:41:55 +00:00
alfresco-build
14cd4be39c [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.2.0-beta-1 2016-02-04 10:41:50 +00:00
Ole Hejlskov
f2f5698a3b Remove double activation tag from pull request #352 2016-02-04 11:00:46 +01:00
Ole Hejlskov
5b83b99549 Merge pull request #352 from michaeljmuller/master
change activation of enforce-sdk-rules so it's *really* on by default, as intended
2016-02-04 10:54:24 +01:00
Ole Hejlskov
181951ed99 Add MAVEN_OPTS that are compatible with JDK7 but comment out by default. See DEVPLAT-456 for more info 2016-02-04 10:50:21 +01:00
Ole Hejlskov
a4711142e6 Merge pull request #354 from michaeljmuller/chmod
make run.sh executable during the "validation" phase of the build
2016-02-04 10:39:06 +01:00
Michael Muller
78d1466220 make run.sh executable during the "validation" phase of the build 2016-02-03 12:00:13 -07:00
Michael Muller
d99539c9b0 change activation of enforce-sdk-rules so it's *really* on by default, as intended 2016-02-03 11:37:34 -07:00
Ole Hejlskov
30bfc14422 Fix escaping 2016-01-29 10:57:27 +01:00
Martin Bergljung
641aa6bb8e DEVPLAT-440 2016-01-25 14:37:57 +00:00
Ole Hejlskov
f031c76a41 Add JS to the nonFilteredFileExtension list. See #254 for more info 2016-01-22 16:12:30 +01:00
Ole Hejlskov
2ad03e3f5c Bump version to 2.2.0-SNAPSHOT 2016-01-22 16:05:37 +01:00
Martin Bergljung
7275ba32e8 DEVPLAT-452 2016-01-22 08:26:23 +00:00
Samuel Langlois
9bf50267dd Housekeeping: upgrading versions of dependencies and Maven plugins 2016-01-21 12:22:51 +00:00
Martin Bergljung
bbe3de2abb DEVPLAT-444 2016-01-21 11:26:15 +00:00
Samuel Langlois
5c01e8127c Change <id> of temporary Maven Repo hosting 5.1-EA, to fix CI 2016-01-21 11:20:35 +00:00
Martin Bergljung
9a1b97e64d DEVPLAT-442 2016-01-21 10:34:36 +00:00
Martin Bergljung
b3955a1b4f DEVPLAT-443 2016-01-20 10:41:06 +00:00
Martin Bergljung
2e546a1cae DEVPLAT-445 2016-01-20 10:18:04 +00:00
Martin Bergljung
9dd9f530bb DEVPLAT-333, DEVPLAT-435, DEVPLAT-436, DEVPLAT-437, DEVPLAT-438, DEVPLAT-439, DEVPLAT-447 2016-01-12 15:14:53 +00:00
Ole Hejlskov
7c0ac3afb6 Remove AMP Mojo, we only need the archiver for the AMP assembly 2015-11-08 21:22:45 +01:00
Ole Hejlskov
2cbfd36041 Bump version to 3.0.0-SNAPSHOT 2015-11-06 21:23:23 +01:00
Ole Hejlskov
9faf5114f3 Initial attempt at a JAR runner mojo 2015-11-06 21:22:58 +01:00
Ole Hejlskov
27bcaa3daf Revert "Revert "DEVPLAT-338, Incorrect naming of AIO AMPs, #311""
This reverts commit b2afebed09.
2015-11-06 21:16:57 +01:00
Ole Hejlskov
8f29244d99 Changed my info for future reference. I no longer work with Magenta 2015-10-19 17:55:01 +02:00
Ole Hejlskov
87af573673 Updated README with 2.1.1 information 2015-10-19 17:15:50 +02:00
alfresco-build
d53184196b [maven-release-plugin] prepare for next development iteration 2015-10-19 11:20:20 +01:00
alfresco-build
4431863500 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.1 2015-10-19 11:20:15 +01:00
alfresco-build
d2e9b89720 [maven-release-plugin] prepare for next development iteration 2015-10-09 15:34:00 +01:00
alfresco-build
cda786187c [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.1-beta-3 2015-10-09 15:33:54 +01:00
Ole Hejlskov
8cf04fc98d Revert "[maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.1-beta-1"
This reverts commit 3b579596db.
2015-10-09 15:55:24 +02:00
alfresco-build
3b579596db [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.1-beta-1 2015-10-09 14:19:39 +01:00
Ole Hejlskov
b2afebed09 Revert "DEVPLAT-338, Incorrect naming of AIO AMPs, #311"
This reverts commit 6c57d9ede0.

We can't put this commit in a SP release, so we have to revert the revert when we need it back
2015-10-09 13:48:22 +02:00
Martin Bergljung
3707dbc5d6 DEVPLAT-343, alfresco-sdk uses relative path for dir.root,#289 2015-10-07 19:50:34 +01:00
Martin Bergljung
f3d85a19ce DEVPLAT-342, Define argLine property rather than setting it in surefire, to ease integration with other plugins, #298 2015-10-07 13:01:54 +01:00
Martin Bergljung
6c57d9ede0 DEVPLAT-338, Incorrect naming of AIO AMPs, #311 2015-10-07 10:45:51 +01:00
Martin Bergljung
0958c63b44 DEVPLAT-337, AIO/share-amp share-config-custom.xml changes are not loaded, #299 2015-10-05 13:47:14 +01:00
Martin Bergljung
eeb5e7304f DEVPLAT-108, Repo-amp contains unwanted libs after running amp-to-war 2015-10-02 09:20:45 +01:00
alfresco-build
8d06e0e791 [maven-release-plugin] prepare for next development iteration 2015-09-28 13:12:09 +01:00
alfresco-build
a11a3a65b6 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.1-beta-2 2015-09-28 13:12:03 +01:00
Ole Hejlskov
5936c3fcda Merge pull request #326 from binovo/Issue/317
fix issue #317
2015-09-24 15:15:47 +02:00
Samuel Langlois
3e7a6d83a9 #298 Define argLine as a property, not in surefire
Allows other plugins (such as JaCoCo) to tune the argLine parameters of the JVM forked by surefire
2015-09-16 17:03:40 +01:00
alfresco-build
235a84105a [maven-release-plugin] prepare for next development iteration 2015-09-01 09:04:47 +01:00
alfresco-build
3465b3aaf5 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.1-beta-1 2015-09-01 09:04:41 +01:00
Ole Hejlskov
509e4072e8 Revert version back to 2.1.1-SNAPSHOT 2015-09-01 09:29:52 +02:00
alfresco-build
6e7e2d7740 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.0.0 2015-08-31 15:08:14 +01:00
Martin Bergljung
841c72e64a DEVPLAT-258,Ensure demoComponent is loaded properly,#220 2015-08-27 08:23:47 +01:00
Martin Bergljung
6b83be9d9f DEVPLAT-83 - Remove plexus-archiver from maven-war-plugin definition in parent SDK pom 2015-08-26 12:11:52 +01:00
Martin Bergljung
f4c9a36256 DEVPLAT-107 - Add scope test to <artifactId>selenium-java</artifactId> in aio/share-amp/pom.xml, #300 2015-08-26 11:43:59 +01:00
Martin Bergljung
7309916d83 DEVPLAT-151 - Files that are generated from the Share AMP archetype needs unique names 2015-08-26 10:22:45 +01:00
mindthegab
de723e44ff Fix DOCS-1155 2015-08-12 16:48:07 -04:00
Igor Blanco
60dac34448 fix issue #317 2015-08-03 15:50:41 +02:00
mindthegab
477067a992 udpated release profile to run enterprise-tests as per issue #314 2015-07-30 14:16:18 -04:00
mindthegab
016879ec87 added link to command reference in response to request on issue #309 2015-07-30 14:12:20 -04:00
mindthegab
97cbaefc6f fixed issue #314 - by default now mvn clean install works without enterprise access. to run enterprise-tests use -Penterprise-tests 2015-07-30 13:46:54 -04:00
Samuel Langlois
c854a0aad3 Issue #301: remove JDK8 specific flag for Javadoc 2015-07-23 10:24:52 +01:00
Samuel Langlois
d483c01a6c Set ALL settings to Java 7 for compiler plugin + remove test on JDK version 2015-07-23 10:15:45 +01:00
mindthegab
3116123800 reverted target version for the SDK to java7 for issue #301, added some logging for issue #297 2015-07-22 17:10:26 -04:00
mindthegab
a39a11ffe7 fixed issue #297, now webappDirectory is honored if present 2015-06-01 18:13:36 +01:00
mindthegab
41dd5ff1ea imprving unarchiver logging 2015-06-01 12:54:13 +01:00
mindthegab
2a3eb3919e improved logging 2015-05-29 17:00:19 -04:00
mindthegab
f9c4647f22 more fixes for issue #254 2015-05-29 10:31:17 -04:00
mindthegab
bc97442af7 Merge pull request #288 from jphuynh/master
DEVPLAT-75: Added Alfresco PGP public key and fingerprint information
2015-05-22 09:46:55 -04:00
Jean-Pierre Huynh
9c49d6c7f9 DEVPLAT-75: Added Alfresco PGP public key and fingerprint information 2015-05-21 07:29:06 +01:00
mindthegab
2453421d1b Update README.md 2015-05-20 18:28:36 -04:00
mindthegab
5e17baa651 Update README.md 2015-05-20 18:19:32 -04:00
mindthegab
c3b43c0c68 Update README.md 2015-05-20 18:18:28 -04:00
mindthegab
6f0589ce63 Update README.md 2015-05-20 18:17:08 -04:00
mindthegab
abee710157 Updated readme.MD 2015-05-20 18:12:53 -04:00
mindthegab
19b0d1d8a7 Updated README for SDK 2.1.0 release 2015-05-20 18:07:52 -04:00
mindthegab
6ebaa083d4 Merge pull request #281 from Alfresco/readme-update
Updated SDK README, needs further edits.
2015-05-20 17:23:33 -04:00
mindthegab
80f62c65ca Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2015-05-20 12:01:22 -04:00
mindthegab
f946d711ea issue #267 - added logging to install amp goal 2015-05-20 12:01:07 -04:00
alfresco-build
4a25c4ceba [maven-release-plugin] prepare for next development iteration 2015-05-20 13:24:05 +01:00
alfresco-build
6140990608 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.0 2015-05-20 13:24:00 +01:00
Martin Bergljung
6a6fcacf78 DEVPLAT-72: Move site-webscripts and site-data in under web-extension for share-amp 2015-05-18 14:11:06 +01:00
Martin Bergljung
3a9f08620a DEVPLAT-71: Set <disable-resource-caching> to false for AIO and Share AMP 2015-05-18 11:33:26 +01:00
Martin Bergljung
8b48a63e0a DEVPLAT-70, the share/src/test directory in the AIO artefact is not generated 2015-05-18 09:22:01 +01:00
Martin Bergljung
d0fdd2fdfe Updated enforcer plugin config, DEVPLAT-67 2015-05-15 11:11:40 +01:00
mindthegab
603fe956c6 DEVPLAT-67 - partial update for JDK 8 2015-05-14 11:00:21 -04:00
mindthegab
ccb6728e4c Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2015-05-14 10:49:37 -04:00
mindthegab
3ef4131ce8 Fixing javadoc strict build 2015-05-14 10:38:18 -04:00
Martin Bergljung
f1735544ab Fixed Solr Data Dir path on Windows, #284 2015-05-14 11:38:12 +01:00
Ole Hejlskov
ee6861e873 Bump to Java 8 by default 2015-05-12 17:24:48 +02:00
Ole Hejlskov
2a45c2eaa5 Merge pull request #277 from rpiccoli/master
Alfresco 5.0.1 supports Java 8, but Maven Compiler settings are hardcode...
2015-05-12 17:07:49 +02:00
Martin Bergljung
b33837280d Added Java controller to sample webscript 2015-05-12 10:47:34 +01:00
Ole Hejlskov
748231a932 Rename properties to a more consistent scheme. All refresh mojo related properties are now maven.alfresco.refresh.* (#283) 2015-05-11 15:39:42 +02:00
Ole Hejlskov
8707fbebbf Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2015-05-11 15:23:56 +02:00
Ole Hejlskov
8d5d26a1a5 Add the alfresco-maven-plugin to AIO parent poms so the plugin shows up in IDEA (#283) 2015-05-11 15:23:14 +02:00
alfresco-build
0f6b82d7f1 [maven-release-plugin] prepare for next development iteration 2015-05-11 14:12:53 +01:00
alfresco-build
c7559ba8ea [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.0-beta-1 2015-05-11 14:12:48 +01:00
Ole Hejlskov
96efddd7af Refactor Refresh Mojo's to be more dynamic and aware of its sourroundings (#283) 2015-05-11 14:11:38 +02:00
alfresco-build
1a95fab1eb [maven-release-plugin] prepare for next development iteration 2015-05-11 12:48:58 +01:00
alfresco-build
85ea35c7b6 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.0-beta-1 2015-05-11 12:48:53 +01:00
alfresco-build
788b64ccc6 [maven-release-plugin] prepare for next development iteration 2015-05-11 10:58:09 +01:00
alfresco-build
ec8c8748e8 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.0-beta-1 2015-05-11 10:58:03 +01:00
Martin Bergljung
b3d1a5b3d1 Removed PermGen JVM setting from run scripts, not used in JDK8 2015-05-11 09:58:12 +01:00
Martin Bergljung
b265ffb00e DEVPLAT-31: JS Compression, regression fix, #269 2015-05-11 08:00:42 +01:00
alfresco-build
d5e9278d52 [maven-release-plugin] prepare for next development iteration 2015-05-08 16:23:07 +01:00
alfresco-build
db7e154a31 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.0-beta-1 2015-05-08 16:23:01 +01:00
Ole Hejlskov
b84ea0ffb3 Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2015-05-08 16:28:11 +02:00
Ole Hejlskov
56f8336af3 Fix a few issues in refresh-share goal (defaults) and read port from maven.tomcat.port.
Fix XML issue in AIO PO testing suite to keep Eclipse happy
2015-05-08 16:27:20 +02:00
alfresco-build
790b8cdfdb [maven-release-plugin] prepare for next development iteration 2015-05-08 15:24:59 +01:00
alfresco-build
dbec475d0b [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.0.1-beta-1 2015-05-08 15:24:54 +01:00
alfresco-build
c541f66845 [maven-release-plugin] prepare for next development iteration 2015-05-07 15:19:15 +01:00
alfresco-build
fab637d1cb [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.0-beta-1 2015-05-07 15:19:10 +01:00
mindthegab
e8c7fdbc8b fixed version 2015-05-07 09:42:45 -04:00
mindthegab
b178eaffaa fixed broken version by CI 2015-05-07 09:26:56 -04:00
Martin Bergljung
8fa82cfad5 Fixed regression testing for Community Share #217 2015-05-07 10:00:40 +01:00
Martin Bergljung
f050c75615 Updated SDK README 2015-05-06 09:38:04 +01:00
alfresco-build
f3f70d6035 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.1.0-beta-1 2015-05-05 23:16:09 +01:00
Martin Bergljung
da6c97d857 DEVPLAT-58 - replace refresh profiles with alfresco-maven-plugin goals 2015-05-01 16:18:54 +01:00
Ricardo Piccoli
d4872f7e1a Alfresco 5.0.1 supports Java 8, but Maven Compiler settings are hardcoded to 1.7 2015-05-01 14:10:16 +01:00
Martin Bergljung
c79889e662 Added run.bat files to archetypes 2015-04-30 08:42:19 +01:00
Martin Bergljung
ed7e5e2ead DEVPLAT-49 - Split clear-caches-refresh-ws profile into one for repo and one for share and make port number configurable 2015-04-28 15:21:44 +01:00
Ricardo Piccoli
126747dbc9 Alfresco 5.0.1 supports Java 8, but Maven Compiler settings are hardcoded to 1.7 2015-04-28 10:41:06 +01:00
Martin Bergljung
4c0e340ab4 DEVPLAT-6: Fix regression and functional IT (still needs proper release of share-po) 2015-04-27 14:22:35 +01:00
Samuel Langlois
cf86202c28 Upgrade Enterprise default version to 5.0.1 2015-04-22 18:33:12 +01:00
Martin Bergljung
d8816d7fa7 DEVPLAT-50 2015-04-21 09:42:16 +01:00
Martin Bergljung
e2da89679c DEVPLAT-31: Add JS minification, #269 2015-04-08 14:45:23 +01:00
Martin Bergljung
c9865d2295 DEVPLAT-44: Image corrupted when overriding the favicon.ico file, #267 2015-04-08 14:41:21 +01:00
Ole Hejlskov
a7856633ec Set virtual class path up correctly. Running 'mvn compile' makes sure the changes
end up in target/${project.build.finalName}/config. This causes issues when
changing existing files after starting/restarting, since integration-test makes
the files appear in target/test-classes. The app would then only serve the file
in target/test-classes and ignore the rest.

By switching these we can strive for having 'mvn compile' do everything we need
to ensure hot reloading works.
2015-04-07 17:37:24 +02:00
Ole Hejlskov
c62178aadf Clear cache/web scripts profile now hooks in the right phase and works as expected 2015-04-07 16:47:02 +02:00
Martin Bergljung
12807d4af3 Fixed parent sdk pom conflicts 2015-04-07 09:50:48 +01:00
Martin Bergljung
10bd148795 DEVPLAT-43 2015-04-07 09:35:19 +01:00
mindthegab
4e625f0ce3 Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk
Conflicts:
	poms/alfresco-sdk-parent/pom.xml
2015-04-02 13:25:46 -04:00
mindthegab
db3e891c05 fixed issue 254 - added css to the non filtered list 2015-04-02 13:22:51 -04:00
Martin Bergljung
60193a7029 DEVPLAT-13,14,31-37 2015-04-02 16:10:53 +01:00
Martin Bergljung
a04ef8ad72 Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2015-03-24 14:24:26 +00:00
Martin Bergljung
221752ef0d Backed out of H2 version 1.4.186 (hangs on second start), DEVPLAT-21 2015-03-24 14:24:06 +00:00
mindthegab
593f4e9143 Update README.md 2015-03-23 15:58:56 -04:00
mindthegab
c7296f71c2 Update README.md 2015-03-23 15:56:55 -04:00
Martin Bergljung
d2aa943430 Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2015-03-22 15:15:45 +00:00
Martin Bergljung
ca3fea4e1b DEVPLAT-3,DEVPLAT-4 2015-03-22 15:14:08 +00:00
mindthegab
6ff39d81ff Update README.md 2015-03-18 13:06:39 -04:00
mindthegab
9dae6e5279 Update README.md 2015-03-18 13:06:08 -04:00
mindthegab
28d475711e Update README.md 2015-03-18 12:50:13 -04:00
mindthegab
36ad3db030 -- fixes issue #262 2015-02-20 08:50:05 -05:00
mindthegab
10fb9dedac fixes issue 257 - moved to enforcer as <prerequisites> is not inherited 2015-02-18 13:31:38 -05:00
mindthegab
041f188760 [maven-release-plugin] prepare for next development iteration 2014-12-23 23:52:14 -05:00
mindthegab
ae7f3bd532 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.0.0 2014-12-23 23:52:11 -05:00
mindthegab
58cf54fe7d complete commit for issue #251 2014-12-23 23:33:14 -05:00
mindthegab
58ee1a3c79 - closes issue #251
- refactored h2 support to play nicely with IDEs and across the aio and
amp archetype use cases
- now moved the h2 support for the default alfresco version in the
alfresco-rad project, as part of the rapid application development
features
- tested all cmd line and eclipse based scenarios
- consolidated alfresco.community.default version and
alfresco.enterprise.default version and made them parametric in the
whole project
2014-12-23 23:32:10 -05:00
mindthegab
2237ab18d0 [maven-release-plugin] prepare for next development iteration 2014-12-23 15:30:15 -05:00
mindthegab
84d01c7217 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.0.0 2014-12-23 15:30:10 -05:00
mindthegab
0ef8953ffb for now not needing property expansion in profiles activation, so reverting the change to allow maven 3.2.2 compatibility 2014-12-23 14:35:23 -05:00
mindthegab
e377a9ef74 closed issue #163. added dependencies for enterprise profile and tested to work in amp and aio in eclipse and cmd line 2014-12-23 13:44:43 -05:00
mindthegab
1448f64560 added unit test to repo-amp for consistency 2014-12-23 12:35:05 -05:00
mindthegab
8bf4214be1 added amp testing framework to aio. tested remote junit working 2014-12-23 12:34:30 -05:00
mindthegab
bfd6d9ccc8 -updated h2 support (removed version of unused h2 support) 2014-12-23 12:28:51 -05:00
mindthegab
6af15e115c ugly code, made only slightly less ugly by not swallowing the exception 2014-12-22 12:05:50 -05:00
mindthegab
2d8a6cfcb6 fixing non fatal import issue in eclipse (for the sdk project, not generated archetypes) 2014-12-22 11:24:37 -05:00
mindthegab
61b833a362 closes issue #248. included disable-resource-caching in share-config-custom.xml per upstream issue https://issues.alfresco.com/jira/browse/ACE-2566 2014-12-22 11:18:47 -05:00
mindthegab
3b74df1b9f closes issue #248. included disable-resource-caching in share-config-custom.xml per upstream issue https://issues.alfresco.com/jira/browse/ACE-2566 2014-12-22 11:18:16 -05:00
mindthegab
705550faae updated readme for staging of 2.0.0 2014-12-22 11:06:43 -05:00
mindthegab
fa762dd48c updated readme for staging of 2.0.0 2014-12-22 11:05:52 -05:00
mindthegab
640ffcff90 Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2014-12-22 11:04:49 -05:00
mindthegab
1662c159c5 updated readme for staging of 2.0.0 2014-12-22 11:04:29 -05:00
Samuel Langlois
60689add1e Fix typos 2014-12-19 16:48:53 +00:00
mindthegab
79aef16e36 -- fixed additional maven alfresco sdk old references 2014-12-19 09:29:48 -05:00
mindthegab
c7b88eb3d1 [maven-release-plugin] prepare for next development iteration 2014-12-19 08:33:01 -05:00
mindthegab
44b6327aca [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.0.0 2014-12-19 08:32:58 -05:00
mindthegab
1bc351d51b added comment 2014-12-19 02:13:17 -05:00
mindthegab
1c56ccdab2 - issue #228
- temporarily we'll use buildonly, later we need to find a better
solution 
- documented options in comments
2014-12-19 01:54:57 -05:00
mindthegab
6826351beb -- fixes issue #242
-- removed superfluous log4j config
2014-12-19 01:24:02 -05:00
Samuel Langlois
f5a4787964 Tune generated doc (mostly Maven Alfresco SDK -> Alfresco SDK) 2014-12-18 18:06:56 +00:00
Ole Hejlskov
6493b8e9d1 Add jetty plugin to re-enable remote unit tests 2014-12-04 16:57:21 +01:00
Samuel Langlois
c8fc67a273 #230 Comment out application of alfresco-spp amp: it's not available in Enterprise Edition 2014-12-04 12:13:41 +00:00
Samuel Langlois
27236060b9 Switch default enterprise version to 5.0 2014-12-04 11:41:15 +00:00
Samuel Langlois
a0be18daee Upgrade Enterprise tests to 5.0 now that it is released 2014-12-01 15:37:49 +00:00
Samuel Langlois
bbf5197a5a Provide a way to skip the tests: -DskipTests now works 2014-12-01 15:37:21 +00:00
Samuel Langlois
30d8412f0b Change default Alfresco version from 5.0.b to 5.0.c 2014-12-01 14:58:31 +00:00
Samuel Langlois
4355d0fb50 #186 Add integration tests against the Enterprise edition 2014-11-21 14:39:11 +00:00
Samuel Langlois
55c21e7989 Upgrade Maven plugins to their latest version 2014-11-19 18:34:48 +00:00
Ole Hejlskov
5e02d4d071 Merge pull request #232 from loftuxab/master
Merged loftux's pull request. Disable resource filtering on binary files, support for H2 upgrades
2014-11-09 22:48:18 +01:00
Ole Hejlskov
3a322ceb2d Add Sonatype repository, fixes #221 2014-11-09 21:42:14 +01:00
Ole Hejlskov
6cf5ec1305 Comment out pluginrepositories that points to artifacts.alfresco.com in an attempt to fix plugin resolution failure. 2014-11-09 20:42:47 +01:00
Ole Hejlskov
7a9d6c9403 Add sonatype as plugin repository 2014-11-09 20:19:10 +01:00
Peter Löfgren
154da68795 Add support for upgrade scripts for H2
Upgrades may or may not work (determined by my own experience). The failure seen was due to an activiti patch in 5.0.b, this patch is changes so if using later version of Alfresco the upgrades work.
There is however no guarantee that it will work in the future, but I think it is worth to have support, because if it works, you avoid having to recreate test data when upgrading alfresco version.

Since I couldn't find a good way to use wildcard copy for the upgrade scripts copying, it does have the version numbers included in path. So whenever Alfresco determines that it is time for a new folder for later version, this has to be added.
2014-10-27 16:59:51 +01:00
Peter Löfgren
9c4adc5dd6 Adding non filtered files
-jar  to allow jar files to be added in src/main/amp/lib
-font files if used in custom themes
2014-10-20 15:29:40 +02:00
mindthegab
a94f0081d0 Closes issue #227
Consolidated h2 dialect on-the-fly "generation" (and other h2 related
operations) into an sdk-parent pom profile. Activated *only* when
src/test/properties/local/alfresco-global.properties is present.
2014-10-16 21:09:21 +02:00
Michael Suzuki
600eeeacc3 removed files that are related to eclipse and not part of the archetype 2014-10-10 18:01:19 +01:00
Michael Suzuki
447a22a2ae fix #227, All in one archetype was not able to start as the db config files where generated in the runner module instead of repo-amp 2014-10-10 17:45:38 +01:00
Samuel Langlois
2bdaf65f2c Fix typo 2014-10-07 17:28:30 +01:00
Samuel Langlois
4d1886a4da Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2014-10-07 17:07:26 +01:00
Samuel Langlois
134d16973d Fix support of H2 database
- Remove dependency to tk.skuro.alfresco:h2-support
 - Extract PostreSQL dialect files from alfresco-repository and transform then into H2 files dialect on-the-fly
2014-10-07 16:47:46 +01:00
Ole Hejlskov
a641eb8a6b Use buildonly for now to make tests pass 2014-10-07 16:14:34 +01:00
mindthegab
5400489974 Merge pull request #218 from kgeis/patch-1
Update alfresco-global.properties
2014-10-07 14:31:37 +01:00
mindthegab
a46eed0d7b Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2014-10-07 14:19:11 +01:00
mindthegab
a594d9b523 - Added experimental integration with Alfresco Technical Validation for issue #188 2014-10-07 14:18:29 +01:00
Ole Hejlskov
c6beb898ad Bump to 5.0.b.
- Remove jcl-over-slf4j
 - Bump H2 support
2014-10-06 21:10:26 +01:00
Ole Hejlskov
70533a2973 Remove old dependency causing issues with 5.0.b 2014-10-06 15:32:27 +01:00
Michael
e97deb4f14 Merge pull request #219 from Alfresco/revert-215-master
Revert "Adding integration test profile"
2014-09-12 19:10:07 +01:00
Michael
3b2e93904f Revert "Adding integration test profile" 2014-09-12 19:06:13 +01:00
Ken Geis
60d805768a Update alfresco-global.properties
fix typo
2014-09-12 02:40:50 -07:00
Michael
9616129c69 Merge pull request #215 from michaelsuzukisagi/master
Adding integration test profile
2014-09-11 09:47:03 +01:00
mindthegab
ef2dd626f1 -- fixed typo 2014-09-11 01:42:15 -04:00
mindthegab
cb796f3b2a -- minor context path fix. with Enterprise alfresco.client.war !=
alfresco.client.contextPath
2014-09-11 01:39:24 -04:00
mindthegab
a0c8e3e867 Fixes issue #164, merged pull request #216
- -Penterprise is now added and SDK will run against latest alfresco
enterprise
- currently Alfresco INTERNAL only (no Enterprise SNAPSHOTs published)
- tested with latest Enterprise HEAD and also aligned artifactId to new
naming (alfresco-enterprise|share-enterprise)
- updated docs


Merge remote-tracking branch 'origin/enterprise-profile'

Conflicts:
	archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml
	archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml
	archetypes/share-amp-archetype/src/main/resources/archetype-resources/pom.xml
	poms/alfresco-sdk-parent/pom.xml
	poms/alfresco-sdk-parent/src/site/apt/sdk-profiles.apt.vm
	src/site/apt/prerequisites.apt.vm
2014-09-11 01:28:54 -04:00
mindthegab
c75a137a80 -- updated metadata descriptors (shown in Maven central)
-- updated readme to point to the new video
2014-09-10 18:40:44 -04:00
mindthegab
284710ab26 issue #217
-- added -Pregression profile to invoke Share PO / Selenium
functional/regression tests 
-- tested successfully with 'mvn clean install' -Prun,regression
(optionally -Dtest=LoginPageTests)
-- reports are produced in target
-- updates docs on available profiles
2014-09-10 16:35:56 -04:00
Michael Suzuki
4c6610a004 tidy amp demo,and added mechanism to slow test down to allow every one to see the demo page with selenium 2014-09-09 15:47:42 +01:00
Michael Suzuki
8e10982a4a merge changes from alfresco sdk 2014-09-09 14:23:52 +01:00
Michael Suzuki
cb8315e268 remove testng from sample 2014-09-09 12:58:21 +01:00
Michael Suzuki
19701b28c6 added param to allow skiping of unit test 2014-09-09 12:28:49 +01:00
Michael Suzuki
6f3363074e remove testing from integration profile 2014-09-09 11:26:18 +01:00
Michael Suzuki
247b23a818 fix to run unit test and integration test 2014-09-09 11:06:51 +01:00
Michael Suzuki
d23ce407cd fix to compile integration folder 2014-09-09 08:54:06 +01:00
mindthegab
572cbab5f6 -- fixed minor missing token replacement in index.html 2014-09-09 03:02:08 -04:00
mindthegab
b97c4fccdc [maven-release-plugin] prepare for next development iteration 2014-09-09 02:42:56 -04:00
mindthegab
09fefd9034 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.0.0-beta-4 2014-09-09 02:42:51 -04:00
mindthegab
8fe1d265f8 -- fixed broken run.sh re-releasing 2014-09-09 02:34:08 -04:00
mindthegab
4489f44636 -- fixed minor typo in run.sh in amp archetype. re-releasing a beta-4
-- attempted (and failed) to fix run.sh permissions in the archetype
2014-09-09 02:32:17 -04:00
mindthegab
077ff66198 [maven-release-plugin] prepare for next development iteration 2014-09-09 00:51:30 -04:00
mindthegab
6c8a4580d5 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.0.0-beta-3 2014-09-09 00:51:26 -04:00
mindthegab
27dd99b809 -- minor docs fixes 2014-09-09 00:35:14 -04:00
mindthegab
2d6eec000d -- updated docs and readme for beta-3 release
-- updated all in one index page and referneces from docs
-- added initial docs on run.sh
-- linked to teaser video
2014-09-09 00:20:37 -04:00
mindthegab
dd270a3ca8 added reference to Enterprise Portal 2014-09-08 21:16:27 -04:00
mindthegab
561aa10ff7 fixes issue #200
fixes issue #213

- refactored solr pom to properly be a WAR project (no more POM)
- removed ANTRUN for good. using maven-war-plugin to pacakge a proper
solr customized war
- added packaging of the -config.zip customized artifact for solr
- updated archetypes to include the new files
- updated runner configuration to run also solr as webapp
- added root webapp with index.html so that opening localhost:8080
points easily to the installed webapps
- aded context for solr
- fixed Solr INFO logging by adding delegate=false in the
context-solr.xml so that slf4j is NOT duplicated
- minor naming updates
2014-09-08 20:31:43 -04:00
Michael Suzuki
5c4174e0d8 fix amp archetype to run, resolve dependency conflict 2014-09-08 14:41:21 +01:00
Michael Suzuki
ab258df2b4 add new profile to setup integration 2014-09-08 13:05:04 +01:00
mindthegab
65414648c8 -- fixes to the previous commit, tested on aio 2014-09-06 13:42:39 -04:00
mindthegab
dad090fc73 -- issue #214
- Refining pull request #209 to only make default use of spring loaded
in run.sh and automatically download it
- added -Psetup profile (and documented) to automatically download
springloaded in the initialize phase 
- embedded conditional call to download springloaded (if lib doesn't
exist already) in the run.sh scripts
- added run.sh scripts in each archetype
- Refined naming

- fixes issue #196
- removed double declaration of the alfresco-maven-plugin
2014-09-06 12:09:21 -04:00
Michael Suzuki
84e8fd5ae7 fix test 2014-09-05 17:20:30 +01:00
Michael Suzuki
f3df237cf0 fix demo to work 2014-09-05 17:15:58 +01:00
Michael Suzuki
fe2fdd3c06 updated to latest plugin version and fix to allow ui-test run after amp-to-war 2014-09-05 16:37:39 +01:00
Michael Suzuki
be3b8618ae import all sub dependency via share po project 2014-09-05 15:07:50 +01:00
Michael Suzuki
6d5ab89f4a remove dependency from project, included in profile 2014-09-05 14:37:04 +01:00
Michael Suzuki
51ab29e79b formatting amend 2014-09-05 14:23:38 +01:00
Michael Suzuki
dab870c8f5 fix to run testng in functional and integration tests 2014-09-05 14:06:34 +01:00
Michael Suzuki
6076eecf4c added junit runner to junit test class 2014-09-05 11:52:51 +01:00
Michael Suzuki
eb583a15fd updated profile to not affect mvn test 2014-09-05 11:47:22 +01:00
Michael Suzuki
114d66fca1 adding integration profile 2014-09-04 15:35:36 +01:00
Michael Suzuki
faf0d89df9 added integration as source folder for m2 eclipse setup 2014-09-04 14:57:41 +01:00
Michael Suzuki
a409cf08bd added new integration test directory, manages all integration test content 2014-09-04 13:45:02 +01:00
Michael Suzuki
5421b845c8 seperated tests into unit and integration 2014-09-03 11:15:47 +01:00
Michael Suzuki
fc55716499 tidy up formatting 2014-09-03 10:10:31 +01:00
mindthegab
ec26fef087 Merge pull request #209 from bhagyas/master
Bringing in consistency across docs and project naming
2014-09-03 00:17:18 -04:00
mindthegab
7ad13ab5ca More fixed for issue #197 2014-08-29 19:06:47 -04:00
mindthegab
6a770b9c3f Fix for issue #197 2014-08-29 19:04:31 -04:00
mindthegab
6f1672b481 More fixes for issue #194 2014-08-29 19:02:12 -04:00
mindthegab
b4da819901 Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2014-08-29 19:00:06 -04:00
mindthegab
7871162941 added documentation for new profiles 2014-08-29 14:12:59 -04:00
mindthegab
97f7a04704 fixes issue #211 - added defensive measure for when people do not mvn
clean between builds
2014-08-29 14:01:23 -04:00
mindthegab
1020ea3e2b Merge pull request #212 from Alfresco/atv-integration
Atv integration + RM archetype
2014-08-29 13:54:49 -04:00
mindthegab
701c3e87d4 completed rm integration 2014-08-29 13:51:11 -04:00
mindthegab
9b712d83e2 2nd pass on issue #188 2014-08-29 10:30:04 -04:00
mindthegab
4a6c98d2a4 first pass at issue #194 - integrated -Prm profile 2014-08-29 10:28:27 -04:00
mindthegab
2718581d23 archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml 2014-08-29 10:27:44 -04:00
mindthegab
11a75c823a - fixed issue #210 2014-08-29 10:26:12 -04:00
bhagya_silva
53547a4d8b Fixed typo 2014-08-28 16:03:26 +02:00
bhagya_silva
148dff92ed Merge remote-tracking branch 'origin-origin/master' 2014-08-28 15:58:03 +02:00
bhagya_silva
6fb92cf40b Updated read me 2014-08-28 15:50:48 +02:00
bhagya_silva
90e8f95197 Fixed SDK Naming Across all projects 2014-08-28 15:41:13 +02:00
bhagya_silva
d2fbf381e5 Changed Docs to Documentation 2014-08-28 15:34:03 +02:00
bhagya_silva
da5ffcf2a6 No more Alfresco Maven SDK, just Alfresco SDK. 2014-08-28 15:09:49 +02:00
bhagya_silva
52aac9ab2b Better naming for SDK Modules 2014-08-28 14:45:44 +02:00
bhagya_silva
a7b553866f Updated naming of the archetypes 2014-08-28 14:41:58 +02:00
bhagya_silva
d2517be6a1 Added Alfresco Share as a provided dependency with classes modifier 2014-08-28 14:41:00 +02:00
bhagya_silva
9aacf6064c Removed JVM options for Alfresco Share Build 2014-08-28 14:36:50 +02:00
bhagya_silva
13a384c437 Added bash scripts for ease of use when running from command line. 2014-08-28 14:32:51 +02:00
mindthegab
15f2aa1c85 [maven-release-plugin] prepare for next development iteration 2014-08-27 01:33:44 -04:00
mindthegab
2c880f6619 [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.0.0-beta-2 2014-08-27 01:33:41 -04:00
mindthegab
495820dbc1 first take at intgration of the ATV. Getting 'Divide by Zero' exception so stopping for now 2014-08-27 01:09:40 -04:00
mindthegab
a4f932de0c - removed unused imports 2014-08-25 17:53:39 -04:00
mindthegab
5e6c04700d - removed duplicated junit declaration 2014-08-25 17:48:19 -04:00
mindthegab
8070c7c5e2 Fixed m2e version range (which prevented usage on 2.0.0-beta-1) 2014-08-25 11:46:34 -04:00
mindthegab
879f02b534 Minor site fixes 2014-08-24 08:02:11 -04:00
mindthegab
cccf604bb2 Complete issue #164.
- Added plugin configuration to meet Maven central deployment
requirements (attach src, javadocs, sign artifacts)
- Added KEYS file with for devs to add their PGP key export. Added key
used for releasing / signing.
2014-08-23 12:04:14 -04:00
mindthegab
10eef5a821 [maven-release-plugin] prepare for next development iteration 2014-08-22 19:59:22 -04:00
mindthegab
661982b7bb [maven-release-plugin] prepare release alfresco-sdk-aggregator-2.0.0-beta-1 2014-08-22 19:59:19 -04:00
mindthegab
292a90ac3a - bumped maven-release-plugin version 2014-08-22 19:45:26 -04:00
mindthegab
c625cccd3b - changed artifactId for the aggregator, lifecycle is obsolete
- updated reference to documentation location for 1.x (keeping from
duplication)
- Updted readme with new site url
2014-08-22 19:08:57 -04:00
mindthegab
fd8708c2f3 -- Updated changes plugin to work with Github issues management
-- updated team list, added Ole
-- updated readme.md
2014-08-22 18:47:20 -04:00
mindthegab
d367cf4a00 Fixed issue #164 (deployment to Maven Central).
Deployed the first snapshot.

Updated documentation getting ready for beta-1.

Removed jetty references.

Added docs for the share-amp-archetype
2014-08-22 16:07:17 -04:00
mindthegab
e354786112 fixed issue #208, updated archetype metadata to include any file type
under src/main/amp
2014-08-21 08:55:21 -04:00
mindthegab
ccdd59657f Closed issue #197 and initial support for issue #193.
- Completed migration of the all in one to the new rad spring loaded +
tomcat7 based approach. Tested successfully hot reload of classpath and
webapp resources
- added share amp in the all in one
- added sample webscript (and webscript folder) across all amp project
so that on the fly adding of webscript works 
- -Prun profile now allows rapid development of the share amp and
alfresco amp running with MAVEN_OPTS="-Xms1024m -Xmx2048m
-XX:PermSize=1024m -javaagent:/path/to/springloaded-1.2.0.RELEASE.jar
-noverify" mvn clean install -Prun
- tested and added support for META-INF/resources loading (and hot
reloading using the tomcat7 jar scanner)
- discouraged war overlay by making repo and share pure aggregator
- renamed projects
- removed faces-config-custom.xml (no more explorer stuff)
- updated solr log4j configuration
- fully tested in Eclipse
2014-08-21 02:01:21 -04:00
mindthegab
760d970240 - improved approach for issue 197 (especially for IDEA, Ole you are
welcome :)
- reduced usage of copy-resources where possible to maximize idea
compatibility
- reduced duplication of amp resources in the classpath
- tested in eclipse and all seems to work (test, remote junit test,
amp-to-war, hot java reload with spring loaded, new webscript hot
loaded, jsp change)
2014-08-15 17:15:41 -04:00
mindthegab
3f44c3be58 issue #197 - fixed remote Junit runner 2014-08-06 10:35:08 -04:00
mindthegab
b55d13b0d0 Issue #197:
- enabled rad functionalities on share archetype
- added basic Ole's sample for Aikau widget 
- added new configuration property to the AmpMojo to allow NOT including
/web resources in the AMP. This allows the -Pamp-to-war profile to
exclude /web from AMP packaging and load directly web resources from the
virtualWebapp Resources tag in context.xml (differently from Loader, if
you have web resources twice, the webapp one takes precedence)
- configured and tested amp-to-war to reload share web resources
- added
src/test/resources/alfresco/web-extension/share-config-custom.xml to
enable dev mode just in test
2014-08-06 01:45:32 -04:00
mindthegab
a37e89f34b removed tabs introduced by Eclipse.
Added m2e configuration so import in Eclipse is error-free.
2014-08-05 23:23:26 -04:00
mindthegab
351a81f4f0 Issue #197 - Enabled spring-loaded RAD ide friendly integration features
for repo amp archetype. Removed dead amp-to-war code.

Consolidated in amp-to-war:
- installation of the AMP
- rapid development / ide integration (searchVirtualFirst)
- tested junit-remote with spring-loaded (works like a charm)

Removed rad profile and created a (legacy) Jrebel profile to just create
the Jrebel files (unneeded when using Spring-loaded)

Tested:
- mvn test
- mvn integration-test -Pamp-to-war
- reloading of classes / webapp resources / unit tests
- remote unit test running

Run your build with MAVEN_OPTS="-Xms1024m -Xmx2048m -XX:PermSize=1024m
-javaagent:/path/to/springloaded/springloaded-1.2.0.RELEASE.jar" mvn
clean install -Pamp-to-war
2014-08-05 23:15:30 -04:00
mindthegab
addad0866f updated .gitignore 2014-08-05 23:07:49 -04:00
Ole Hejlskov
ba31887533 Remove version, leave that to the parent pom, as discussed on issue #70 2014-07-31 16:21:53 +02:00
Maurizio Pillitu
17350c4328 changed Alfresco private repository id to alfresco-private-repository, in order to be compliant with http://docs.alfresco.com/4.2/tasks/dev-extensions-maven-sdk-tutorials-configure-maven-enterprise.html (issue #163) 2014-07-25 18:15:23 +02:00
Maurizio Pillitu
feb0d736da added documentation for issue #163 2014-07-25 18:11:19 +02:00
Maurizio Pillitu
ed17a67187 commented alfresco.client.war.version, which defaults to alfresco.version 2014-07-25 15:46:40 +02:00
Maurizio Pillitu
3735773e71 fixes issue #163. junit dependency definition on amp-archetype, I removed it where unnecessary (while keeping junit in the test build scope) 2014-07-25 15:22:58 +02:00
Maurizio Pillitu
f7731c25c0 Fixes issue #176. added empty folders for web/js web/themes and web/components 2014-07-25 13:05:14 +02:00
Maurizio Pillitu
3028567d0f Fixed issue #195. Replaced all 5.0.a-SNAPSHOT with 5.0.a 2014-07-25 12:36:22 +02:00
Maurizio Pillitu
ba7714fccc added ignores for logs and IntelliJ Idea 2014-07-25 12:30:25 +02:00
Ole Hejlskov
e5a8e944d5 Test push permissions 2014-07-21 17:13:37 +02:00
mindthegab
d16c7572a5 completes issue #189 - updated scm references 2014-07-20 16:50:24 -04:00
mindthegab
e841f8039a added license and support info 2014-07-20 13:05:14 -04:00
mindthegab
80b914ba3d added reference to alfresco artifacts repo 2014-07-20 12:39:33 -04:00
mindthegab
0c879938b2 added reference to alfresco-sdk-samples 2014-07-20 12:32:36 -04:00
mindthegab
1d6be1d5b0 added logo 2014-07-20 12:23:20 -04:00
mindthegab
23ffd5fa9d added logo 2014-07-20 12:22:49 -04:00
mindthegab
75ad7f1d40 logo file 2014-07-20 12:22:08 -04:00
mindthegab
d99773c1f4 added logo 2014-07-20 12:21:40 -04:00
mindthegab
c537eb438f added additional resources 2014-07-20 11:57:22 -04:00
mindthegab
d095094ff4 added minimal readme with external references before publishing 2014-07-20 11:42:54 -04:00
mindthegab
3adbf119f8 removed obsolete files 2014-07-20 11:19:24 -04:00
mindthegab
a1ca398736 removed obsolete files 2014-07-20 11:18:02 -04:00
mindthegab
0f5e234d2b Initial Merge branch 'master' of https://github.com/Alfresco/alfresco-sdk 2014-07-20 09:42:19 -04:00
mindthegab
c27b75f819 fixed issue #159 - cleanp of enterprise reference and general naming alignment. pointed to official docs where available
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@746 04253f4f-3451-0410-a141-5562f1e59037
2014-07-18 00:00:38 +00:00
mindthegab
4dadee2e76 updating used plugin version, version-maven-plugin missed that
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@745 04253f4f-3451-0410-a141-5562f1e59037
2014-07-17 21:40:19 +00:00
mindthegab
4c21e6f8cf Initial commit 2014-07-17 14:42:00 -04:00
mindthegab
9e4dd2b84f bumped version to 2.0.0-SNAPSHOT to create fresh snapshots and work on the 2.x release
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@744 04253f4f-3451-0410-a141-5562f1e59037
2014-07-17 17:36:26 +00:00
maoo
047c05032c issue #108 fixed; removed outdated README and ROADMAP txt
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@743 04253f4f-3451-0410-a141-5562f1e59037
2014-07-03 10:00:59 +00:00
ohej
61b61ccbb6 Initial Share AMP archetype
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@742 04253f4f-3451-0410-a141-5562f1e59037
2014-06-22 14:25:58 +00:00
slanglois
2513926a09 Fix type of alfresco-solr config artifact, which is now a zip.
Housekeeping in all-in-one archetype to remove Maven warnings


git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@741 04253f4f-3451-0410-a141-5562f1e59037
2014-06-18 10:26:05 +00:00
slanglois
9e051bf382 Issue #187: bump Alfresco version to 5.0.a-SNAPSHOT
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@740 04253f4f-3451-0410-a141-5562f1e59037
2014-06-17 17:34:40 +00:00
mindthegab
dfa0937cd5 -- upgraded junit version
-- consolidated in parent pom version and scope

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@739 04253f4f-3451-0410-a141-5562f1e59037
2014-06-17 09:44:22 +00:00
ohej
a9e8bde3a2 Re-added Gab's commit from r736
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@738 04253f4f-3451-0410-a141-5562f1e59037
2014-06-16 21:12:43 +00:00
ohej
5c56d668e2 Bump to 4.3.0-SNAPSHOT
- Fix Solr re-packaging for all-in-one
 - Remove config artifacts
 - Initial Share AMP archetype 


git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@737 04253f4f-3451-0410-a141-5562f1e59037
2014-06-16 21:09:16 +00:00
mindthegab
c814ca2b18 test
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@736 04253f4f-3451-0410-a141-5562f1e59037
2014-06-10 13:01:57 +00:00
maoo
49f3014c5e issue #175 - Reverted archetype-metadata.xml to previous version; the real issue was caused by a wrong mention (in the all-in-one archetype) of a property (alfresco_target_amp_client_war) that is not needed.
The amp module now has alfresco.client.war=alfresco hardcoded in the pom.xml

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@735 04253f4f-3451-0410-a141-5562f1e59037
2014-01-09 20:37:07 +00:00
maoo
66d30c9841 fixed issue #175
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@734 04253f4f-3451-0410-a141-5562f1e59037
2014-01-09 19:54:53 +00:00
bulat.yaminov@gmail.com
89519f33aa issue #153: added more nonFilteredFileExtensions
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@733 04253f4f-3451-0410-a141-5562f1e59037
2013-11-17 15:53:41 +00:00
mindthegab
2461827c0d fixes issue #150. Axis logging exception not thrown anymore at startup
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@732 04253f4f-3451-0410-a141-5562f1e59037
2013-11-17 14:53:43 +00:00
mindthegab
14727c05cf [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@731 04253f4f-3451-0410-a141-5562f1e59037
2013-11-13 19:57:48 +00:00
mindthegab
6b7c68ed22 [maven-release-plugin] prepare release alfresco-lifecycle-aggregator-1.1.1
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@729 04253f4f-3451-0410-a141-5562f1e59037
2013-11-13 19:57:39 +00:00
mindthegab
aa48517e04 fixed java 1.7 version, needed for alfresco 4.2
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@728 04253f4f-3451-0410-a141-5562f1e59037
2013-11-13 19:46:42 +00:00
slanglois
7ae88244ff Increase a few Maven plugins + fix Maven warnings
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@727 04253f4f-3451-0410-a141-5562f1e59037
2013-11-06 12:42:18 +00:00
mindthegab
bdd82bfa97 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@726 04253f4f-3451-0410-a141-5562f1e59037
2013-11-06 03:06:14 +00:00
mindthegab
36cbd57dcd [maven-release-plugin] prepare release 1.1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@724 04253f4f-3451-0410-a141-5562f1e59037
2013-11-06 03:06:01 +00:00
mindthegab
3e97370fcf added svn:ignores
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@723 04253f4f-3451-0410-a141-5562f1e59037
2013-11-06 02:50:19 +00:00
mindthegab
a5fde50bc0 added run integration testing for the archetypes; fixed all-in-one missing archetype resources
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@722 04253f4f-3451-0410-a141-5562f1e59037
2013-11-06 00:53:02 +00:00
mindthegab
5e7f4c623e fixes issue 123: jrebel configuration added in sdk pom, activate with -Prad to enable reloading in the webapp / tests
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@721 04253f4f-3451-0410-a141-5562f1e59037
2013-11-05 00:01:47 +00:00
mindthegab
df38011aa0 issue #123: added spring autowired test class capable of running locally and remotely in the JUnit remote runner
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@720 04253f4f-3451-0410-a141-5562f1e59037
2013-11-04 23:03:50 +00:00
mindthegab
3c4d153f3d issue 123: enabled jrebel support for amp-archetype and added alfresco-rad module to provide remote running of JUnit tests. Switched demo test to using spring annotation as it works on alfresco 4.2.0, both for remote and local running of JUnit. The -Pamp-to-war profile adds the relevant JUnit listener (jetty) which listens for the class name and method, using junit-remote (https://github.com/Tradeshift/junit-remote)
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@719 04253f4f-3451-0410-a141-5562f1e59037
2013-11-04 22:51:56 +00:00
mindthegab
e3aeee2310 fixed indents
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@718 04253f4f-3451-0410-a141-5562f1e59037
2013-11-04 16:17:40 +00:00
mindthegab
6c3977a52a fixed all-in-one run, disabled testing in amp-to-war
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@717 04253f4f-3451-0410-a141-5562f1e59037
2013-11-04 16:05:51 +00:00
mindthegab
38fd25b352 removed unnused solr web.xml
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@715 04253f4f-3451-0410-a141-5562f1e59037
2013-11-03 14:42:13 +00:00
mindthegab
335c395e3a fixes issue 139 - for not just changed the link to a working one, later will configure changes-report to link properly
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@714 04253f4f-3451-0410-a141-5562f1e59037
2013-10-30 07:40:40 +00:00
mindthegab
54eed21b25 fixed issue 122: consolidate -Ppurge profile in super pom, removing indexes, content and all logs files found recursively
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@713 04253f4f-3451-0410-a141-5562f1e59037
2013-10-30 07:34:33 +00:00
mindthegab
278ed06ae4 one more typo, guess i need some sleep :)
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@712 04253f4f-3451-0410-a141-5562f1e59037
2013-10-30 07:20:28 +00:00
mindthegab
a1d5ac50a4 fixed typo in tomcat param
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@711 04253f4f-3451-0410-a141-5562f1e59037
2013-10-30 07:19:28 +00:00
mindthegab
7c388afdbd remvoed project specific references
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@710 04253f4f-3451-0410-a141-5562f1e59037
2013-10-30 07:17:14 +00:00
mindthegab
a06f1b3642 fixed solr in runner profile, and introduced maven-replacer-usage in solr web.xml (same as the Alfresco Maven build, using xml comments as tokens to replace
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@709 04253f4f-3451-0410-a141-5562f1e59037
2013-10-30 07:03:11 +00:00
mindthegab
48f3c3a2b3 fixed run profile to run only on AMPs and runner, restored docs
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@708 04253f4f-3451-0410-a141-5562f1e59037
2013-10-30 06:52:42 +00:00
mindthegab
b4c4e34a02 fixed issue 129, fixed issue 148, fixed issue 149: - replaced Jetty with Tomcat7 in both AMP and all-in-one; -removed WQS references in AMP and all-in-one project; -removed version specific web.xml overlays (used for alfresco <-> solr https comms) and added use of maven-replacer-plugin to patch distro OOTB files; -updated docs; -tested tomcat running successfully both in amp and all-in-one archetypes; -small non blocker glitch on class loading in maven tracked in issue 150
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@707 04253f4f-3451-0410-a141-5562f1e59037
2013-10-30 06:31:07 +00:00
rgauss
1e1430fb5f - Added attachClasses configuration which will attach a JAR with as separate 'classes' artifact
- Added attachConfig configuration which attaches a 'config' classifier JAR with the contents of the config dir of the AMP, useful as a test dependency

Fixes issue 147

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@706 04253f4f-3451-0410-a141-5562f1e59037
2013-10-29 19:49:11 +00:00
mindthegab
427944a051 fixes issue #130, removed wcmqs, ran integration test and started jetty for all in one. also bumped default version to 4.2.e
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@705 04253f4f-3451-0410-a141-5562f1e59037
2013-10-28 00:26:36 +00:00
rgauss
3f2b3e8dc5 Changed readonly outputDirectory to ampFinalDir
Fixes Issue 146


git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@704 04253f4f-3451-0410-a141-5562f1e59037
2013-10-23 14:18:27 +00:00
rgauss
7b1d3cca7c Added skipAmpInstallation parameter which exits the InstallMojo execution before validation
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@703 04253f4f-3451-0410-a141-5562f1e59037
2013-10-23 09:43:53 +00:00
slanglois
59f63764ec Upgrade default Alfresco version to 4.2.e - and upgrade all outdated Maven plugins too
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@702 04253f4f-3451-0410-a141-5562f1e59037
2013-10-17 10:42:20 +00:00
slanglois
16e3456457 Add integration tests to the 2 archetypes
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@701 04253f4f-3451-0410-a141-5562f1e59037
2013-10-17 10:22:13 +00:00
maoo
5ab005c182 fixed issue #143
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@700 04253f4f-3451-0410-a141-5562f1e59037
2013-09-28 00:09:54 +00:00
maoo
84a34450a4 fixed and tested issue #142
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@699 04253f4f-3451-0410-a141-5562f1e59037
2013-09-27 14:01:10 +00:00
mindthegab
adbad5c377 fixed issue 137 - swf are excluded from filtering
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@698 04253f4f-3451-0410-a141-5562f1e59037
2013-08-14 15:16:41 +00:00
maoo
42c16e2844 release info and commands
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@697 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 18:10:17 +00:00
mindthegab
1d2213ee84 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@696 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 18:05:22 +00:00
mindthegab
782c34b652 [maven-release-plugin] prepare release alfresco-lifecycle-aggregator-1.0.2
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@694 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 18:05:01 +00:00
mindthegab
c11a4bea38 -- re-enabled scm as passing project.scm.properties does not work
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@693 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 17:46:21 +00:00
mindthegab
11520dd4f5 #131 - removed scm definition to try "on the flight" release
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@692 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 17:43:17 +00:00
mindthegab
d2efe45daa -- issue #131 moved scm properties to project properties and consolidated release profile
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@691 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 17:40:57 +00:00
mindthegab
4fcde94b42 - added -Prelease profile with all configurations
- added automatic filtering of SDK version in archetypes
- removed SCM definition (needs to tested)

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@690 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 17:33:23 +00:00
mindthegab
4a9ee81c91 -- verified all 1.0.2 scheduled issues
-- added POM comments

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@689 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 16:27:17 +00:00
maoo
685cc19e32 issue #127 - Also added alfresco_target_amp_client_war_groupId and alfresco_target_amp_client_war_version to archetype creation
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@688 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 14:38:37 +00:00
maoo
bc55760810 issue #114 - using alfresco-mmt 4.2.d-beta
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@687 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 13:41:54 +00:00
maoo
8568a8f1e3 issue #126 - adding alfresco.client.war.groupId and alfresco.client.war.version to alfresco-sdk-parent
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@686 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 13:24:35 +00:00
maoo
9f24d52e8c issue #127 - added alfresco_target_amp_client_war to alfreco-amp-archetype generation params
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@685 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 12:54:34 +00:00
mindthegab
a5fd434727 -- updated plexus archiver 2.3
-- updated to fixed SNAPSHOT version of mmt

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@684 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 10:23:14 +00:00
mindthegab
800a40b895 -- updated to plexus archiver 2.3
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@683 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 10:19:20 +00:00
mindthegab
281b079bff -- updated to latest dev version (TODO: parametrize for build time filtering)
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@682 04253f4f-3451-0410-a141-5562f1e59037
2013-07-02 10:17:00 +00:00
slanglois
49c8586c8f Issue 121: Enforce the usage of Maven 3.0.3
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@681 04253f4f-3451-0410-a141-5562f1e59037
2013-06-21 11:55:02 +00:00
mindthegab
206f2d1aa6 recommitting proper fix
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@680 04253f4f-3451-0410-a141-5562f1e59037
2013-03-22 08:52:44 +00:00
mindthegab
5a3bbf9358 fixing issue 118. added lic to non filtered extensions
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@679 04253f4f-3451-0410-a141-5562f1e59037
2013-03-21 08:40:26 +00:00
mindthegab
3f364593da [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@678 04253f4f-3451-0410-a141-5562f1e59037
2013-02-14 11:11:42 +00:00
mindthegab
f6f3910f06 [maven-release-plugin] prepare release alfresco-lifecycle-aggregator-1.0.1
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@676 04253f4f-3451-0410-a141-5562f1e59037
2013-02-14 11:11:25 +00:00
mindthegab
58e55471ea updated compatibility with alfresco 4.1.2
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@675 04253f4f-3451-0410-a141-5562f1e59037
2013-02-14 11:10:41 +00:00
mindthegab
f3fe02bd6b [maven-release-plugin] rollback the release of alfresco-lifecycle-aggregator-1.0.1
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@674 04253f4f-3451-0410-a141-5562f1e59037
2013-02-14 11:09:04 +00:00
mindthegab
a5d942eeea [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@672 04253f4f-3451-0410-a141-5562f1e59037
2013-02-14 11:00:21 +00:00
mindthegab
953656e2bd [maven-release-plugin] prepare release alfresco-lifecycle-aggregator-1.0.1
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@670 04253f4f-3451-0410-a141-5562f1e59037
2013-02-14 11:00:08 +00:00
mindthegab
7cb1ddae97 fixed typo
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@669 04253f4f-3451-0410-a141-5562f1e59037
2013-02-14 10:27:50 +00:00
mindthegab
8032c2a83c made release command overridable at release time, to skip site deploy if needed
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@668 04253f4f-3451-0410-a141-5562f1e59037
2013-02-14 10:19:33 +00:00
slanglois
6ce6a25bef Switch default Alfresco version to 4.2.c
Improve doc to add a filter in the archetype:generate command, so that only the newer archetypes are shown


git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@667 04253f4f-3451-0410-a141-5562f1e59037
2013-02-12 18:02:03 +00:00
slanglois
3dc65c84dd Issue #112: leave default update policy for snapshot repository in allinone archetype
Set credentials in distributionManagement for continuous build


git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@666 04253f4f-3451-0410-a141-5562f1e59037
2013-02-07 16:41:42 +00:00
slanglois
505d7f7659 Issue 106: Tune enforcer regexp to allow Alfresco Enterprise 4.1.2+
Upgrade default Alfresco version to 4.2.c


git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@665 04253f4f-3451-0410-a141-5562f1e59037
2013-01-31 18:25:01 +00:00
slanglois
13b215b1c1 Upgrade Maven plugins to latest versions + specify encoding
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@664 04253f4f-3451-0410-a141-5562f1e59037
2013-01-31 11:14:46 +00:00
rgauss
c7e12d32c6 - Added skipWarManifestCheck property which disables the check for a manifest file in warLocation
Fixes issue 109


git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@663 04253f4f-3451-0410-a141-5562f1e59037
2013-01-24 16:06:25 +00:00
rgauss
ed0bde637b Changed check for descriptor and manifest on WAR files only, not exploded dirs.
Fixes issue 107

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@662 04253f4f-3451-0410-a141-5562f1e59037
2013-01-24 02:04:03 +00:00
mindthegab
2ef8794fa1 -- fixed ga
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@661 04253f4f-3451-0410-a141-5562f1e59037
2012-11-06 02:20:53 +00:00
mindthegab
568fe5f476 -- added google analytics tracking code
-- upon release gaTrackingId should be passed on the command line or in settings

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@660 04253f4f-3451-0410-a141-5562f1e59037
2012-11-06 02:14:09 +00:00
mindthegab
8966296c1d -- removed parent project from all components
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@659 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 02:32:30 +00:00
mindthegab
d051aeef80 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@658 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 02:16:07 +00:00
mindthegab
4d60a2defc [maven-release-plugin] prepare release alfresco-lifecycle-aggregator-1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@656 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 02:15:55 +00:00
mindthegab
2f3e4c4a18 -- added parent --> aggregator inheritance
-- removed duplicated
-- re-enabled aggregator level release 

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@655 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 02:15:16 +00:00
mindthegab
5c0fad94ac -- removed SDK parent
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@654 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 02:00:39 +00:00
mindthegab
0f914216c1 [maven-release-plugin] rollback the release of alfresco-lifecycle-aggregator-1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@653 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:45:21 +00:00
mindthegab
22102ca16f [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@651 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:42:40 +00:00
mindthegab
02f11b7a41 [maven-release-plugin] prepare release alfresco-lifecycle-aggregator-1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@649 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:42:24 +00:00
mindthegab
be9ffb4f28 -- fixes release as there are inter-module deps, so 'clean verify' is not enough
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@648 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:38:50 +00:00
mindthegab
39a9bb3cc9 -- fixed typo
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@647 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:33:41 +00:00
mindthegab
e3458874da -- added autoVersionSubModules
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@646 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:28:07 +00:00
mindthegab
0a1ea9c34d -- preparing archetypes for 1.0 release
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@645 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:24:44 +00:00
mindthegab
c570ba5b38 -- fixed indentation
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@644 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:04:33 +00:00
maoo
572c8bdaed added link to devcon site
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@643 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:01:45 +00:00
maoo
eb3de51c9a added project history and few minor documentation fixes
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@642 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 01:00:31 +00:00
mindthegab
a69a6c240a -- misc site fixes
-- added change plugin

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@641 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 00:54:36 +00:00
maoo
3805b97335 removed Parent Project menu item from alfresco-maven-plugin site.
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@640 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 00:16:26 +00:00
mindthegab
34fee645b8 -- fixed title for components section
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@639 04253f4f-3451-0410-a141-5562f1e59037
2012-11-05 00:16:01 +00:00
maoo
d42a868990 minor typo
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@638 04253f4f-3451-0410-a141-5562f1e59037
2012-11-04 23:45:34 +00:00
maoo
dc1b95cb08 maven site various fixes, mostly links
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@637 04253f4f-3451-0410-a141-5562f1e59037
2012-11-04 23:43:15 +00:00
mindthegab
830df696c5 -- fixed POM snippet
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@636 04253f4f-3451-0410-a141-5562f1e59037
2012-11-04 20:20:11 +00:00
maoo
394102051d fixing maven-site-plugin version to 3.2
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@635 04253f4f-3451-0410-a141-5562f1e59037
2012-11-04 20:07:08 +00:00
maoo
081321c879 added pluginRepositories configuration; avoids builds failing trying to find alfresco-maven-plugin
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@634 04253f4f-3451-0410-a141-5562f1e59037
2012-11-04 17:24:02 +00:00
mindthegab
fdc7942511 -- fixed site:deploy
-- added docs for each modules
-- deployed a staging snapshot at

https://artifacts.alfresco.com/nexus/content/repositories/alfresco-docs/alfresco-lifecycle-aggregator/latest/index.html

-- TODO: check links!

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@633 04253f4f-3451-0410-a141-5562f1e59037
2012-11-04 14:02:45 +00:00
mindthegab
c9eceeddff -- fixed svn:ignore
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@632 04253f4f-3451-0410-a141-5562f1e59037
2012-11-04 10:06:33 +00:00
mindthegab
f623dfeecd -- fixed site staging for SDK pom (now running 'mvn clean site site:stage' to preview multimodule actually *works*)
-- Added full plugin documentation
-- Fixed layout issues on fluido-skin
-- added main index.html for the aggregator

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@631 04253f4f-3451-0410-a141-5562f1e59037
2012-11-04 10:04:21 +00:00
mindthegab
11ff4a2942 -- javadocs and site improvements
-- forgot wcmqs in archetype

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@630 04253f4f-3451-0410-a141-5562f1e59037
2012-11-03 20:34:31 +00:00
mindthegab
a869e55b25 -- fixed install plugin. Right now dependencies unpacking is handled from the unArchiver via standard <overlay> mechanism
-- modified semantics of install
   - by default not bound to any phase
   - accepts a parameter called ampLocation (a single AMP or a folder) and installs to a WAR (or exploded WAR)
   - warLocation can also be specified
   - mostly a utility plugin / MMT wrap to be embedded in Alfresco related builds
   - singleAmp does not exist anymore. either put your AMP in ${project.build.directory}/${project.build.finalName}.amp or configure 'ampLocation'
- updated site

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@629 04253f4f-3451-0410-a141-5562f1e59037
2012-11-03 20:15:10 +00:00
mindthegab
56475bb755 -- fixed proper installation of modules at test time
-- created a separate test-classpath mimicking MMT behavior by adding module.properties in the right classpath location
-- separated amp-testing profile so that it only activated when src/test/java is enabled
-- externalized properties

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@628 04253f4f-3451-0410-a141-5562f1e59037
2012-11-03 20:05:12 +00:00
mindthegab
884f1596a9 copying back parent POM site information in trunk, prior to refactoring
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@627 04253f4f-3451-0410-a141-5562f1e59037
2012-11-03 11:56:30 +00:00
mindthegab
9ff7d19278 Final switch fix
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@626 04253f4f-3451-0410-a141-5562f1e59037
2012-11-03 09:40:26 +00:00
mindthegab
58d01898bd Experimental / trunk switch: final folder fixes
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@625 04253f4f-3451-0410-a141-5562f1e59037
2012-11-03 09:38:59 +00:00
mindthegab
d36f8c00a3 Experimental / trunk switch - Part 3 - Copying of experimental branch to trunk
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@624 04253f4f-3451-0410-a141-5562f1e59037
2012-11-03 09:37:52 +00:00
mindthegab
adf8bd6392 Experimental / trunk switch - Part 2 - Removal of current trunk (already backed up in branches/maven-alfresco-lifecycle-3x
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@623 04253f4f-3451-0410-a141-5562f1e59037
2012-11-03 09:35:23 +00:00
mindthegab
b299709cc3 -- fixed svn:ignore
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@607 04253f4f-3451-0410-a141-5562f1e59037
2012-11-01 21:54:59 +00:00
rgauss
1fbfe5501c Fixed mFileMappingProperties javadoc
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@498 04253f4f-3451-0410-a141-5562f1e59037
2012-09-18 12:20:05 +00:00
rgauss
1c0056e6b2 Added support for existing file-mapping.properties and ability to specify location through mFileMappingProperties configuration
Update issue 5
Update issue 39
Update issue 53


git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@497 04253f4f-3451-0410-a141-5562f1e59037
2012-09-18 12:09:05 +00:00
billerby
ac87c8ef7a Fixed repository references in archetypes
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@495 04253f4f-3451-0410-a141-5562f1e59037
2012-08-29 12:37:04 +00:00
mindthegab
16226ee5ab fixed repositories references for distribution
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@494 04253f4f-3451-0410-a141-5562f1e59037
2012-08-17 20:11:05 +00:00
mindthegab
39086a6eb8 fixed repositories references
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@493 04253f4f-3451-0410-a141-5562f1e59037
2012-08-17 19:18:27 +00:00
jottley
e76e42865a Issue 97 http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=97.
Rename variables and methods to use mapping instead of mappings.  Rename file-mappings.properties string to file-mapping.properties.

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@492 04253f4f-3451-0410-a141-5562f1e59037
2012-08-17 17:21:10 +00:00
maoo
cccc2201e0 prevent NPE, which occured when the AMP finalName was not complying with ${artifactId}-${version} structure
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@426 04253f4f-3451-0410-a141-5562f1e59037
2012-04-14 21:18:02 +00:00
skuro
824f744f84 Use a released version of the nosnapshot plugin
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@420 04253f4f-3451-0410-a141-5562f1e59037
2012-04-07 14:48:38 +00:00
skuro
c7edadab00 Typo in Alfresco logo image for the generated site
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@419 04253f4f-3451-0410-a141-5562f1e59037
2012-04-07 14:32:13 +00:00
mindthegab
f83762b8ef [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@412 04253f4f-3451-0410-a141-5562f1e59037
2012-04-07 00:55:48 +00:00
mindthegab
4d9aa57708 [maven-release-plugin] prepare release maven-alfresco-lifecycle-3.9.1
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@410 04253f4f-3451-0410-a141-5562f1e59037
2012-04-07 00:55:26 +00:00
mindthegab
b810606967 fixed surefire generation
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@409 04253f4f-3451-0410-a141-5562f1e59037
2012-04-07 00:54:25 +00:00
mindthegab
5d7045d675 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@407 04253f4f-3451-0410-a141-5562f1e59037
2012-04-07 00:50:09 +00:00
mindthegab
0ab8d2d046 [maven-release-plugin] prepare release maven-alfresco-lifecycle-3.9.1
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@405 04253f4f-3451-0410-a141-5562f1e59037
2012-04-07 00:49:46 +00:00
mindthegab
dda0ecf97b -- removed further references to Sourcesense
-- ready for 3.9.1 release

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@403 04253f4f-3451-0410-a141-5562f1e59037
2012-04-07 00:47:29 +00:00
mindthegab
c42a8e2039 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@399 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 19:31:21 +00:00
mindthegab
4daa8d48cb [maven-release-plugin] prepare release maven-alfresco-lifecycle-3.9.1
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@397 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 19:30:53 +00:00
mindthegab
ec7309087a updated svn:ignore
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@396 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 19:27:01 +00:00
mindthegab
38949c3728 updated svn:ignore
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@395 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 19:24:07 +00:00
mindthegab
3c4adab096 updated svn:ignore
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@394 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 19:22:49 +00:00
mindthegab
9dd860762c updated svn:ignore
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@393 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 19:21:41 +00:00
mindthegab
53014b9d78 removed site-deploy from standard release
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@392 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 19:14:47 +00:00
mindthegab
2c205788b4 -- updated changes per release 3.9.1 (to produce detailed release notes)
-- updated developers info

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@391 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 19:13:14 +00:00
mindthegab
691a98030d -- fixing issue #19
-- applied patch provided at http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=19#c3 
 -- now src/main/resources/META-INF is only added to the JAR and not to the /config 
 -- only (non problematic) side effect is that a META-INF (maven default manifest.mf is generated at the root of the amp, but not in /config so does not get applied)

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@390 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 17:54:42 +00:00
mindthegab
d6e8c57e45 -- completing fix for com.sourcesense renaming
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@389 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 17:52:46 +00:00
mindthegab
868f7a9c2e -- fixed version of amp plugin
-- referenced maven-amp-plugin 3.0.4-SNAPSHOT from all archetypes

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@388 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 14:51:18 +00:00
mindthegab
2d13720b4f -- fixing issue #9, removing FTL filtering by default in any archetype
-- added inline POM doc to allow more selective filtering

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@387 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 11:06:11 +00:00
mindthegab
120b53067a -- removed unused com folder
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@386 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 10:38:06 +00:00
mindthegab
7afe3e309c -- aligned package names / group Id to org.alfresco
-- removed com.sourcesense packages, since sourcesense has nothing to do with this project since at couple of years
-- requires testing...mao? :)

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@385 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 10:34:05 +00:00
maoo
27fb75b1e1 Fixed Issue #73 - Tested with version 4.0.b; changed alfresco-global.properties to use pom.xml db.* params
Upgraded h2 support to 1.2

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@384 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 10:05:44 +00:00
maoo
5ea00ed680 Fixed Issue #55
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@382 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 09:35:43 +00:00
maoo
353af25303 fixed links to new Maven Alfresco Repository
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@381 04253f4f-3451-0410-a141-5562f1e59037
2012-04-06 09:33:43 +00:00
maoo
0f40dfbf81 fixed issue #63, setup Eclipse IDE by using org.eclipse.m2e.lifecycle-mapping Plugin
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@379 04253f4f-3451-0410-a141-5562f1e59037
2012-04-04 17:11:02 +00:00
maoo
b74ac65a6a reopening Issue #43 - requiredProperties is not working as expected, it does not respect default value. Reverting changes to archetype-metadata.xml, use property <alfresco.edition> in each pom.xml
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@378 04253f4f-3451-0410-a141-5562f1e59037
2012-04-04 16:56:48 +00:00
maoo
1d8f9bf3c0 Update maven-amp-plugin from 3.0.1 to 3.0.2 across the whole project
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@377 04253f4f-3451-0410-a141-5562f1e59037
2012-04-04 13:59:48 +00:00
maoo
c558192e84 Issue #72 - improve JDBC connection with H2 database by setting some connection parameters
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@376 04253f4f-3451-0410-a141-5562f1e59037
2012-04-04 12:47:07 +00:00
maoo
6cf79d5104 Issue #43 - Added alfresco.edition property on every root pom; default value of this property is to set as Archetype required property called "alfresco-default-edition", which - by default - is set to "community". To override, set -Dalfresco-default-edition=myedition when invoking archetype:generate
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@375 04253f4f-3451-0410-a141-5562f1e59037
2012-04-04 08:43:35 +00:00
maoo
9bf1894d85 Issue #64 - Committed alfresco-core as provided dependency since it provides support for important objects that are often accessed during customizations
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@374 04253f4f-3451-0410-a141-5562f1e59037
2012-04-04 08:01:23 +00:00
maoo
f4e6dc30cd Issue #68 - Replaced ${artifactId} instances of the pom.xml archetype template of maven-alfresco-amp-archetype (which are replaced by the artifactId during archetype creation) with ${project.artifactId}, which is preserved and can be read and used by the archetype end user
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@373 04253f4f-3451-0410-a141-5562f1e59037
2012-04-04 07:37:09 +00:00
maoo
db4b7448bd Issue #36 - Reproduced issue with 3.9.0 version of alfresco share archetype; added ${project.basedir} on every Maven <filter> occurrency, also within alfresco-extension and alfresco-amp projects
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@370 04253f4f-3451-0410-a141-5562f1e59037
2012-04-03 17:00:11 +00:00
maoo
8e21884722 Issue #23 - reproduced issue with Maven AMP Plugin 3.0.1 and 3.0.2 . Applied patch attached to issue and retested.
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@369 04253f4f-3451-0410-a141-5562f1e59037
2012-04-03 16:26:35 +00:00
maoo
d98fd5728c fixing version number on <parent> tag of amp and nosnapshot plugin poms. mvn install was failing
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@368 04253f4f-3451-0410-a141-5562f1e59037
2012-04-03 15:36:42 +00:00
maoo
3fb674f33a issue #71 - a simple '@' char misplaced within an XML comment was causing unexpected (and silent) behaviors of maven-resources-plugin filtering processes. Replaced it with '[at]'. Tested with Maven 3.0.3, but could not reproduce issue with Maven 2.2.1
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@366 04253f4f-3451-0410-a141-5562f1e59037
2012-04-02 12:26:32 +00:00
skuro
a88707b52c Upgrade to the new h2-support group id
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@365 04253f4f-3451-0410-a141-5562f1e59037
2012-03-06 23:20:51 +00:00
mindthegab
27748d1c90 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@364 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:42:08 +00:00
mindthegab
fdf5d67008 [maven-release-plugin] prepare release maven-alfresco-lifecycle-3.9.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@362 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:41:13 +00:00
mindthegab
8601761e9a simplified release
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@361 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:40:05 +00:00
mindthegab
143defaf9b [maven-release-plugin] rollback the release of maven-alfresco-lifecycle-3.9.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@359 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:38:37 +00:00
mindthegab
afde9bdc09 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@358 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:20:56 +00:00
mindthegab
2b2e03a79c [maven-release-plugin] prepare release maven-alfresco-lifecycle-3.9.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@356 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:19:58 +00:00
mindthegab
0299ba9fc5 added change details
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@355 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:18:56 +00:00
mindthegab
e1f141fb43 [maven-release-plugin] rollback the release of maven-alfresco-lifecycle-3.9.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@353 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:16:51 +00:00
mindthegab
10722715c8 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@352 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:07:44 +00:00
mindthegab
9c75d59887 [maven-release-plugin] prepare release maven-alfresco-lifecycle-3.9.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@349 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 14:03:26 +00:00
mindthegab
b84a42cadb [maven-release-plugin] rollback the release of maven-alfresco-lifecycle-3.9.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@347 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 12:16:01 +00:00
mindthegab
0fdda216da [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@346 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 09:18:34 +00:00
mindthegab
74051f916f [maven-release-plugin] prepare release maven-alfresco-lifecycle-3.9.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@344 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 09:18:19 +00:00
mindthegab
51df6fc3aa fixed parents
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@343 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 09:17:06 +00:00
mindthegab
a2bf44c33e -- tested against alfresco community 4.0b
-- updated references to CE / EE repos
-- reverted default to mysql since H2 does not work
-- updated lifecycle / archetypes version number to 3.9.0-SNAPSHOT (pre-release for 4.0 release), targeting to align to alfresco version numbering
-- preparing for 3.9.0 release

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@342 04253f4f-3451-0410-a141-5562f1e59037
2011-10-26 09:12:32 +00:00
skuro
498803c05d Configuration for remotes now goes into share-config-custom.xml
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@341 04253f4f-3451-0410-a141-5562f1e59037
2011-09-29 10:31:15 +00:00
pmonks
2ee4244cb0 Fixed issue #5 - added a hardcoded file-mappings.properties that allows overriding resources in /WEB-INF/ (which is not recommended, but may be necessary in some cases).
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@338 04253f4f-3451-0410-a141-5562f1e59037
2011-08-31 18:34:04 +00:00
mindthegab
c6c2f0cf39 -- Fixed issue http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=60
-- Now maven-amp-plugin works fine with Maven 3.0.3, added prerequisite

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@336 04253f4f-3451-0410-a141-5562f1e59037
2011-08-31 15:13:58 +00:00
mindthegab
c619d89421 updated svn:ignores
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@334 04253f4f-3451-0410-a141-5562f1e59037
2011-08-05 17:14:39 +00:00
mindthegab
64d5f113ab Finishing committing fix for Issue 49
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@333 04253f4f-3451-0410-a141-5562f1e59037
2011-08-05 12:16:09 +00:00
skuro
9e30f49e8d POM cleanup, updated to latest available artifacts versions, removed obsolete stuff, life, universe and everything. Changed an exact multiple of 42 characters.
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@332 04253f4f-3451-0410-a141-5562f1e59037
2011-08-05 07:42:29 +00:00
skuro
ea49f96271 Removed obsolete stuff
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@331 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 17:00:45 +00:00
skuro
bf5cb084eb Same as #47
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@330 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 16:58:21 +00:00
skuro
2b8511aea0 same as issue #49
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@329 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 16:56:49 +00:00
skuro
929bdaeb9d similar issue to #47
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@328 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 16:54:59 +00:00
skuro
39aa93fb61 #37 alfresco-global.properties instead of the old application.propertie
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@327 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 16:52:08 +00:00
skuro
dd61aa7921 #55 add h2 support (plus some cleanup)
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@326 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 16:05:32 +00:00
skuro
8dfffcd21a #47 removed archetype.xml, added jetty configuration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@325 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 16:03:26 +00:00
skuro
61978e48b2 #37 application.properties and old Spring contextes now obsoleted by alfresco-global.properties
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@324 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 16:00:11 +00:00
skuro
6792f9e4da Purged empty/obsolete stuff
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@323 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 15:57:10 +00:00
skuro
02b56818e0 Purged Eclipse config files
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@322 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 15:52:50 +00:00
mindthegab
f89484d869 REALLY applying patch as per issue 47, previous commit is for issue 49 :)
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@314 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 00:10:08 +00:00
mindthegab
1622dd961a applying patch as per issue 47
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@313 04253f4f-3451-0410-a141-5562f1e59037
2011-08-04 00:09:19 +00:00
mindthegab
786d03d99d applying patch for issue 52, as per http://jira.codehaus.org/browse/MNG-4609
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@312 04253f4f-3451-0410-a141-5562f1e59037
2011-08-03 23:53:21 +00:00
skuro
3e7236abf9 Buildnumber version bumped to v1.0, now with Git support
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@308 04253f4f-3451-0410-a141-5562f1e59037
2011-07-18 12:25:44 +00:00
dupont.nicolas
23fcfbf4fb Init of maven-amp-plugin-test
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@307 04253f4f-3451-0410-a141-5562f1e59037
2010-10-05 18:28:29 +00:00
dupont.nicolas
64ff61f4e0 Initial import of maven-amp-plugin-test
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@306 04253f4f-3451-0410-a141-5562f1e59037
2010-10-05 18:27:18 +00:00
billerby
56544a7e10 As proposed by glaurung.aubrane removing the deprecated use of pom.* in favour of project.* issue #48
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@300 04253f4f-3451-0410-a141-5562f1e59037
2010-03-03 19:17:30 +00:00
billerby
2e44c84689 Missed one ${groupId} on issue #26 this now solves issue #48, thanks to glaurung.aubrane for spotting it so fast.
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@299 04253f4f-3451-0410-a141-5562f1e59037
2010-03-03 19:01:19 +00:00
billerby
82d38f6a42 Change the way moduleId is generated, from ${groupId}.${artifactId} to just ${artifactId}. The former way caused problems when loading classpath resources.
This solves issues 26 and 42.

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@298 04253f4f-3451-0410-a141-5562f1e59037
2010-03-01 14:20:54 +00:00
mindthegab
33f83f9c21 -- added target to svn:ignore
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@295 04253f4f-3451-0410-a141-5562f1e59037
2010-02-23 18:12:38 +00:00
mindthegab
b276eddbb8 -- added maven-alfresco-share-module-archetype to build share JAR extensions as in http://mindthegab.com/2010/02/23/howto-build-your-jar-alfresco-share-dashlet-with-maven-in-3-minutes/
-- fixed minor issues in maven-alfresco-share-archetype
-- merged other fixes

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@294 04253f4f-3451-0410-a141-5562f1e59037
2010-02-23 18:02:23 +00:00
tibber
cf97d54902 project.basedir reference typo fixed
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@288 04253f4f-3451-0410-a141-5562f1e59037
2009-12-14 13:54:17 +00:00
skuro
2c5cdc1b47 Issue#25: due to a bug in the latest maven eclipse plugin, the use of version 2.6 was enforced. See http://jira.codehaus.org/browse/MECLIPSE-576
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@287 04253f4f-3451-0410-a141-5562f1e59037
2009-12-11 09:57:50 +00:00
skuro
29c5a4f994 Issue#35: fixed maven repo URL
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@286 04253f4f-3451-0410-a141-5562f1e59037
2009-12-09 13:52:39 +00:00
tibber
97c6ba59ff Remove SNAPSHOT versions form pom.xml files. This closes issue #22
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@285 04253f4f-3451-0410-a141-5562f1e59037
2009-12-07 11:43:36 +00:00
mindthegab
3d70b7166d -- fixed broken filtering
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@281 04253f4f-3451-0410-a141-5562f1e59037
2009-12-04 10:51:40 +00:00
mindthegab
6b99082954 fixing the released packages
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@279 04253f4f-3451-0410-a141-5562f1e59037
2009-12-04 10:00:52 +00:00
mindthegab
55c749b299 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@278 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:45:22 +00:00
mindthegab
deb9fd16e6 [maven-release-plugin] prepare release maven-alfresco-lifecycle-1.1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@276 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:44:55 +00:00
mindthegab
c285c4207c releasing share archetype
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@275 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:43:33 +00:00
mindthegab
aa68a4a621 [maven-release-plugin] rollback the release of maven-alfresco-lifecycle-1.1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@273 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:41:17 +00:00
mindthegab
0d31e3ac32 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@272 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:34:35 +00:00
mindthegab
662d923e53 [maven-release-plugin] prepare release maven-alfresco-lifecycle-1.1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@270 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:34:09 +00:00
mindthegab
1f0f1443a3 -- fixed profiles
-- update ROADMAP

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@269 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:31:50 +00:00
mindthegab
27862e4fe1 [maven-release-plugin] rollback the release of maven-alfresco-lifecycle-1.1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@267 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:28:26 +00:00
mindthegab
fb56eb8f43 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@266 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:12:22 +00:00
mindthegab
b682e9a6b6 [maven-release-plugin] prepare release maven-alfresco-lifecycle-1.1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@264 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:11:57 +00:00
mindthegab
71d52265f9 releasing share archetype
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@263 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:10:49 +00:00
mindthegab
4c69d1f07f -- added fake empty resource to fix dav deployment issues
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@261 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:08:02 +00:00
mindthegab
0168db5323 [maven-release-plugin] rollback the release of maven-alfresco-lifecycle-1.1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@260 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 21:07:45 +00:00
mindthegab
b937bcb01d [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@259 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 20:52:52 +00:00
mindthegab
38234bcc84 [maven-release-plugin] prepare release maven-alfresco-lifecycle-1.1.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@257 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 20:52:23 +00:00
mindthegab
36bd3c0298 releasing share archetype
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@256 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 20:50:50 +00:00
mindthegab
4b4e0d2e26 releasing share archetype
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@255 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 20:48:22 +00:00
mindthegab
fce3b805e9 releasins 1.1.0 for alfresco lifecycle
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@254 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 20:46:55 +00:00
mindthegab
8bcec764e7 -- final fixes pre release
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@253 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 20:39:46 +00:00
mindthegab
be00cdfcb7 -- updated changes and custom announcement
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@252 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 20:27:12 +00:00
mindthegab
d7fd79f5ea -- added maven alfresco share archetype
-- improved documentation and prepared 1.9.1 release
-- updated changes.xml

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@251 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 20:24:52 +00:00
mindthegab
4da863cd0a -- added new and improved documentation
-- moved to maven.alfresco.com
-- tested -Pinitialize profile for the repo to clean alf_data and DB
-- moved jetty run to -Prun profile for the repo
-- preparing juicy maintenance release

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@250 04253f4f-3451-0410-a141-5562f1e59037
2009-12-03 18:26:27 +00:00
mindthegab
f861c56ea5 [maven-release-plugin] prepare for next development iteration
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@249 04253f4f-3451-0410-a141-5562f1e59037
2009-11-07 15:32:59 +00:00
mindthegab
176924eb74 [maven-release-plugin] prepare release maven-alfresco-lifecycle-1.0.0
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@247 04253f4f-3451-0410-a141-5562f1e59037
2009-11-07 15:32:31 +00:00
444 changed files with 18639 additions and 20972 deletions

52
.ci.settings.xml Normal file
View 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>

134
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,134 @@
name: Alfresco SDK CI
on:
pull_request:
branches:
- master
- fix/**
- feature/**
- sdk-4.5
push:
branches:
- master
- fix/**
- feature/**
- sdk-4.5
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 }}
MAVEN_CLI_OPTS: "-B -q -e -fae -V -DinstallAtEnd=true -U"
jobs:
pre_commit:
runs-on: ubuntu-latest
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v1.35.0
build:
name: "Build application"
runs-on: ubuntu-latest
needs: [pre_commit]
if: "!contains(github.event.head_commit.message, '[skip tests]')"
steps:
- uses: actions/checkout@v3
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.35.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: "current version Java 11"
java-version: 11
- 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
- name: "7.0 Enterprise"
java-version: 11
suite: -Penterprise-70-tests
- name: "7.0 Community"
java-version: 11
suite: -Pcommunity-70-tests
steps:
- uses: actions/checkout@v3
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.35.0
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.35.0
with:
java-version: ${{ matrix.java-version }}
- name: "Login to Docker Hub"
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: "Login to Quay.io"
uses: docker/login-action@v2.1.0
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: >
!(failure() || cancelled()) &&
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.35.0
- name: "Build"
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: "Publish"
run: mvn $MAVEN_CLI_OPTS deploy -DskipTests

15
.gitignore vendored Normal file
View File

@@ -0,0 +1,15 @@
**.idea
**.classpath
**.project
**.ipr
**.iml
**.log
**.log*
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.next
release.properties
**.settings
**bin
*.DS_Store

10
.pre-commit-config.yaml Normal file
View 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]

67
ISSUE_TEMPLATE.md Normal file
View File

@@ -0,0 +1,67 @@
<!--
If you are reporting a new issue, make sure that we do not have any duplicates
already open. You can ensure this by searching the issue list for this
repository. If there is a duplicate, please close your issue and add a comment
to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to
include the BUG REPORT INFORMATION shown below. If you fail to provide this
information within 7 days, we cannot debug your issue and will close it. We
will, however, reopen it if you later provide the information.
---------------------------------------------------
GENERAL SUPPORT INFORMATION
---------------------------------------------------
The GitHub issue tracker is for bug reports and feature requests.
General support can be found at the following locations:
- Alfresco Community - https://community.alfresco.com/community/ecm
- Post a question on StackOverflow, using the Alfresco tag
-->
## I'm submitting a ... (check one with "x")
```
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
```
<!--- Provide a general summary of the issue in the Title above -->
## Expected Behavior
<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->
## Current Behavior
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement the addition or change -->
## Steps to Reproduce (for bugs)
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1.
2.
3.
4.
5.
## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
## Your Environment
<!--- Include as many relevant details about the environment you experienced the bug in -->
* Alfresco SDK version used: <!-- 2.1 / 2.2 / 3.0betaX-->
* Alfresco version used: <!-- Enterprise 5.1, Community 5.0.f or ...-->
* Output of command 'mvn -version': <!-- Maven/JDK version-->
* Link to your project: <!-- optional for having a minimal example-->
## Additional information
<!-- include screenshots or any other hint you mave have for us -->

155
KEYS Normal file
View File

@@ -0,0 +1,155 @@
This file contains the PGP keys of various developers.
Users: pgp < KEYS
gpg --import KEYS
Developers:
gpg --list-key <your email> and append it to this file.
gpg -a --export <your email> and append it to this file.
(gpg --list-key <your email>
&& gpg --armor --export <your email>) >> this file.
################################################################
# Gabriele Columbro
################################################################
pub 4096R/6FE5701E 2012-03-25
uid Gabriele Columbro (VALID CODE SIGNING KEY) <gabriele@apache.org>
sub 4096R/E97059F3 2012-03-25
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)
mQINBE9u680BEADFHOMCFOnPeuSNLJw+KiKVFm9Waa9oWMxKpYhCP4bDA0sH85/W
ZKJDaPR+2p5JAoB0y3ZfxHfmhoLZRmLgP1oSJBfB2VgdbG1My4Oshd/h8Tr5pAJj
bulvC5urWcYD9eYNFVJtG28l7epnjx0NglA6WBk9Bx5+XGSLvxaQkCu6S7D9V+cw
2nJqZia7ul/J5xjGWy5aBZubwj1UT2YhZwxEmSjlBo0jrf8y4YScCz2VXJVs33p1
CHQESCuBRZ0dK2kCmRaU+2bhJy9+nFstHYVAygwbQ8Km4sqSpcjEAZTpKK/lspbH
c7TcZcFujLCCoHuAh4k0I/Qp3My0QqUpmdwsWQdbknP4MkQJlYB5GxnJnFzsA1Hg
fJwOa23b1lFNhZSdmY9NSM+2Ihg1XB4pb4Z0+uqLMAVR8owpuaJ329W+LJJutQyC
87Kc1KH4He8KuENGhQT16+NJlUFrRSYaST9NB9RbFURc1eUMgHHXjcJp9sny2YPY
bq89W0HtHSNH0My/akK47qcX1ddKGE8PTVdS5kDhS+w75f9Lf+gyV5HflzZSaaSQ
+rD/WZ8uTeQKNSYvupdv63i1FIOJd1Ip0C8fj/STwWdDRvq5UwiHsiGgw30WCNAy
VQ+OPJ+7DNm4pJEkcxno+WeTbCpZGysvFjouDPig/+a69IMPEYE2xQuz7wARAQAB
tEBHYWJyaWVsZSBDb2x1bWJybyAoVkFMSUQgQ09ERSBTSUdOSU5HIEtFWSkgPGdh
YnJpZWxlQGFwYWNoZS5vcmc+iQI4BBMBAgAiBQJPbuvNAhsDBgsJCAcDAgYVCAIJ
CgsEFgIDAQIeAQIXgAAKCRA1c7pOb+VwHnTxD/0V9Fnn7pjVWYkUi/62xh4DXfMO
urvsafeH5JXE3a6e856sFg8AV/w2ceJYqzZ5l46GkF/B9buParLQmnXTni/ClokU
IeRM/Faj964DXZRAdTiu06VnGxzTN5Dpo1rr/wccjamq/B19ta7xW+z+zfY9jby3
UUHkIV0itVIRZ3K3Tc7tssmj4ATkwvHlXWQo89cQcoTpBrJyClRsSWPQgefws38P
6J+PXUqBuw5JDH6WhOvovkWBZt0ryduCjHNat7JYYjLBzPX//rMj8c9xytFHCxaq
JUvS9BAdW5UE3mG8OBkvRhNqvPLrKUch9ETiYWetWf3trRUDQhHhngN/t9a7pVDx
vsP63fozPD58LK7Ete05emukYg18xGGhRixu10KgwbuAqJD2t6GUd2gjJBI/5Qua
99ImffhLoLNuv6w2XE2ePPkMLBOh4SdzOHJ23ffO8IDRG8yfQD9yT1dC+aHEKd6D
OA/pJGcjoXUubtoa0ARKL30gx6d4xXeiaRKHUP/tLHx5nxctGOPNYgwz4j4VyaR/
KNpFU3bZPR0NWAKNcjTO2MT4ZzBMOidWJjWM3D29ZYa23Lwxea7hpswL2PQgHthu
jqArjrBTuMLmUw/L4kGQDfOfrasBoYTHKK3J2WejczgaNmEd2Rd7LjJGJZBGdcBu
l98PjbR9xLxkm3ql0okEHAQQAQIABgUCT3l9MAAKCRCKr4jW2E5BrgLBIACvfl3Z
cgPoZy/SRLF6FojxgwzX7/3t45jZnQXxWvnuEb6cFjyXU+y3i/9x9yRs8B2EeW3v
uSEa8lsUo/QN08almF+QOzNMof+RGhHsPanlm8dW5iibdWfP+GsL0S5Mo6GhaFZW
SQUfYWsuqUGBmLp9aH3uMTkCvjq2iNZ0UoTm8ZQ+iJnNhfE2iMkH6U6WBEAr9PID
uFLVy2uw2kKKdPVpRntQuOyUKuCQC1ydN2kH/I01TwonFepBCjdEMtaW9tTZNJ5A
Z8nKOlXOX+zo1HNEiD6hGAqn2ZqotnzFKrx4AwhDb4Wt3N2Nc9YBM7noxlKQuPby
Pa9ydXmtIrRHjAHJeL0dY2BFfRb5zeUuiuz+zOY186LDCaH+txjPeudKxDv7uyNu
5XNAbRUQj06ZxhtPT/xvzpIcxuqOzAh/znZXM3RnOB6Wj3p4jXC/neEJwKL/yuEo
bZvIa/dnU5tI7uVhfrK3SKdi4Q+oQgYvTmy/mrISJB9p2npJAr+mrq7XpwZD77HT
ZxYMZKjY6aQ8KoTgR48JXKylxuEGidZJduVLGsHH3mF2YcENgKcPQCOI+uSHP432
Tt/7ARsbYV9lF+9XDn75UAQrOjlbhs/ovOlzhx+BAbmszZADwRbMB+CQl2N4ds3l
LhtkbqAfs2bjauw9NnSmNAhxFdnCmBnN96+GysfQOnxhUI6LT+S8S6bWsTinq1Xa
d7lXhGtyD1LtDpdzynLjQgis6v+45IvYUa6zoOkTunhM2A0jsZhmjk9ZpZHywyZF
K5nNZQy6Q6L5OmW1XNnxtob02d4sotNoAEYvrPo3QLDsL4UI3Z1DnrvW8K4DQBj7
4EkANks7o70pxYdMElhYy4rJ5rt25004jeYztuwE885T5CSHN+0aPdjkP5rZSkuU
90j7hOT2qDkFf/H81RZufDdgyVKzLRkAYKiSrZaqAXcqBEOMq6rYMitkgEP07FOP
6eFBImRpz0OINGz3hrVCNHbxng/TWke3wi05DBRcJIhNWu8P2QXdDaAEBORFunAT
NISbdt4/5p5DYOdxe9wlUECKdE2zDG++JTat30lsNfZi183QOQfGCd770kFrGcMY
DvpyUVT8BZqS9TSsS97Zhg6boRU9Etb8MORYJ2cGdXwjrUerFBmHebSmSZPKTMKF
rznEiwroUQQsIoTzbnd88KlgqbwCazGM2LfI0svONvNXbu7B7iKkcNU9M2LpRZu3
n5t7v/Nfilc3YssRNi5nFWQarmqP2qTkyr434OeFSuzO9yz5/BGPcWbvkBzWExMS
6854rMPAFh3g6YdyJnhjf9TaNNlMH9xKQgsL5C9Q4YGSGU9oklhSq3W5FSxT97E0
NhwVmN+yElh3FBswuQINBE9u680BEAC8CvXUxbns4X8dvxEcgb8ReDGTa2vVij0U
kBqDyHq1Yta1e6Qm34fNizcds/avbmBB8q8dTNMR1Ka4aPukc+M+oGOY4aKgQNCW
YfrdBVAdVZ9RCyZC9Jy3XlPoSBokLGxz4J212OdWTOzQTzIEfsVzAQmxGmnqv5yP
R+PKLGZvyRpwAjz12K4yZmztOte8mi/pQtKXzB45LggbHh39iO1nG6EKQLWyyoA2
olF9Eb+yHdZQOpLCLnqc7FS3Cbz80SVqGS5miU3CSp7GTBEA1wualxKvNNiPO2p2
MMnjMVcxZx1k3d4C7+uMGvtZiTqa7tmWODz1dfwolfYQ/E4TcxG2vzKatE07JG7X
3vVmfR2Bjb2ITN8Kj1ZdVeQkHgJvRx8B6glFQhv6lso5XUuoWt5Gm66wCyirjCDn
OLJKk6YkdSop8EweAy675VFoq3LSASyep72jrgT3AMf8U0nAgZSrwLMjBjSVzIRs
FNv30iCBXYy/bmSyfMEphjttKCYHnNjZS8fD+ka1zzXnOXglWNtDGDOdJ5zaIymW
R4FZlrQMjs4y564WMHJWG9exncSPHNPLLieGAng4oJjAXR92GgrTZQAcghTRGBOn
rRYzv9ob6n2wgnA8wR+Wmy0xcmF44xNht3mfD1qTO0P2Fdhdm4ZvXQBII0tXkwMl
OJ/BR732xQARAQABiQIfBBgBAgAJBQJPbuvNAhsMAAoJEDVzuk5v5XAeTZQP/2g9
1KOS1pia2gAOmFbuu0ep1THRxuLydcn6C306YmnL2l+o5z0YE4nPYiD9rd+PkWFm
0itE2WBBZkEloesUcjX/xsw7t6pdzd3W6nu1LXPcppOeHAc1ofrRWqKSmfD5k2lB
8dzuRKltU6b829wcDi0HlL+dP8G9pcJXz2cMs09QchOdvm/hQam9SHFwx9IDJvrt
nHB4kLfUTJ0Fs4FjtT+nfozXE+wXd23+HyNVQPX3rTO5IR4DOTDNSZ+vxqkE0BeF
6M4dDvMADBEgkEwpsRzioEp75biw5bq8YsDvYNGpyJOFt46bRWjrzOcUsIXMy4eQ
uTk/flFQs3ukw7q7DvSBVRokfjFHWr3FZC30xyRijJImW4F1Xqa3HphC3+4fSQjx
w652pOx0aZlBHtVByYBLYcrCGcJ8p6ijpPX60ur3a8ebdUHND912+mIGiQzhkHiK
VBvvfOrbWzcNwbxAsNncAfjr/3adPAjbyMH10+e+sNhLMJuYYgP8pVhp8BTKFJF9
hrGAueS2lH5DUpjZPqClR+txnAK+hVCuFogoWsdsbRHMLkqKqhnQjWnvRrU0ud9j
ytG/XwLK3RL7LTmPIC9RqlO1U1A3h5Ykw2INH/bB90lBxmydmp/PHpkhjEAEvzGW
r+ipOwsWpF6kLIHUT2LuPxLqTGQCrqYtJyTp61tE
=GUM9
-----END PGP PUBLIC KEY BLOCK-----
################################################################
# Alfresco Software, Inc - PGP key
################################################################
pub 4096R/DAD3B670 2014-10-20 [expires: 2015-10-20]
Key fingerprint = 6959 A697 47E2 7AC4 E1E7 1636 199D 99B1 DAD3 B670
uid Alfresco Software, Inc (GPG) <info@alfresco.com>
sub 4096R/A4B70B45 2014-10-20 [expires: 2015-10-20]
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.14 (GNU/Linux)
mQINBFRFM3EBEADveqoXdxufZiP+hK992UJO9OIumDts9SlirI4VviyRlCn/qc3X
5wzAAsTNRBJjsk3S3O3EfmK79GodIb0ebnQSbv6+EnwPK0uwS0ykoy7JrMUHVBY+
zI9AwGIe0UpCRXfPH3x0O1Psi1fcKGR/Qs2ouTnCpzDZRq3kFt7/iCXm6t8QpaxE
y4KNxT/S8MeGydslqgbEA4fCZ6RP9kzFs8tCNyv9WxHkcb0oos/nC2ihJy3HZATO
A2qeTxS5pf6O1hJuE7XRIRCPTN1j0uSAl4ebDKPn4uANz8MwYcZBz89lWVmP/wEz
AoN8jWjqb/SstURj+czjXoxhoxMaLDMjdw5RoJsLUmlfp2j9eaFbxmUl103wUL+O
R+6sk5pXHpvifjeI/AjNTaZe6WVfkgcUqkHmw0GUgdASgBLBDciGd+O4sXr/L/iZ
wxhdxcubWy4MbKcy7QlcS4Z4FwK6jjPQKjn+7PT3Wexh8SAX0661gntV7Rr/SYIY
edyRdtLd+SP+TuOn4wQY5x8ahHqGi4PDoSaCMAZ8jbQnbAXXeOlkBuyDm+Z4iGDC
OQgjvvQufB2ZA1ml9DjtZOWIdgUQfanGaO8TW+V5v+PFvfMkRFIMMyS8WEp6ePT/
IOBDxUBQ0BZ1BktkQ+Oifi179EyvghpePciUWX5oDf6AfW/QfLhnkVhQPQARAQAB
tDBBbGZyZXNjbyBTb2Z0d2FyZSwgSW5jIChHUEcpIDxpbmZvQGFsZnJlc2NvLmNv
bT6JAj4EEwECACgFAlRFM3ECGwMFCQHhM4AGCwkIBwMCBhUIAgkKCwQWAgMBAh4B
AheAAAoJEBmdmbHa07ZwTtYP/jdMOUFvUqAwaiDBap0+DqyyFgeWfa90b3O6LlAf
BeKin4lq8TEVL1CCehRSILAgd0nQQYHeJvLwpvZNl4t2TBFk5e/Xd4gHdszum4Ms
aJ0qc2G61ep5vE5z11Ca2vWLEG1Org+iVtZuMZcsCtPhFjyHE1PRU1s0ApoIXZxt
z35pgz5PSldPpOk4nuUKIhLLTpNLNd4fgbPiHhyqJloTMsOEycZ+W5Em2Ib2/kxx
0GIjAy5A9IlezALKengZ4NjHFwcddcP6+2rFgBTY/7KhhGNyOghwSIIJOdp0BQwD
bSN26e5WpYT+gja44QZ44KdMpOcxH8Qt0lJmjULizxcbYTPMsoPF3Jszm0E5auOQ
y2cixDEfmioqgJ4KKS6AIXd/yfLEvsGEU1Zz1a1yDQz12ZhzBa/GtoQRhzWErspR
7kMPiGKQEhQowB7vHfiCmVhx89RWPwZFFyLz92jS11ZGpeBlWF4hMSefQR7sFWLi
rYw0LOyMyFyz9P60ZKX18LHltxsrsteJA7zARcS0uv112O7wSTX1k44s5fiaWlVR
Ciuchcp0eTcsYa4Jiz4yZNnJhRi7tnsQJOXYF4IjGAxnJoBLSUUt2uEWtMg09m5F
vgrCNcc8HFy1hIIHy0l5CaLJY/5x9Z1Lg2dbwVP7+goTRogRGvpdjy7/eMlQEAgm
HMtsuQINBFRFM3EBEADCohKTxy3JYJ3dPzxhD/76nX0zkyvuhepVXAkpzjhWSx9r
9RQSB6WLnczlZVriQKVPR6RZ7fn4XhLim3v9e9c188R1WeUvuHWaJXDAvBWFarLu
y7kd1ZRpS0UWWE+k/WBruT5rEqjpW4Un/7WINsr972Ic7IFiv5ISUC7h/ylym5T1
w15WRZnMF96tLmMjzGdqJYrbu7Y4ZPYr5VwWnd9hE9Cal3YMMsfcXlIWOzw7BRDO
aWmMsWyFiVkwCeAZOSYthu4Qdo3bSlGo5C46JuRcdU1ZimZKztC1qlihiju7oWfa
3hJT/uWFu06IAdcI6lq4yEb+iG73BNUGNMDzpTeWLW7Q3IByZ/e9/DzFJcjsDf5N
jCzJGxAtEJ28egrZe6/Fk6yBwE0+nzUmOPU3qqi57aFFajfdV89SoQwKG83IpNJl
L9vbE62Iljm0DNK3VEotw9OMc6B3z6TfatVclqLFTH5Q+4rNcCytpK747loGVJcP
KFs1FzFj+hW2MkFcnY1JbuaSuyrhPVpg4Z1bjxLVLdlisYm0AL+n+z0tmFO45XJ2
mS06ckpqFAhk5HOOMOd/9+Qi3p9orE6dFM+TIWnxDphpws43O+FSYM8OJk7saGos
DNMvm9C0oz07MwMuthkLmSBsWmkZYXrvkUY1lrTdpyqqs11qllBZ1PsRATKeIQAR
AQABiQIlBBgBAgAPBQJURTNxAhsMBQkB4TOAAAoJEBmdmbHa07ZwQl4P/2FH+4Sa
JJgaNGoyyo1Oh1Xd1OMHf++V7FpXxHHmgEv6bTz3E8xHTMA7Zm1iBIPGrIo2loKe
49p3gbGFtvZLLT31Tg+usUN62QntKYOIiztdjsxzTskBgJH+A4Ucz7O1NsN6GQXF
QgGFlEpWApXCK8ogNp6ntwxGCyOFvZujuJjSFUZcpNEGhOYhYuKvo18qboP3RgVy
o74FPtPvh3YMz9DLRXeVbhhIq0oejek5z0aOXEjgZipVO4U7uDO5EVcG57jIVfiI
WM681KHG/Djx64GmSi9wo+P687Ib7+UHSzBTeEm9YVRNNSQFbuvxqq9XhDctkkbZ
m/QRbQXJFPQJcDOLLH06JNQ+/KvT8uwduiBFs2x77qKrVCxqCQU8XwY+KnyGouf9
sLdxDZwGoXFbnCyRKFH+fqoIMdcYzIT/VvGswTCNqSOvDxnSNO9REVbdsIJwenqt
QetRR7SVYKfcyLMCtMek3Fgst85khwP8tIYAEerE+XN04b1FfD3mjqvgBdUY7IDM
W1NVRTtjlX46ltNvtERO8JGYMqlRW/wpDXQzRxryNY7frXA+fhog2L53cOK/Fwc8
UcbLubQPkh/6+w4SybT2F8otOB1J8KZ0tzbTd5JxuX0V0AD8OjH+uuN67r5bQBk9
ARVlLqDOpHP01PW6WUQta2xAQ2mshuQZTX1H
=3Y/D
-----END PGP PUBLIC KEY BLOCK-----

201
LICENSE Normal file
View File

@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
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.

157
README.md Normal file
View File

@@ -0,0 +1,157 @@
# [![Alfresco SDK logo](https://github.com/Alfresco/alfresco-sdk/raw/master/src/site/resources/img/alfresco-maven-logo.jpg)](#features) Alfresco SDK
[![Build Status](https://github.com/Alfresco/alfresco-sdk/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Alfresco/alfresco-sdk/actions/workflows/ci.yml)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
![GitHub](https://img.shields.io/github/license/Alfresco/alfresco-sdk?color=brightgreen)
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.
If you are an Enterprise customer check the [Support](#alfresco-enterprise-customers-and-partners-support) section.
## News
- 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
- 2016-02-20: SDK 2.2.0 released to Maven Central. Docs for [Community](http://docs.alfresco.com/community/concepts/alfresco-sdk-intro.html), [Enterprise](http://docs.alfresco.com/5.1/concepts/alfresco-sdk-intro.html), [Release notes](https://artifacts.alfresco.com/nexus/content/repositories/alfresco-docs/alfresco-sdk-aggregator/latest/github-report.html)
- 2015-10-19: SDK 2.1.1 released to Maven Central. Docs for [Community](http://docs.alfresco.com/community/concepts/alfresco-sdk-intro.html), [Enterprise](http://docs.alfresco.com/5.0/concepts/alfresco-sdk-intro.html)
- 2015-05-20: SDK 2.1.0 released to Maven Central. Docs for [Community](http://docs.alfresco.com/community/concepts/alfresco-sdk-intro.html), [Enterprise](http://docs.alfresco.com/5.0/concepts/alfresco-sdk-intro.html)
- 2014-12-23: SDK 2.0.0 release to Maven Central. [Docs](http://docs.alfresco.com/sdk2.0/concepts/alfresco-sdk-intro.html), [Release Notes](https://artifacts.alfresco.com/nexus/content/repositories/alfresco-docs/alfresco-sdk-aggregator/archive/2.0.0/github-report.htm)
- 2014-08-22: First SNAPSHOT of SDK 2.0.0 in the [OSS Sonatype Repository](https://oss.sonatype.org/content/repositories/snapshots/org/alfresco/maven/alfresco-sdk-parent/2.0.0-SNAPSHOT/)!
- 2014-07: Project fully migrated from [Google Code](https://code.google.com/p/maven-alfresco-archetypes).
## 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 or SDK 4.5 instead of SDK 4.6.
- 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 4.6.x** (latest) visit the [Alfresco Documentation](docs/README.md).
#### Documentation about Previous Versions
| SDK Version | Alfresco Enterprise Version | Alfresco Community Version | Documentation |
|-------------|:----------------------------------------------:|:----------------------------------------------:|:---------------------------------------------------------------------------|
| 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)
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/).
- 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](docs/advanced-topics/working-with-enterprise/README.md).
### Alfresco Artifacts Repository
#### Alfresco Releases
You can use the following snippet in your pom.xml to access releases from the Alfresco Artifact repository:
```xml
<repository>
<id>alfresco-public</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
</repository>
```
#### SDK Snapshots
To test new unreleased (unsupported) features, you can use the following snippet in your pom.xml to access SDK nightlies (SNAPSHOTS) from the OSS Sonatype repository:
```xml
<repository>
<id>oss-sonatype-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</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).

1
archetypes/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.DS_Store

View File

@@ -0,0 +1,57 @@
<?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>alfresco-allinone-archetype</artifactId>
<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>4.6.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>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>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>
<addDefaultExcludes>false</addDefaultExcludes>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,2 @@
def file = new File( request.getOutputDirectory(), request.getArtifactId()+"/run.sh" );
file.setExecutable(true, false);

View File

@@ -0,0 +1,193 @@
<?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="Alfresco All In One (AIO) 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>
<modules>
<module id="${rootArtifactId}-platform"
name="${rootArtifactId}-platform"
dir="__rootArtifactId__-platform">
<fileSets>
<fileSet filtered="false" packaged="false" encoding="UTF-8">
<directory>src/main/assembly</directory>
<includes>
<include>**</include>
</includes>
</fileSet>
<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="false">
<directory>src/main/resources</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*-context.xml</exclude>
</excludes>
</fileSet>
<fileSet encoding="UTF-8" filtered="true" packaged="false">
<directory>src/main/resources</directory>
<includes>
<include>**/*-context.xml</include>
</includes>
</fileSet>
</fileSets>
</module>
<module id="${rootArtifactId}-share"
name="${rootArtifactId}-share"
dir="__rootArtifactId__-share">
<fileSets>
<fileSet filtered="false" packaged="false" encoding="UTF-8">
<directory>src/main/assembly</directory>
<includes>
<include>**</include>
</includes>
</fileSet>
<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 filtered="true" packaged="false" encoding="UTF-8">
<directory>src/main/resources/alfresco/web-extension</directory>
<includes>
<include>__artifactId__-slingshot-application-context.xml</include>
</includes>
</fileSet>
<fileSet filtered="true" packaged="false" encoding="UTF-8">
<directory>src/main/resources/alfresco/web-extension/site-data/extensions</directory>
<includes>
<include>__artifactId__-example-widgets.xml</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8" filtered="false">
<directory>src/main/resources</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/__artifactId__-slingshot-application-context.xml</exclude>
<exclude>**/__artifactId__-example-widgets.xml</exclude>
</excludes>
</fileSet>
</fileSets>
</module>
<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>
<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>
</fileSets>
</module>
<module id="${rootArtifactId}-platform-docker"
name="${rootArtifactId}-platform-docker"
dir="__rootArtifactId__-platform-docker">
<fileSets>
<fileSet encoding="UTF-8" filtered="false">
<directory>src/main/docker</directory>
<includes>
<include>license/**</include>
<include>Dockerfile</include>
<include>disable-webscript-caching-context.xml</include>
</includes>
<excludes>
<exclude>**/*.properties</exclude>
</excludes>
</fileSet>
<fileSet encoding="UTF-8" filtered="true">
<directory>src/main/docker</directory>
<includes>
<include>**/*.properties</include>
</includes>
<excludes>
<exclude>license/**</exclude>
<exclude>Dockerfile</exclude>
<exclude>disable-webscript-caching-context.xml</exclude>
</excludes>
</fileSet>
</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>
</modules>
<fileSets>
<fileSet encoding="UTF-8" filtered="true">
<directory>docker</directory>
<includes>
<include>**</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8" filtered="true">
<directory></directory>
<includes>
<include>.gitignore</include>
<include>run.sh</include>
<include>run.bat</include>
<include>README.md</include>
</includes>
</fileSet>
</fileSets>
</archetype-descriptor>

View 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

View File

@@ -0,0 +1,46 @@
# Alfresco AIO Project - SDK 4.6
This is an All-In-One (AIO) project for Alfresco SDK 4.6.
Run with `./run.sh build_start` or `./run.bat build_start` and verify that it
* Runs Alfresco Content Service (ACS)
* Runs Alfresco Share
* 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, 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 [JRebel integration documentation]
* AMP as an assembly
* 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
* Functional/remote unit tests

View File

@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>${artifactId}</artifactId>
<name>Integration Tests Module</name>
<description>Integration Tests module for in-container integration testing - part of AIO - SDK 4.6</description>
<packaging>jar</packaging> <!-- Note. this just runs Integration Tests, but it needs to be a JAR otherwise
nothing is compiled (i.e. you cannot set it to pom) -->
<parent>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<properties>
</properties>
<dependencies>
<!-- Bring in any custom module that should be tested, by default we bring in the Platform JAR module
that is generated for the AIO project -->
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-platform</artifactId>
<version>${version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<configuration>
<rebelXmlDirectory>${project.build.testOutputDirectory}</rebelXmlDirectory>
</configuration>
</plugin>
<!-- Make sure we attach the tests so we can include them when running -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Runs the integration tests, any class that follows naming convention
"**/IT*.java", "**/*IT.java", and "**/*ITCase.java" will be considered an integration test -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<acs.endpoint.path>${test.acs.endpoint.path}</acs.endpoint.path>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,191 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
import org.alfresco.model.ContentModel;
import org.alfresco.rad.test.AbstractAlfrescoIT;
import org.alfresco.rad.test.AlfrescoTestRunner;
import org.alfresco.repo.content.MimetypeMap;
import org.alfresco.repo.nodelocator.CompanyHomeNodeLocator;
import org.alfresco.service.cmr.repository.ChildAssociationRef;
import org.alfresco.service.cmr.repository.ContentReader;
import org.alfresco.service.cmr.repository.ContentWriter;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* Integration Test sample for a custom content model.
* See {@link DemoComponentIT} for more info.
*
* @author martin.bergljung@alfresco.com
* @since 3.0
*/
@RunWith(value = AlfrescoTestRunner.class)
public class CustomContentModelIT extends AbstractAlfrescoIT {
private static final String ACME_MODEL_NS = "{http://www.acme.org/model/content/1.0}";
private static final String ACME_MODEL_LOCALNAME = "contentModel";
private static final String ACME_DOCUMENT_TYPE = "document";
private static final String ACME_SECURITY_CLASSIFIED_ASPECT = "securityClassified";
private static final String ACME_DOCUMENT_ID_PROPNAME = "documentId";
@Test
public void testCustomContentModelPresence() {
Collection<QName> allContentModels = getServiceRegistry().getDictionaryService().getAllModels();
QName customContentModelQName = createQName(ACME_MODEL_LOCALNAME);
assertTrue("Custom content model " + customContentModelQName.toString() +
" is not present", allContentModels.contains(customContentModelQName));
}
@Test
public void testCreateAcmeDocument() {
// Create the ACME Doc file
QName type = createQName(ACME_DOCUMENT_TYPE);
String textContent = "Hello World!";
String documentId = "DOC001";
Map<QName, Serializable> nodeProperties = new HashMap<>();
nodeProperties.put(createQName(ACME_DOCUMENT_ID_PROPNAME), documentId);
nodeProperties.put(createQName("securityClassification"), "Company Confidential");
NodeRef nodeRef = createNode("AcmeFile.txt", type, nodeProperties);
addFileContent(nodeRef, textContent);
// Add an Aspect to the file (could be a custom aspect...)
Map<QName, Serializable> aspectProperties = new HashMap<>();
aspectProperties.put(ContentModel.PROP_TITLE, "Some Doc Title");
aspectProperties.put(ContentModel.PROP_DESCRIPTION, "Some Doc Description");
getServiceRegistry().getNodeService().addAspect(nodeRef, ContentModel.ASPECT_TITLED, aspectProperties);
// Assert that the file is created correctly
assertEquals("Invalid type", type, getServiceRegistry().getNodeService().getType(nodeRef));
assertTrue("Missing security aspect",
getServiceRegistry().getNodeService().hasAspect(nodeRef, createQName(ACME_SECURITY_CLASSIFIED_ASPECT)));
assertTrue("Missing titled aspect",
getServiceRegistry().getNodeService().hasAspect(nodeRef, ContentModel.ASPECT_TITLED));
assertEquals("Invalid property value", documentId,
getServiceRegistry().getNodeService().getProperty(nodeRef, createQName(ACME_DOCUMENT_ID_PROPNAME)));
readTextContent(nodeRef).equals(textContent);
// Clean up node
if (nodeRef != null) {
getServiceRegistry().getNodeService().deleteNode(nodeRef);
}
}
/**
* ==================== Helper Methods ============================================================================
*/
/**
* Create a QName for the ACME content model
*
* @param localname the local content model name without namespace specified
* @return the full ACME QName including namespace
*/
private QName createQName(String localname) {
return QName.createQName(ACME_MODEL_NS + localname);
}
/**
* Create a new node, such as a file or a folder, with passed in type and properties
*
* @param name the name of the file or folder
* @param type the content model type
* @param properties the properties from the content model
* @return the Node Reference for the newly created node
*/
private NodeRef createNode(String name, QName type, Map<QName, Serializable> properties) {
NodeRef parentFolderNodeRef = getCompanyHomeNodeRef();
QName associationType = ContentModel.ASSOC_CONTAINS;
QName associationQName = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI,
QName.createValidLocalName(name));
properties.put(ContentModel.PROP_NAME, name);
ChildAssociationRef parentChildAssocRef = getServiceRegistry().getNodeService().createNode(
parentFolderNodeRef, associationType, associationQName, type, properties);
return parentChildAssocRef.getChildRef();
}
/**
* Add some text content to a file node
*
* @param nodeRef the node reference for the file that should have some text content added to it
* @param fileContent the text content
*/
private void addFileContent(NodeRef nodeRef, String fileContent) {
boolean updateContentPropertyAutomatically = true;
ContentWriter writer = getServiceRegistry().getContentService().getWriter(nodeRef, ContentModel.PROP_CONTENT,
updateContentPropertyAutomatically);
writer.setMimetype(MimetypeMap.MIMETYPE_TEXT_PLAIN);
writer.setEncoding("UTF-8");
writer.putContent(fileContent);
}
/**
* Read text content for passed in file Node Reference
*
* @param nodeRef the node reference for a file containing text
* @return the text content
*/
private String readTextContent(NodeRef nodeRef) {
ContentReader reader = getServiceRegistry().getContentService().getReader(nodeRef, ContentModel.PROP_CONTENT);
if (reader == null) {
return ""; // Maybe it was a folder after all
}
InputStream is = reader.getContentInputStream();
try {
return IOUtils.toString(is, "UTF-8");
} catch (IOException ioe) {
throw new RuntimeException(ioe);
} finally {
if (is != null) {
try {
is.close();
} catch (Throwable e) {
e.printStackTrace();
}
}
}
}
/**
* Get the node reference for the /Company Home top folder in Alfresco.
* Use the standard node locator service.
*
* @return the node reference for /Company Home
*/
private NodeRef getCompanyHomeNodeRef() {
return getServiceRegistry().getNodeLocatorService().getNode(CompanyHomeNodeLocator.NAME, null, null);
}
}

View File

@@ -0,0 +1,67 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
import org.alfresco.rad.test.AbstractAlfrescoIT;
import org.alfresco.rad.test.AlfrescoTestRunner;
import org.alfresco.rad.test.Remote;
import org.alfresco.model.ContentModel;
import org.alfresco.service.cmr.repository.NodeRef;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
/**
* Integration Test of the DemoComponent using the Alfresco Test Runner.
* The Alfresco Test Runner (i.e. AlfrescoTestRunner.class) will check if it is running in an Alfresco instance,
* if so it will execute normally locally. On the other hand, if it detects no
* Alfresco Spring context, then it will make a call to a custom Web Script that
* will execute this test in the running container remotely. The remote location is
* determined by the @Remote config.
*
* @author martin.bergljung@alfresco.com
* @since 3.0
*/
@RunWith(value = AlfrescoTestRunner.class)
public class DemoComponentIT extends AbstractAlfrescoIT {
@Test
public void testGetCompanyHome() {
DemoComponent demoComponent = (DemoComponent) getApplicationContext().getBean("${package}.DemoComponent");
NodeRef companyHome = demoComponent.getCompanyHome();
assertNotNull(companyHome);
String companyHomePath = getServiceRegistry().getNodeService().getPath(companyHome).toPrefixString(getServiceRegistry().getNamespaceService());
assertNotNull(companyHomePath);
assertEquals("/app:company_home", companyHomePath);
}
@Test
public void testChildNodesCount() {
DemoComponent demoComponent = (DemoComponent) getApplicationContext().getBean("${package}.DemoComponent");
NodeRef companyHome = demoComponent.getCompanyHome();
int childNodeCount = demoComponent.childNodesCount(companyHome);
assertNotNull(childNodeCount);
// There are 7 folders by default under Company Home
assertEquals(7, childNodeCount);
}
}

View File

@@ -0,0 +1,85 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.BasicCredentialsProvider;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.util.EntityUtils;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
/**
* Integration Test (IT) for Hello World web script.
*
* @author martin.bergljung@alfresco.com
* @version 1.0
* @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 = getPlatformEndpoint() + "/service/sample/helloworld";
String expectedResponse = "Message: 'Hello from JS!' 'HelloFromJava'";
// Login credentials for Alfresco Repo
CredentialsProvider provider = new BasicCredentialsProvider();
UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("admin", "admin");
provider.setCredentials(AuthScope.ANY, credentials);
// Create HTTP Client with credentials
CloseableHttpClient httpclient = HttpClientBuilder.create()
.setDefaultCredentialsProvider(provider)
.build();
// Execute Web Script call
try {
HttpGet httpget = new HttpGet(webscriptURL);
HttpResponse httpResponse = httpclient.execute(httpget);
assertEquals("Incorrect HTTP Response Status",
HttpStatus.SC_OK, httpResponse.getStatusLine().getStatusCode());
HttpEntity entity = httpResponse.getEntity();
assertNotNull("Response from Web Script is null", entity);
assertEquals("Incorrect Web Script Response", expectedResponse, EntityUtils.toString(entity));
} finally {
httpclient.close();
}
}
private String getPlatformEndpoint() {
final String platformEndpoint = System.getProperty(ACS_ENDPOINT_PROP);
return StringUtils.isNotBlank(platformEndpoint) ? platformEndpoint : ACS_DEFAULT_ENDPOINT;
}
}

View File

@@ -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>

View File

@@ -0,0 +1,23 @@
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-log4j.properties $TOMCAT_DIR/shared/classes/alfresco/extension
COPY disable-webscript-caching-context.xml $TOMCAT_DIR/shared/classes/alfresco/extension
# Copy Dockerfile to avoid an error if no license file exists
COPY Dockerfile license/*.* $TOMCAT_DIR/webapps/alfresco/WEB-INF/classes/alfresco/extension/license/
USER ${USERNAME}

View File

@@ -0,0 +1,88 @@
#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.
# 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.
#
# Alfresco Repo Webapp (alfresco.war) context, ports etc
alfresco.context=alfresco
alfresco.host=localhost
alfresco.port=8080
alfresco.protocol=http
# Alfresco Share Webapp (share.war) context, ports etc
share.context=share
share.host=localhost
share.port=8180
share.protocol=http
# Don't try and recover any index
index.recovery.mode=NONE
# These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
# See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
# If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
# Fail or not when there are node integrity checker errors
integrity.failOnError=true
# Alfresco Repository PostgreSQL Database configuration.
# The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
db.driver=org.postgresql.Driver
# 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
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

View File

@@ -0,0 +1,270 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
# Set root logger level to error
log4j.rootLogger=error, Console, File
# All outputs currently set to be a ConsoleAppender.
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
# use log4j NDC to replace %x with tenant domain / username
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=logs/alfresco.log
log4j.appender.File.Append=true
log4j.appender.File.DatePattern='.'yyyy-MM-dd
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
#log4j.appender.file=org.apache.log4j.FileAppender
#log4j.appender.file.File=hibernate.log
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
# Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
# control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via
# Log4j addLoggerMBean as long as the logger exists and has been loaded.
# Hibernate
log4j.logger.org.hibernate=error
log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
log4j.logger.org.hibernate.type=warn
log4j.logger.org.hibernate.cfg.SettingsFactory=warn
# Spring
log4j.logger.org.springframework=warn
# Turn off Spring remoting warnings that should really be info or debug.
log4j.logger.org.springframework.remoting.support=error
log4j.logger.org.springframework.util=error
# Axis/WSS4J
log4j.logger.org.apache.axis=info
log4j.logger.org.apache.ws=info
# CXF
log4j.logger.org.apache.cxf=error
# MyFaces
log4j.logger.org.apache.myfaces.util.DebugUtils=info
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
log4j.logger.org.apache.myfaces.taglib=error
# OpenOfficeConnection
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
# log prepared statement cache activity log4j.logger.org.hibernate.ps.PreparedStatementCache=info
# Alfresco
log4j.logger.org.alfresco=error
log4j.logger.org.alfresco.repo.admin=info
log4j.logger.org.alfresco.repo.transaction=warn
log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn
log4j.logger.org.alfresco.repo.model.filefolder=warn
log4j.logger.org.alfresco.repo.tenant=info
log4j.logger.org.alfresco.config=warn
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn
log4j.logger.org.alfresco.repo.management.subsystems=warn
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn
log4j.logger.org.alfresco.repo.security.sync=info
log4j.logger.org.alfresco.repo.security.person=info
log4j.logger.org.alfresco.sample=info
log4j.logger.org.alfresco.web=info
#log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
#log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
#log4j.logger.org.alfresco.web.bean.clipboard=debug
log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
#log4j.logger.org.alfresco.web.page=debug
log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error
#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info
# Specific patches
log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info
log4j.logger.org.alfresco.repo.version.VersionMigrator=info
log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn
log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn
log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info
log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn
log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn
log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn
log4j.logger.org.alfresco.util.AbstractTriggerBean=warn
log4j.logger.org.alfresco.enterprise.repo.cluster=info
log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn
#log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
log4j.logger.org.alfresco.repo.node.db.NodeStringLengthWorker=info
log4j.logger.org.alfresco.repo.workflow=info
# CIFS server debugging
log4j.logger.org.alfresco.smb.protocol=error
#log4j.logger.org.alfresco.smb.protocol.auth=debug
#log4j.logger.org.alfresco.acegi=debug
# FTP server debugging
log4j.logger.org.alfresco.ftp.protocol=error
#log4j.logger.org.alfresco.ftp.server=debug
# WebDAV debugging
#log4j.logger.org.alfresco.webdav.protocol=debug
log4j.logger.org.alfresco.webdav.protocol=info
# NTLM servlet filters
#log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
#log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
# Kerberos servlet filters
#log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug
#log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug
# File servers
log4j.logger.org.alfresco.fileserver=warn
# Repo filesystem debug logging
#log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug
# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
log4j.logger.org.alfresco.repo.node.integrity=ERROR
# Indexer debugging
log4j.logger.org.alfresco.repo.search.Indexer=error
#log4j.logger.org.alfresco.repo.search.Indexer=debug
log4j.logger.org.alfresco.repo.search.impl.lucene.index=error
log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn
#log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
# Audit debugging
# log4j.logger.org.alfresco.repo.audit=DEBUG
# log4j.logger.org.alfresco.repo.audit.model=DEBUG
# Property sheet and modelling debugging
# change to error to hide the warnings about missing properties and associations
log4j.logger.alfresco.missingProperties=warn
# Dictionary/Model debugging
log4j.logger.org.alfresco.repo.dictionary=warn
log4j.logger.org.alfresco.repo.dictionary.types.period=warn
# Virtualization Server Registry
log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error
# Spring context runtime property setter
log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info
# Debugging options for clustering
log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error
log4j.logger.org.alfresco.repo.content.replication=error
#log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
# Activity service
log4j.logger.org.alfresco.repo.activities=warn
# User usage tracking
log4j.logger.org.alfresco.repo.usage=info
# Sharepoint
log4j.logger.org.alfresco.module.vti=info
# Forms Engine
log4j.logger.org.alfresco.web.config.forms=info
log4j.logger.org.alfresco.web.scripts.forms=info
# CMIS
log4j.logger.org.alfresco.opencmis=error
log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error
log4j.logger.org.alfresco.cmis=error
log4j.logger.org.alfresco.cmis.dictionary=warn
log4j.logger.org.apache.chemistry.opencmis=info
log4j.logger.org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet=OFF
log4j.logger.org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet=OFF
# IMAP
log4j.logger.org.alfresco.repo.imap=info
# JBPM
# Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler
log4j.logger.org.jbpm.graph.def.GraphElement=fatal
#log4j.logger.org.alfresco.repo.googledocs=debug
# Web Framework
log4j.logger.org.springframework.extensions.webscripts=info
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
# Repository
log4j.logger.org.alfresco.repo.web.scripts=warn
log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off
log4j.logger.org.alfresco.repo.jscript=error
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn
log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info
log4j.logger.org.alfresco.repo.domain.schema.script.ScriptBundleExecutorImpl=off
log4j.logger.org.alfresco.repo.domain.schema.script.ScriptExecutorImpl=info
log4j.logger.org.alfresco.repo.search.impl.solr.facet.SolrFacetServiceImpl=info
# Bulk Filesystem Import Tool
log4j.logger.org.alfresco.repo.bulkimport=warn
# Freemarker
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
log4j.logger.freemarker.runtime=
# Metadata extraction
log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn
# Reduces PDFont error level due to ALF-7105
log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal
log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal
log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal
# no index support
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal
# lucene index warnings
log4j.logger.org.alfresco.repo.search.impl.lucene.index.IndexInfo=warn
# Warn about RMI socket bind retries.
log4j.logger.org.alfresco.util.remote.server.socket.HostConfigurableSocketFactory=warn
log4j.logger.org.alfresco.repo.usage.RepoUsageMonitor=info
# Authorization
log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationService=info
log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationsConsistencyMonitor=warn
#-----------------------------------------------------------------------
# Platform module logging
#-----------------------------------------------------------------------
log4j.logger.${package}.platformsample.DemoComponent=debug
log4j.logger.${package}.platformsample.HelloWorldWebScript=debug

View File

@@ -0,0 +1,63 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans>
<!--
To support hot reloading of server side Javascript files in Share, we have to turn on development mode.
This setting will tell the Rhinoscript Processor not to compile and cache the JS files.
Cool, we can now change server side JS files and have the changes picked up,
without having to restart or refresh web scripts.
But… Due to a known bug in the Surf framework (ALF-9970) this will break the admin consoles in Share.
Override this bean and disable javascript compilation so that webscripts can be hot reloaded.
We have changed the 'compile' property from true to false.
-->
<bean id="javaScriptProcessor" class="org.alfresco.repo.jscript.RhinoScriptProcessor" init-method="register">
<property name="name">
<value>javascript</value>
</property>
<property name="extension">
<value>js</value>
</property>
<!-- Do not "compile javascript and cache compiled scripts" -->
<property name="compile">
<value>false</value>
</property>
<!-- allow sharing of sealed scopes for performance -->
<!-- disable to give each script it's own new scope which can be extended -->
<property name="shareSealedScopes">
<value>true</value>
</property>
<property name="scriptService">
<ref bean="scriptService"/>
</property>
<!-- Creates ScriptNodes which require the ServiceRegistry -->
<property name="serviceRegistry">
<ref bean="ServiceRegistry"/>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
<property name="storePath">
<value>${spaces.company_home.childname}</value>
</property>
</bean>
</beans>

View File

@@ -0,0 +1,51 @@
#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
#autoHotswap.port=8000
# Add a directory prior to application classpath (load classes and resources).
#
# This may be useful for example in multi module maven project to load class changes from upstream project
# classes. Set extraClasspath to upstream project compiler output and .class file will have precedence to
# classes from built JAR file.
# i.e. monitor /target/classes
# should work with extraClasspath=${project.build.outputDirectory}
# If not try
extraClasspath=/usr/local/tomcat/hotswap-agent
# Comma separated list of disabled plugins
# 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
# Add a directory prior to webapp path (load webapp resources).
#
# 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=/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=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-platform/target/classes/META-INF/resources;
# Watch for changes in a directory (resources only).
#
# Similar to extraClasspath this property adds classpath when searching for resources (not classes).
# While extra classpath just modifies the classloader, this setting does nothing until the resource
# is really changed.
#
# Sometimes it is not possible to point extraClasspath to your i.e. src/main/resources, because there are multiple
# replacements of resources in a building step (maven filtering resource option).
# This setting will leave i.e. src/target/classes as default source for resources, but after the resource is modified
# in src/main/resources, the new changed resource is served instead.
# watchResources=
LOGGER.org.hotswap.agent=DEBUG
#LOGGER.org.hotswap.agent.plugin=TRACE
#LOGGER.org.hotswap.agent.watch=TRACE
#LOGGER.org.hotswap.agent.command=TRACE

View File

@@ -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.

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>${artifactId}</artifactId>
<name>Alfresco Platform/Repository JAR Module</name>
<description>Platform/Repo JAR Module (to be included in the alfresco.war) - part of AIO - SDK 4.6</description>
<packaging>jar</packaging>
<parent>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<properties>
</properties>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,66 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<!--
Note that the Module dependency specified in the configuration section for the Alfresco Maven Plugin
needs to be set to amp if any 3rd party libs should be applied by MMT:
`
<platformModules>
<moduleDependency>
<groupId>${project.groupId}</groupId>
<artifactId>some-platform</artifactId>
<version>${project.version}</version>
<type>amp</type>
</moduleDependency>
-->
<id>build-amp-file</id>
<formats>
<format>amp</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<files>
<!-- Filter module.properties and put at top level in the AMP -->
<file>
<source>src/main/resources/alfresco/module/${project.artifactId}/module.properties</source>
<filtered>true</filtered>
</file>
<!-- Include AMP -> WAR mapping file (needed for custom mappings) -->
<file>
<source>src/main/assembly/file-mapping.properties</source>
<filtered>false</filtered>
</file>
<!-- Add module-specific log4j.properties configuration at top level in the AMP -->
<file>
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j.properties</source>
<filtered>false</filtered>
</file>
</files>
<fileSets>
<!-- Anything in the assembly/web directory will end up in the /web directory in the AMP -->
<fileSet>
<directory>src/main/assembly/web</directory>
<outputDirectory>web</outputDirectory>
<filtered>true</filtered> <!-- Will filter files and substitute POM props such as for example ${project.name} -->
<excludes>
<exclude>README.md</exclude>
</excludes>
</fileSet>
</fileSets>
<!-- Include the project artifact (JAR) in the /lib directory in the AMP, and any 3rd party libraries (JARs)
used by the customization.
-->
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>

View File

@@ -0,0 +1,27 @@
# Custom AMP to WAR location mappings
#
# The following property can be used to include the standard set of mappings.
# The contents of this file will override any defaults. The default is
# 'true', i.e. the default mappings will be augmented or modified by values in
# this file.
#
# Default mappings are:
#
# /config=/WEB-INF/classes
# /lib=/WEB-INF/lib
# /licenses=/WEB-INF/licenses
# /web/jsp=/jsp
# /web/css=/css
# /web/images=/images
# /web/scripts=/scripts
# /web/php=/php
#
include.default=true
#
# Custom mappings. If 'include.default' is false, then this is the complete set.
# Map /web to / in AMP so we can override things like favicon.ico
#
/web=/

View File

@@ -0,0 +1,22 @@
# Web resources that should override out-of-the-box files
Put here any web resources that should override out-of-the-box
web resources, such as favicon.ico. They will then end up in the
*/web* directory in the AMP, and applied to the WAR, and override
any existing web resources in the Alfresco.WAR.
**Note**. Module dependency needs to be set to amp for the web resources to be applied by MMT:
`
<moduleDependency>
<groupId>${project.groupId}</groupId>
<artifactId>some-platform</artifactId>
<version>${project.version}</version>
<type>amp</type>
</moduleDependency>
`
**Important**. New web resources should not be located here, but instead
in the usual place in the *src/main/resources/META-INF/resources* directory.

View File

@@ -0,0 +1,35 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
/**
* This class does nothing except dump some output to <i>system.out</i>.
* This is a sample taken from Maven Alfresco SDK
*
* @author Derek Hulley
*/
public class Demo
{
public void init()
{
System.out.println("Platform JAR Module class has been loaded");
}
}

View File

@@ -0,0 +1,84 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
import org.alfresco.repo.module.AbstractModuleComponent;
import org.alfresco.repo.nodelocator.NodeLocatorService;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* A basic component that will be started for this module.
* Uses the NodeLocatorService to easily find nodes and the
* NodeService to display them
*
* @author Gabriele Columbro
* @author Maurizio Pillitu
*/
public class DemoComponent extends AbstractModuleComponent {
private static Log logger = LogFactory.getLog(DemoComponent.class);
private NodeService nodeService;
private NodeLocatorService nodeLocatorService;
public void setNodeService(NodeService nodeService) {
this.nodeService = nodeService;
}
public void setNodeLocatorService(NodeLocatorService nodeLocatorService) {
this.nodeLocatorService = nodeLocatorService;
}
/**
* Bogus component execution
*/
@Override
protected void executeInternal() throws Throwable {
System.out.println("DemoComponent has been executed");
logger.debug("Test debug logging. Congratulation your JAR Module is working");
logger.info("This is only for information purposes. Better remove me from the log in Production");
}
/**
* This is a demo service interaction with Alfresco Foundation API.
* This sample method returns the number of child nodes of a certain type
* under a certain node.
*
* @return
*/
public int childNodesCount(NodeRef nodeRef) {
return nodeService.countChildAssocs(nodeRef, true);
}
/**
* Returns the NodeRef of "Company Home"
*
* @return
*/
public NodeRef getCompanyHome()
{
return nodeLocatorService.getNode("companyhome", null, null);
}
}

View File

@@ -0,0 +1,51 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
import org.springframework.extensions.webscripts.Cache;
import org.springframework.extensions.webscripts.DeclarativeWebScript;
import org.springframework.extensions.webscripts.Status;
import org.springframework.extensions.webscripts.WebScriptRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.HashMap;
import java.util.Map;
/**
* A demonstration Java controller for the Hello World Web Script.
*
* @author martin.bergljung@alfresco.com
* @since 2.1.0
*/
public class HelloWorldWebScript extends DeclarativeWebScript {
private static Log logger = LogFactory.getLog(HelloWorldWebScript.class);
protected Map<String, Object> executeImpl(
WebScriptRequest req, Status status, Cache cache) {
Map<String, Object> model = new HashMap<String, Object>();
model.put("fromJava", "HelloFromJava");
logger.debug("Your 'Hello World' Web Script was called!");
return model;
}
}

View File

@@ -0,0 +1,8 @@
<webscript>
<shortname>Hello World Sample Webscript</shortname>
<description>Hands back a greeting</description>
<url>/sample/helloworld</url>
<authentication>user</authentication>
<format default="html"></format>
<lifecycle>sample</lifecycle>
</webscript>

View File

@@ -0,0 +1,5 @@
## 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.
##

View File

@@ -0,0 +1,45 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- The bootstrap-context.xml file is used for patch definitions, importers,
workflow, and loading custom content models. -->
<!-- Registration of new models -->
<bean id="${artifactId}.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/module/${project.artifactId}/model/content-model.xml</value>
<value>alfresco/module/${project.artifactId}/model/workflow-model.xml</value>
</list>
</property>
<property name="labels">
<list>
<!-- Bootstrap Resource Bundles for the content model types, aspects, properties etc -->
<value>alfresco/module/${project.artifactId}/messages/content-model</value>
</list>
</property>
</bean>
<bean id="${package}.sampleprocess.workflowBootstrap" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/module/${project.artifactId}/workflow/sample-process.bpmn20.xml</prop>
<prop key="mimetype">text/xml</prop>
</props>
</list>
</property>
<property name="labels">
<list>
<value>alfresco/module/${project.artifactId}/messages/workflow-messages</value>
</list>
</property>
</bean>
</beans>

View File

@@ -0,0 +1,44 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<?xml version='1.0' encoding='UTF-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- A simple class that is initialized by Spring -->
<bean id="${package}.Demo" class="${package}.platformsample.Demo" init-method="init" />
<!-- A simple module component that will be executed once.
Note. this module component will only be executed once, and then there will be an entry for it in the Repo DB.
So doing for example $ mvn clean install alfresco:run twice will only execute this component the first time.
You need to remove /alf_data_dev for it to be executed again. -->
<bean id="${package}.DemoComponent" class="${package}.platformsample.DemoComponent" parent="module.baseComponent" >
<property name="moduleId" value="${artifactId}" /> <!-- See module.properties -->
<property name="name" value="DemoComponent" />
<property name="description" value="A demonstration component" />
<property name="sinceVersion" value="1.0" />
<property name="appliesFromVersion" value="0.99" /> <!-- 1.0 would not work here when using SNAPSHOT version in project -->
<property name="nodeService" ref="NodeService" />
<property name="nodeLocatorService" ref="nodeLocatorService" />
</bean>
</beans>

View File

@@ -1,25 +1,29 @@
<?xml version='1.0' encoding='UTF-8'?>
<!--
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.
-->
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<?xml version='1.0' encoding='UTF-8'?>
<!--
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
<import resource="classpath:alfresco/module/${groupId}.${artifactId}/context/service-context.xml" />
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="webscript.alfresco.tutorials.helloworld.get"
class="${package}.platformsample.HelloWorldWebScript"
parent="webscript">
</bean>
</beans>

View File

@@ -0,0 +1,6 @@
# This file should contain content model labels
acme_contentModel.type.acme_document.title=ACME Document
acme_contentModel.aspect.acme_securityClassified.title=ACME Security Classified
acme_contentModel.property.acme_documentId.title=Document Id
acme_contentModel.property.acme_securityClassification.title=Security Classification

View File

@@ -0,0 +1,5 @@
#
# Activiti My Process Workflow
#
my-process.workflow.title=My Process
my-process.workflow.description=This is my custom process

View File

@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<model name="acme:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!-- Optional meta-data about the model -->
<description>Sample Document Model</description>
<author>My Name</author>
<version>1.0</version>
<imports>
<!-- Import Alfresco Dictionary Definitions -->
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!-- Import Alfresco Content Domain Model Definitions -->
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<!-- Import Alfresco System Model Definitions -->
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
</imports>
<!-- Custom namespace for the ACME company -->
<namespaces>
<namespace uri="http://www.acme.org/model/content/1.0" prefix="acme"/>
</namespaces>
<constraints>
<constraint name="acme:securityClassificationOptions" type="LIST">
<parameter name="allowedValues">
<list>
<value></value>
<!-- Empty for default search-->
<value>Public</value>
<value>Client Confidential</value>
<value>Company Confidential</value>
<value>Strictly Confidential</value>
</list>
</parameter>
</constraint>
</constraints>
<!-- ===============================================================================================================
Constraints, Types, and Aspects go here...
-->
<types>
<!--
ACME Enterprise-wide Document root type.
All other custom document types would extend this one.
-->
<type name="acme:document">
<title>Sample Document Type</title>
<parent>cm:content</parent>
<properties>
<property name="acme:documentId">
<title>Document Identification Number</title>
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>acme:securityClassified</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<!-- A document can have security classification applied and
faceted search is specifically enabled for best performance and we change
default index config to not tokenize the value. -->
<aspect name="acme:securityClassified">
<title>ACME Security Classified</title>
<description>Content has been security classified</description>
<properties>
<property name="acme:securityClassification">
<type>d:text</type>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>false</tokenised>
</index>
<constraints>
<constraint ref="acme:securityClassificationOptions"/>
</constraints>
</property>
</properties>
</aspect>
</aspects>
</model>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<model name="acmew:workflowModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!-- Optional meta-data about the model -->
<description>Sample Workflow Model</description>
<author>My Name</author>
<version>1.0</version>
<imports>
<!-- Import Alfresco Dictionary Definitions -->
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!-- Import Alfresco Content Domain Model Definitions -->
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<!-- Import Alfresco Workflow Model Definitions -->
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
</imports>
<!-- Custom namespace for your domain -->
<namespaces>
<namespace uri="http://www.acme.org/model/workflow/1.0" prefix="acmew"/>
</namespaces>
<!-- ===============================================================================================================
Constraints, Types, and Aspects go here...
-->
</model>

View File

@@ -0,0 +1,32 @@
<?xml version='1.0' encoding='UTF-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- This is filtered by Maven at build time, so that module name is single sourced. -->
<!-- Note. The bootstrap-context.xml file has to be loaded first.
Otherwise your custom models are not yet loaded when your service beans are instantiated and you
cannot for example register policies on them. -->
<import resource="classpath:alfresco/module/${project.artifactId}/context/bootstrap-context.xml" />
<import resource="classpath:alfresco/module/${project.artifactId}/context/service-context.xml" />
<import resource="classpath:alfresco/module/${project.artifactId}/context/webscript-context.xml" />
</beans>

View File

@@ -18,12 +18,13 @@
# SDK Sample module
# ==== Beginning of Alfresco required/optional properties ====== #
module.id=${pom.groupId}.${pom.artifactId}
# NB: These properties are filtered at build time by Maven, single
# sourcing from POM properties
module.id=${project.artifactId}
#module.aliases=myModule-123, my-module
module.title=${pom.name}
module.description=${pom.description}
module.version=${noSnapshotVersion}.${buildNumber}
module.title=${project.name}
module.description=${project.description}
module.version=${project.version}
# The following optional properties can be used to prevent the module from being added
# to inappropriate versions of the WAR file.

View File

@@ -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>

View File

@@ -0,0 +1,56 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.extensions.webscripts.*;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
/**
* Unit testing the Web Script Java Controller
*
* @author martin.bergljung@alfresco.com
* @version 1.0
* @since 3.0
*/
public class HelloWorldWebScriptControllerTest {
@Test
public void testController() {
WebScriptRequest req = Mockito.mock(WebScriptRequest.class);
Status status = Mockito.mock(Status.class);
Cache cache = Mockito.mock(Cache.class);
String helloPropName = "fromJava";
String helloPropExpectedValue = "HelloFromJava";
HelloWorldWebScript ws = new HelloWorldWebScript();
Map<String, Object> model = ws.executeImpl(req, status, cache);
assertNotNull("Response from Web Script Java Controller is null", model);
assertEquals("Incorrect Web Script Java Controller Response",
helloPropExpectedValue, model.get(helloPropName));
}
}

View File

@@ -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>

View File

@@ -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 log4j.properties $TOMCAT_DIR/webapps/share/WEB-INF/classes
COPY hotswap-agent.properties $TOMCAT_DIR/webapps/share/WEB-INF/classes

View File

@@ -0,0 +1,52 @@
#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
#autoHotswap.port=8000
# Add a directory prior to application classpath (load classes and resources).
#
# This may be useful for example in multi module maven project to load class changes from upstream project
# classes. Set extraClasspath to upstream project compiler output and .class file will have precedence to
# classes from built JAR file.
# i.e. monitor /target/classes
# should work with extraClasspath=${project.build.outputDirectory}
# If not try
extraClasspath=/usr/local/tomcat/hotswap-agent
# Comma separated list of disabled plugins
# 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
# Add a directory prior to webapp path (load webapp resources).
#
# 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=/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=/usr/local/tomcat/hotswap-agent/${rootArtifactId}-share/target/classes/META-INF/resources;
# Watch for changes in a directory (resources only).
#
# Similar to extraClasspath this property adds classpath when searching for resources (not classes).
# While extra classpath just modifies the classloader, this setting does nothing until the resource
# is really changed.
#
# Sometimes it is not possible to point extraClasspath to your i.e. src/main/resources, because there are multiple
# replacements of resources in a building step (maven filtering resource option).
# This setting will leave i.e. src/target/classes as default source for resources, but after the resource is modified
# in src/main/resources, the new changed resource is served instead.
# watchResources=
LOGGER.org.hotswap.agent=DEBUG
#LOGGER.org.hotswap.agent.plugin=TRACE
#LOGGER.org.hotswap.agent.watch=TRACE
#LOGGER.org.hotswap.agent.command=TRACE

View File

@@ -0,0 +1,57 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
# Set root logger level to error
log4j.rootLogger=error, Console, File
# Console appender definition #
# All outputs currently set to be a ConsoleAppender.
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
# use log4j NDC to replace %x with tenant domain / username
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
# File appender definition #
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=share.log
log4j.appender.File.Append=true
log4j.appender.File.DatePattern='.'yyyy-MM-dd
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
# Spring
log4j.logger.org.springframework=warn
# Turn off Spring remoting warnings that should really be info or debug.
log4j.logger.org.springframework.remoting.support=error
log4j.logger.org.springframework.util=error
# MyFaces
log4j.logger.org.apache.myfaces.util.DebugUtils=info
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
log4j.logger.org.apache.myfaces.taglib=error
# Alfresco
log4j.logger.org.alfresco=error
log4j.logger.org.alfresco.config=warn
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
log4j.logger.org.alfresco.web=info
# Web Framework
log4j.logger.org.springframework.extensions.webscripts=info
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
# Freemarker
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
log4j.logger.freemarker.runtime=
#-----------------------------------------------------------------------
# Custom Share module logging goes here...
#-----------------------------------------------------------------------

View File

@@ -0,0 +1,105 @@
<alfresco-config>
<config evaluator="string-compare" condition="WebFramework">
<web-framework>
<autowire>
<!-- Changing this to 'development' currently breaks the Admin Console.
Instead we make a POST to clear Share dependency caches, see 'clear-caches-refresh-ws' profile. -->
<mode>production</mode> <!-- not really need in the long run, used for YUI - deprecate -->
</autowire>
<!--
We don't need to do this when we have the new refresh mojos in the Alfresco plug-in.
If resource caching has been disabled then all the dependency caches will be cleared
before processing the Aikau jsonModel request...
(i.e. this.dojoDependencyHandler.clearCaches() )
For more information see the Aikau source code: https://github.com/Alfresco/Aikau
-->
<disable-resource-caching>false</disable-resource-caching>
</web-framework>
</config>
<!-- Global config section -->
<config replace="true">
<flags>
<!--
Developer debugging setting to turn on DEBUG mode for client scripts in the browser
-->
<client-debug>true</client-debug>
<!--
LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
This flag automatically activates logging on page load.
-->
<client-debug-autologging>false</client-debug-autologging>
</flags>
</config>
<!--
Disable CSRF completely for now
It seems Share has issues on 4.x with the embedded tomcat and CSRFPolicy
-->
<config evaluator="string-compare" condition="CSRFPolicy" replace="true">
<filter/>
</config>
<!--
Change so it is picked up from property where the Alfresco Repo Webapp is running
(e.g. http://localhost:8080/alfresco)
-->
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>alfresco-noauth</id>
<name>Alfresco - unauthenticated access</name>
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://${acs.host}:8080/alfresco/s</endpoint-url>
<identity>none</identity>
</endpoint>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://${acs.host}:8080/alfresco/s</endpoint-url>
<identity>user</identity>
</endpoint>
<endpoint>
<id>alfresco-feed</id>
<name>Alfresco Feed</name>
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
<connector-id>http</connector-id>
<endpoint-url>http://${acs.host}:8080/alfresco/s</endpoint-url>
<basic-auth>true</basic-auth>
<identity>user</identity>
</endpoint>
<endpoint>
<id>activiti-admin</id>
<name>Activiti Admin UI - user access</name>
<description>Access to Activiti Admin UI, that requires user authentication</description>
<connector-id>activiti-admin-connector</connector-id>
<endpoint-url>http://${acs.host}:8080/alfresco/activiti-admin</endpoint-url>
<identity>user</identity>
</endpoint>
<endpoint>
<id>alfresco-api</id>
<parent-id>alfresco</parent-id>
<name>Alfresco Public API - user access</name>
<description>Access to Alfresco Repository Public API that require user authentication.
This makes use of the authentication that is provided by parent 'alfresco' endpoint.</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://${acs.host}:8080/alfresco/api</endpoint-url>
<identity>user</identity>
</endpoint>
</remote>
</config>
</alfresco-config>

View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>${artifactId}</artifactId>
<name>Alfresco Share JAR Module</name>
<packaging>jar</packaging>
<description>Sample Share JAR Module (to be included in the share.war) - part of AIO - SDK 4.6</description>
<parent>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<properties>
</properties>
<!-- Following dependencies are needed for compiling Java code in src/main/java;
<scope>provided</scope> is inherited for each of the following;
for more info, please refer to alfresco-platform-distribution POM -->
<dependencies>
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>share</artifactId>
<classifier>classes</classifier>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,66 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<!--
Note that the Module dependency specified in the configuration section for the Alfresco Maven Plugin
needs to be set to amp if any 3rd party libs should be applied by MMT:
`
<shareModules>
<moduleDependency>
<groupId>${project.groupId}</groupId>
<artifactId>some-share</artifactId>
<version>${project.version}</version>
<type>amp</type>
</moduleDependency>
-->
<id>build-amp-file</id>
<formats>
<format>amp</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<files>
<!-- Filter module.properties and put at top level in the AMP -->
<file>
<source>src/main/resources/alfresco/module/${project.artifactId}/module.properties</source>
<filtered>true</filtered>
</file>
<!-- Include AMP -> WAR mapping file (needed for custom mappings) -->
<file>
<source>src/main/assembly/file-mapping.properties</source>
<filtered>false</filtered>
</file>
<!-- Add module-specific log4j.properties configuration at top level in the AMP -->
<file>
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j.properties</source>
<filtered>false</filtered>
</file>
</files>
<fileSets>
<!-- Anything in the assembly/web directory will end up in the /web directory in the AMP -->
<fileSet>
<directory>src/main/assembly/web</directory>
<outputDirectory>web</outputDirectory>
<filtered>true</filtered> <!-- Will filter files and substitute POM props such as for example ${project.name} -->
<excludes>
<exclude>README.md</exclude>
</excludes>
</fileSet>
</fileSets>
<!-- Include the project artifact (JAR) in the /lib directory in the AMP, and any 3rd party libraries (JARs)
used by the customization.
-->
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>

View File

@@ -0,0 +1,27 @@
# Custom AMP to WAR location mappings
#
# The following property can be used to include the standard set of mappings.
# The contents of this file will override any defaults. The default is
# 'true', i.e. the default mappings will be augmented or modified by values in
# this file.
#
# Default mappings are:
#
# /config=/WEB-INF/classes
# /lib=/WEB-INF/lib
# /licenses=/WEB-INF/licenses
# /web/jsp=/jsp
# /web/css=/css
# /web/images=/images
# /web/scripts=/scripts
# /web/php=/php
#
include.default=true
#
# Custom mappings. If 'include.default' is false, then this is the complete set.
# Map /web to / in AMP so we can override things like favicon.ico
#
/web=/

View File

@@ -0,0 +1,22 @@
# Web resources that should override out-of-the-box files
Put here any web resources that should override out-of-the-box
web resources, such as favicon.ico. They will then end up in the
*/web* directory in the AMP, and applied to the WAR, and override
any existing web resources in the Share.WAR.
**Note**. Module dependency needs to be set to amp for the web resources to be applied by MMT:
`
<moduleDependency>
<groupId>${project.groupId}</groupId>
<artifactId>some-share</artifactId>
<version>${project.version}</version>
<type>amp</type>
</moduleDependency>
`
**Important**. New web resources should not be located here, but instead
in the usual place in the *src/main/resources/META-INF/resources/<module-id>/* directory.

View File

@@ -0,0 +1,20 @@
define(["dojo/_base/declare",
"dijit/_WidgetBase",
"alfresco/core/Core",
"dijit/_TemplatedMixin",
"dojo/text!./templates/TemplateWidget.html"
],
function(declare, _Widget, Core, _Templated, template) {
return declare([_Widget, Core, _Templated], {
templateString: template,
i18nRequirements: [ {i18nFile: "./i18n/TemplateWidget.properties"} ],
cssRequirements: [{cssFile:"./css/TemplateWidget.css"}],
buildRendering: function example_widgets_TemplateWidget__buildRendering() {
this.greeting = this.message('hello-label');
this.inherited(arguments);
}
});
});

View File

@@ -0,0 +1,6 @@
.my-template-widget {
border: 1px #000000 solid;
padding: 1em;
width: 100px;
background-color: deepskyblue;
}

View File

@@ -0,0 +1,420 @@
<!-- Share configuration related to this particular Share module extension, such as:
- Doclib action config
- Form config
- Aspect and Type config
- Advanced Search
Note. Any configuration related to the whole Share.war webapp
(i.e. not specific to this share extension) should be
placed in the environment specific config file:
alfresco/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
-->
<alfresco-config>
<!--================================================================================================================
Make custom types and aspects visible in "Change Type" and "Manage Aspects" actions.
This will also make them visible when creating rules.
(will be merged with out-of-the-box configured types and aspects)
=============================================================================================================-->
<config evaluator="string-compare" condition="DocumentLibrary">
<aspects>
<visible>
<aspect name="acme:securityClassified"/>
</visible>
<addable> <!-- defaults to visible config -->
</addable>
<removeable> <!-- defaults to visible config -->
</removeable>
</aspects>
<types>
<!-- Define the ACME base doc type as decedent from cm:content -->
<type name="cm:content">
<subtype name="acme:document"/>
</type>
</types>
</config>
<!--================================================================================================================
Advanced Search Forms for types
(search forms for aspects are not available)
=============================================================================================================-->
<config evaluator="string-compare" condition="AdvancedSearch" replace="true">
<advanced-search>
<forms>
<!-- Standard out-of-the-box types -->
<form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content
</form>
<form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
<!-- Custom type -->
<form labelId="form.label.advancedsearch.acmeDocument"
descriptionId="form.description.advancedsearch.acmeDocument">acme:document
</form>
</forms>
</advanced-search>
</config>
<!--================================================================================================================
View, Edit, Create, and Search forms for custom types
The following form configurations for the custom types
have not been created from scratch. We have instead copied
out-of-the-box form configurations for cm:content and cm:folder
from the tomcat/webapps/share/WEB-INF/classes/alfresco/share-form-config.xml file
in a standard Alfresco installation (with the version matching)
and used them as a starting point.
=============================================================================================================-->
<!-- __________________________________ acme:document base type _________________________________________________-->
<!-- View and Edit forms for acme:document -->
<config evaluator="node-type" condition="acme:document">
<forms>
<!-- Default form configuration for the cm:content type -->
<form>
<field-visibility>
<show id="cm:name"/>
<show id="cm:title" force="true"/>
<show id="cm:description" force="true"/>
<show id="mimetype"/>
<show id="cm:author" force="true"/>
<show id="size" for-mode="view"/>
<show id="cm:creator" for-mode="view"/>
<show id="cm:created" for-mode="view"/>
<show id="cm:modifier" for-mode="view"/>
<show id="cm:modified" for-mode="view"/>
<!-- tags and categories -->
<show id="cm:taggable" for-mode="edit" force="true"/>
<show id="cm:categories"/>
<!-- cm:dublincore aspect -->
<show id="cm:publisher"/>
<show id="cm:contributor"/>
<show id="cm:type"/>
<show id="cm:identifier"/>
<show id="cm:dcsource"/>
<show id="cm:coverage"/>
<show id="cm:rights"/>
<show id="cm:subject"/>
<!-- cm:complianceable aspect -->
<show id="cm:removeAfter"/>
<!-- cm:effectivity aspect -->
<show id="cm:from"/>
<show id="cm:to"/>
<!-- cm:summarizable aspect -->
<show id="cm:summary"/>
<!-- cm:translatable aspect -->
<show id="cm:translations"/>
<!-- cm:localizable aspect -->
<show id="cm:locale"/>
<!-- cm:ownable aspect -->
<show id="cm:owner"/>
<!-- cm:attachable aspect -->
<show id="cm:attachments"/>
<!-- cm:emailed aspect -->
<show id="cm:originator"/>
<show id="cm:addressee"/>
<show id="cm:addressees"/>
<show id="cm:sentdate"/>
<show id="cm:subjectline"/>
<!-- exif:exif aspect -->
<show id="exif:dateTimeOriginal"/>
<show id="exif:pixelXDimension"/>
<show id="exif:pixelYDimension"/>
<show id="exif:exposureTime"/>
<show id="exif:fNumber"/>
<show id="exif:flash"/>
<show id="exif:focalLength"/>
<show id="exif:isoSpeedRatings"/>
<show id="exif:manufacturer"/>
<show id="exif:model"/>
<show id="exif:software"/>
<show id="exif:orientation"/>
<show id="exif:xResolution"/>
<show id="exif:yResolution"/>
<show id="exif:resolutionUnit"/>
<!-- audio:audio aspect -->
<show id="audio:album"/>
<show id="audio:artist"/>
<show id="audio:composer"/>
<show id="audio:engineer"/>
<show id="audio:genre"/>
<show id="audio:trackNumber"/>
<show id="audio:releaseDate"/>
<show id="audio:sampleRate"/>
<show id="audio:sampleType"/>
<show id="audio:channelType"/>
<show id="audio:compressor"/>
<!-- cm:indexControl aspect -->
<show id="cm:isIndexed"/>
<show id="cm:isContentIndexed"/>
<!-- cm:geographic aspect -->
<show id="cm:latitude"/>
<show id="cm:longitude"/>
<!-- surf:widget aspect -->
<show id="surf:widgetType"/>
<show id="surf:mid"/>
<show id="surf:label"/>
<!-- ACME custom props -->
<show id="acme:documentId" force="true"/>
<show id="acme:securityClassification"/>
</field-visibility>
<appearance>
<field id="cm:name">
<control>
<control-param name="maxLength">255</control-param>
</control>
</field>
<field id="cm:title">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="cm:description">
<control>
<control-param name="activateLinks">true</control-param>
</control>
</field>
<set id="cm:content2cols" template="/org/alfresco/components/form/2-column-set.ftl"/>
<field set="cm:content2cols" id="mimetype">
<control template="/org/alfresco/components/form/controls/mimetype.ftl"/>
</field>
<field set="cm:content2cols" id="size">
<control template="/org/alfresco/components/form/controls/size.ftl"/>
</field>
<field set="cm:content2cols" id="cm:creator"/>
<field set="cm:content2cols" id="cm:created"/>
<field set="cm:content2cols" id="cm:modifier"/>
<field set="cm:content2cols" id="cm:modified"/>
<field id="cm:taggable">
<control>
<control-param name="compactMode">true</control-param>
<control-param name="params">aspect=cm:taggable</control-param>
<control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
<control-param name="createNewItemIcon">tag</control-param>
</control>
</field>
<field id="cm:categories">
<control>
<control-param name="compactMode">true</control-param>
</control>
</field>
<field id="cm:originator" read-only="true"/>
<field id="cm:addressee" read-only="true"/>
<field id="cm:addressees" read-only="true"/>
<field id="cm:sentdate" read-only="true"/>
<field id="cm:subjectline" read-only="true"/>
<!-- ACME Props appearance -->
<set id="acmeDocSet" appearance="bordered-panel" label-id="form.set.label.acme.document"/>
<field id="acme:documentId" label-id="form.field.label.acme.documentId" set="acmeDocSet">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="acme:securityClassification" label-id="form.field.label.acme.securityClassification"
set="acmeDocSet"/>
</appearance>
</form>
<!-- Document Library pop-up Edit Metadata form -->
<form id="doclib-simple-metadata">
<field-visibility>
<show id="cm:name"/>
<show id="cm:title" force="true"/>
<show id="cm:description" force="true"/>
<!-- tags and categories -->
<show id="cm:taggable" for-mode="edit" force="true"/>
<show id="cm:categories"/>
<!-- ACME custom props -->
<show id="acme:documentId" force="true"/>
<show id="acme:securityClassification"/>
</field-visibility>
<edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl"/>
<appearance>
<field id="cm:name">
<control>
<control-param name="maxLength">255</control-param>
</control>
</field>
<field id="cm:title">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="cm:description">
<control>
<control-param name="activateLinks">true</control-param>
</control>
</field>
<field id="cm:taggable">
<control>
<control-param name="compactMode">true</control-param>
<control-param name="params">aspect=cm:taggable</control-param>
<control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
<control-param name="createNewItemIcon">tag</control-param>
</control>
</field>
<field id="cm:categories">
<control>
<control-param name="compactMode">true</control-param>
</control>
</field>
<!-- ACME Props appearance -->
<set id="acmeDocSet" appearance="bordered-panel" label-id="form.set.label.acme.document"/>
<field id="acme:documentId" label-id="form.field.label.acme.documentId" set="acmeDocSet">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="acme:securityClassification" label-id="form.field.label.acme.securityClassification"
set="acmeDocSet"/>
</appearance>
</form>
<!-- Document Library Inline Edit form -->
<form id="doclib-inline-edit">
<field-visibility>
<show id="cm:name"/>
<show id="cm:content" force="true"/>
<show id="cm:title" force="true"/>
<show id="cm:description" force="true"/>
<!-- ACME custom props -->
<show id="acme:documentId" force="true"/>
<show id="acme:securityClassification"/>
</field-visibility>
<appearance>
<field id="cm:name">
<control>
<control-param name="maxLength">255</control-param>
</control>
</field>
<field id="cm:title">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="cm:content" label-id="">
<control>
<control-param name="editorAppearance">explorer</control-param>
<control-param name="forceEditor">true</control-param>
</control>
</field>
<!-- ACME Props appearance -->
<set id="acmeDocSet" appearance="bordered-panel" label-id="form.set.label.acme.document"/>
<field id="acme:documentId" label-id="form.field.label.acme.documentId" set="acmeDocSet">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="acme:securityClassification" label-id="form.field.label.acme.securityClassification"
set="acmeDocSet"/>
</appearance>
</form>
</forms>
</config>
<!-- Create and search forms for acme:document -->
<config evaluator="model-type" condition="acme:document">
<forms>
<form>
<field-visibility>
<show id="cm:name"/>
<show id="cm:content" force="true"/>
<show id="cm:title" force="true"/>
<show id="cm:description" force="true"/>
<show id="mimetype"/>
<show id="app:editInline" force="true"/>
<!-- ACME custom props -->
<show id="acme:documentId" force="true"/>
<show id="acme:securityClassification"/>
</field-visibility>
<appearance>
<field id="cm:name">
<control>
<control-param name="maxLength">255</control-param>
</control>
</field>
<field id="cm:title">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="cm:content" label-id="">
<control>
<control-param name="editorAppearance">explorer</control-param>
</control>
</field>
<field id="mimetype">
<control template="/org/alfresco/components/form/controls/hidden.ftl">
<control-param name="contextProperty">mimeType</control-param>
</control>
</field>
<field id="app:editInline">
<control template="/org/alfresco/components/form/controls/hidden.ftl">
<control-param name="contextProperty">editInline</control-param>
</control>
</field>
<!-- ACME Props appearance -->
<set id="acmeDocSet" appearance="bordered-panel" label-id="form.set.label.acme.document"/>
<field id="acme:documentId" label-id="form.field.label.acme.documentId" set="acmeDocSet">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="acme:securityClassification" label-id="form.field.label.acme.securityClassification"
set="acmeDocSet"/>
</appearance>
</form>
<!-- Search form -->
<form id="search">
<field-visibility>
<show id="cm:name"/>
<show id="cm:title" force="true"/>
<show id="cm:description" force="true"/>
<show id="mimetype"/>
<show id="cm:modified"/>
<show id="cm:modifier"/>
<!-- ACME custom props -->
<show id="acme:documentId" force="true"/>
<show id="acme:securityClassification"/>
</field-visibility>
<appearance>
<field id="mimetype">
<control template="/org/alfresco/components/form/controls/mimetype.ftl"/>
</field>
<field id="cm:modifier">
<control>
<control-param name="forceEditable">true</control-param>
</control>
</field>
<field id="cm:modified">
<control template="/org/alfresco/components/form/controls/daterange.ftl"/>
</field>
<!-- ACME Props appearance -->
<set id="acmeDocSet" appearance="bordered-panel" label-id="form.set.label.acme.document"/>
<field id="acme:documentId" label-id="form.field.label.acme.documentId" set="acmeDocSet">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="acme:securityClassification" label-id="form.field.label.acme.securityClassification"
set="acmeDocSet"/>
</appearance>
</form>
</forms>
</config>
</alfresco-config>

View File

@@ -0,0 +1,48 @@
# 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.
# SDK Sample module
# ==== Beginning of Alfresco required/optional properties ====== #
# NB: These properties are filtered at build time by Maven, single
# sourcing from POM properties
module.id=${project.artifactId}
#module.aliases=myModule-123, my-module
module.title=${project.name}
module.description=${project.description}
module.version=${project.version}
# The following optional properties can be used to prevent the module from being added
# to inappropriate versions of the WAR file.
# module.repo.version.min=2.0
# module.repo.version.max=2.1
# FIXME: This dependencies should come out of mvn dependencies on amp
# The following describe dependencies on other modules
# Depends on net.sf.myproject.module.SupportModuleA version ${version} or later
# module.depends.net.sf.myproject.module.SupportModuleA=${version}-*
# Depends on net.sf.myproject.module.SupportModuleA version ${version} to 2.0
# module.depends.net.sf.myproject.module.SupportModuleB=${version}-2.0
# Depends on net.sf.myproject.module.SupportModuleC - any version
# module.depends.net.sf.myproject.module.SupportModuleB=*
# ==== End of Alfresco required/optional properties ======= #
# ==== Beginning of module required properties/optional ====== #

View File

@@ -0,0 +1,29 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!--
Define beans related to this Share extension here, such as
evaluators and resource bootstrapping.
Note. Any configuration related to the whole Share.war webapp
(i.e. not specific to this share extension) should be
placed in the alfresco-allinone/share/src/main/resources/alfresco/web-extension/custom-slingshot-application-context.xml file
-->
<!-- Add module specific messages and labels -->
<bean id="${package}.${artifactId}.resources"
class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.web-extension.messages.${artifactId}</value>
</list>
</property>
</bean>
</beans>

View File

@@ -0,0 +1,25 @@
# This file should contain messages and labels specific to this share extension
# Put here things like:
# Content Model Aspect and Type Labels
# Form field labels
# Doc lib Action labels and messages
# Doc Lib Action Forms labels
#
# Labels for custom types and aspects
# Used in "Manage Aspects" and "Change Type" dialogs
#
type.acme_document=ACME Document
aspect.acme_securityClassified=Security Classified
# View,Edit,Search,Create Form labels for types and aspects
#
form.set.label.acme.document= ACME Document Information
form.field.label.acme.documentId=ACME Document Id
form.field.label.acme.securityClassification=Security Classification
# Advanced Search Form labels (only for types)
#
form.label.advancedsearch.acmeDocument=ACME Documents
form.description.advancedsearch.acmeDocument=Search for any ACME Documents

View File

@@ -0,0 +1,23 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
<extension>
<modules>
<module>
<id>${artifactId} - Example Aikau Widgets</id>
<version>1.0</version>
<auto-deploy>true</auto-deploy>
<configurations>
<config evaluator="string-compare" condition="WebFramework" replace="false">
<web-framework>
<dojo-pages>
<packages>
<package name="tutorials" location="resources/${artifactId}/js/tutorials"/>
</packages>
</dojo-pages>
</web-framework>
</config>
</configurations>
</module>
</modules>
</extension>

View File

@@ -0,0 +1,6 @@
<webscript>
<shortname>Simple Page</shortname>
<description>Simple page definition</description>
<family>Share</family>
<url>/simple-page</url>
</webscript>

View File

@@ -0,0 +1,29 @@
model.jsonModel = {
widgets: [{
id: "SET_PAGE_TITLE",
name: "alfresco/header/SetTitle",
config: {
title: "This is a sample HELLO page"
}
},
{
id: "MY_HORIZONTAL_WIDGET_LAYOUT",
name: "alfresco/layout/HorizontalWidgets",
config: {
widgetWidth: 50,
widgets: [
{
id: "DEMO_SIMPLE_LOGO",
name: "alfresco/logo/Logo",
config: {
logoClasses: "alfresco-logo-only"
}
},
{
id: "DEMO_SIMPLE_MSG",
name: "tutorials/widgets/TemplateWidget"
}
]
}
}]
};

View File

@@ -0,0 +1,6 @@
## If you are overriding out-of-the-box Alfresco web scripts, put these files here
## in the correct org.alfresco... package.
## If you are defining a new custom web script, add it under
## resources/alfresco/web-extension/site-webscripts/{your domain path}.
##

View File

@@ -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

View File

@@ -0,0 +1,476 @@
<?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>AIO - SDK 4.6</name>
<description>All-In-One (AIO) project for SDK 4.6</description>
<packaging>pom</packaging>
<prerequisites>
<maven>3.3.0</maven>
</prerequisites>
<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>
<!-- Properties used in dependency declarations, you don't need to change these -->
<alfresco.groupId>org.alfresco</alfresco.groupId>
<alfresco.bomDependencyArtifactId>@@alfresco.bomDependency.artifactId@@</alfresco.bomDependencyArtifactId>
<alfresco.platform.version>@@alfresco.platform.version@@</alfresco.platform.version>
<alfresco.platform.docker.user>@@alfresco.platform.docker.user@@</alfresco.platform.docker.user>
<alfresco.share.version>@@alfresco.share.version@@</alfresco.share.version>
<alfresco.share.docker.version>@@alfresco.share.docker.version@@</alfresco.share.docker.version>
<!-- Docker images -->
<docker.acs.image>@@alfresco.platform.docker.image@@</docker.acs.image>
<docker.share.image>@@alfresco.share.docker.image@@</docker.share.image>
<keystore.settings>@@keystore.settings@@</keystore.settings>
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
<jrebel.version>1.1.8</jrebel.version>
<!-- Environment configuration properties -->
<share.port>8180</share.port>
<share.debug.port>9898</share.debug.port>
<acs.host>${artifactId}-acs</acs.host>
<acs.port>8080</acs.port>
<acs.debug.port>8888</acs.debug.port>
<postgres.port>5555</postgres.port>
<!-- This parameter is only required for those cases in which ACS is not exposed in http://localhost:8080/alfresco (i.e. Windows Docker) -->
<test.acs.endpoint.path>@@test.acs.endpoint.path@@</test.acs.endpoint.path>
</properties>
<!-- Libs used in Unit and Integration tests -->
<!-- IMPORTANT - Test dependencies need to be here in the top parent POM as
the Alfresco Maven IT Mojo runs as part of the parent project ... -->
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<scope>test</scope>
</dependency>
<!-- The main Alfresco Repo dependency for compiling Java code in src/main/java -->
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-remote-api</artifactId>
<scope>provided</scope>
</dependency>
<!-- Bring in Alfresco RAD so we get access to AlfrescoTestRunner classes -->
<dependency>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-rad</artifactId>
<version>${alfresco.sdk.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- This will import the dependencyManagement for all artifacts in the selected Alfresco platform.
NOTE: You still need to define dependencies in your POM, but you can omit version as
it's enforced by this dependencyManagement.
NOTE: It defaults to the latest version this SDK pom has been tested with,
but alfresco version can/should be overridden in your project's pom
-->
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>${alfresco.bomDependencyArtifactId}</artifactId>
<version>${alfresco.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Redefine the following Share dependencies as they have different version numbers than platform.
They are defined in alfresco-platform-distribution... -->
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>share</artifactId>
<version>${alfresco.share.version}</version>
<type>war</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>share</artifactId>
<version>${alfresco.share.version}</version>
<classifier>classes</classifier>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-web-framework-commons</artifactId>
<version>${alfresco.share.version}</version>
<classifier>classes</classifier>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!--
Build an AMP if 3rd party libs are needed by the extensions
JARs are the default artifact produced in your modules, if you want to build an amp for each module
you have to enable this plugin and inspect the src/main/assembly.xml file if you want to customize
the layout of your AMP. The end result is that Maven will produce both a JAR file and an AMP with your
module.
-->
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>build-amp-file</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptor>src/main/assembly/amp.xml</descriptor>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>alfresco-maven-plugin</artifactId>
<version>${alfresco.sdk.version}</version>
</dependency>
</dependencies>
</plugin>
-->
<!-- Filter resources in any sub-project with this config -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</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>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<version>${jrebel.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M1</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>3.0.0-M1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
</plugin>
</plugins>
</pluginManagement>
<!-- Make sure resources in sub-projects are filtered -->
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<!-- Filter the test resource files in the AIO parent project, and do property substitutions.
We need this config so this is done before the Alfresco Maven Plugin 'run' is executed. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<inherited>false</inherited>
<!-- Run only for the AIO parent Project -->
<executions>
<execution>
<id>copy-and-filter-docker-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/docker</outputDirectory>
<resources>
<resource>
<directory>docker</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Compress JavaScript files and store as *-min.js -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<!-- Compress the JS files under the assembly folder -->
<execution>
<id>compress-assembly</id>
<goals>
<goal>compress</goal>
</goals>
<configuration>
<sourceDirectory>${project.basedir}/src/main/assembly/web</sourceDirectory>
<outputDirectory>${project.basedir}/src/main/assembly/web</outputDirectory>
<excludes>
<exclude>**/webscripts/**</exclude>
<exclude>**/site-webscripts/**</exclude>
<exclude>**/META-INF/**</exclude>
<exclude>**/*.lib.js</exclude>
<exclude>**/*.css</exclude>
<exclude>**/*-min.js</exclude>
<exclude>**/*-min.css</exclude>
</excludes>
<force>true</force>
<jswarn>false</jswarn>
</configuration>
</execution>
<!-- Compress the JS files under the resources folder -->
<execution>
<id>compress-resources</id>
<goals>
<goal>compress</goal>
</goals>
<configuration>
<excludes>
<exclude>**/webscripts/**</exclude>
<exclude>**/site-webscripts/**</exclude>
<exclude>**/*.lib.js</exclude>
<exclude>**/*.css</exclude>
<exclude>**/*-min.js</exclude>
<exclude>**/*-min.css</exclude>
</excludes>
<force>true</force>
<jswarn>false</jswarn>
</configuration>
</execution>
</executions>
</plugin>
<!-- Hot reloading with JRebel -->
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- For more information about how to configure JRebel plugin see:
http://manuals.zeroturnaround.com/jrebel/standalone/maven.html#maven-rebel-xml -->
<classpath>
<fallback>all</fallback>
<resources>
<resource>
<directory>${project.build.outputDirectory}</directory>
<directory>${project.build.testOutputDirectory}</directory>
</resource>
</resources>
</classpath>
<!--
alwaysGenerate - default is false
If 'false' - rebel.xml is generated if timestamps of pom.xml and the current rebel.xml file are not equal.
If 'true' - rebel.xml will always be generated
-->
<alwaysGenerate>true</alwaysGenerate>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java8</id>
<activation>
<jdk>[1.8,11.0)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>java11</id>
<activation>
<jdk>[11.0,17)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>java17</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>17</release>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!--
Alfresco Maven Repositories
-->
<repositories>
<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>
<repository>
<id>alfresco-internal</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/internal</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>

View File

@@ -0,0 +1,128 @@
#set( $symbol_dollar = '$' )
@ECHO OFF
SET COMPOSE_FILE_PATH=%CD%\target\classes\docker\docker-compose.yml
IF [%M2_HOME%]==[] (
SET MVN_EXEC=mvn
)
IF NOT [%M2_HOME%]==[] (
SET MVN_EXEC=%M2_HOME%\bin\mvn
)
IF [%1]==[] (
echo "Usage: %0 {build_start|build_start_it_supported|start|stop|purge|tail|reload_share|reload_acs|build_test|test}"
GOTO END
)
IF %1==build_start (
CALL :down
CALL :build
CALL :start
CALL :tail
GOTO END
)
IF %1==build_start_it_supported (
CALL :down
CALL :build
CALL :prepare-test
CALL :start
CALL :tail
GOTO END
)
IF %1==start (
CALL :start
CALL :tail
GOTO END
)
IF %1==stop (
CALL :down
GOTO END
)
IF %1==purge (
CALL:down
CALL:purge
GOTO END
)
IF %1==tail (
CALL :tail
GOTO END
)
IF %1==reload_share (
CALL :build_share
CALL :start_share
CALL :tail
GOTO END
)
IF %1==reload_acs (
CALL :build_acs
CALL :start_acs
CALL :tail
GOTO END
)
IF %1==build_test (
CALL :down
CALL :build
CALL :prepare-test
CALL :start
CALL :test
CALL :tail_all
CALL :down
GOTO END
)
IF %1==test (
CALL :test
GOTO END
)
echo "Usage: %0 {build_start|start|stop|purge|tail|reload_share|reload_acs|build_test|test}"
:END
EXIT /B %ERRORLEVEL%
:start
docker volume create ${rootArtifactId}-acs-volume
docker volume create ${rootArtifactId}-db-volume
docker volume create ${rootArtifactId}-ass-volume
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d
EXIT /B 0
:start_share
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d ${rootArtifactId}-share
EXIT /B 0
:start_acs
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d ${rootArtifactId}-acs
EXIT /B 0
:down
if exist "%COMPOSE_FILE_PATH%" (
docker-compose -f "%COMPOSE_FILE_PATH%" down
)
EXIT /B 0
:build
call %MVN_EXEC% clean package
EXIT /B 0
:build_share
docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-share
docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-share
call %MVN_EXEC% clean package -pl ${rootArtifactId}-share,${rootArtifactId}-share-docker
EXIT /B 0
:build_acs
docker-compose -f "%COMPOSE_FILE_PATH%" kill ${rootArtifactId}-acs
docker-compose -f "%COMPOSE_FILE_PATH%" rm -f ${rootArtifactId}-acs
call %MVN_EXEC% clean package -pl ${rootArtifactId}-integration-tests,${rootArtifactId}-platform,${rootArtifactId}-platform-docker
EXIT /B 0
:tail
docker-compose -f "%COMPOSE_FILE_PATH%" logs -f
EXIT /B 0
:tail_all
docker-compose -f "%COMPOSE_FILE_PATH%" logs --tail="all"
EXIT /B 0
:prepare-test
call %MVN_EXEC% verify -DskipTests=true -pl ${rootArtifactId}-platform,${rootArtifactId}-integration-tests,${rootArtifactId}-platform-docker
EXIT /B 0
:test
call %MVN_EXEC% verify -pl ${rootArtifactId}-platform,${rootArtifactId}-integration-tests
EXIT /B 0
:purge
docker volume rm -f ${rootArtifactId}-acs-volume
docker volume rm -f ${rootArtifactId}-db-volume
docker volume rm -f ${rootArtifactId}-ass-volume
EXIT /B 0

View File

@@ -0,0 +1,123 @@
#set( $symbol_dollar = '$' )
#!/bin/sh
export COMPOSE_FILE_PATH="${symbol_dollar}{PWD}/target/classes/docker/docker-compose.yml"
if [ -z "${symbol_dollar}{M2_HOME}" ]; then
export MVN_EXEC="mvn"
else
export MVN_EXEC="${symbol_dollar}{M2_HOME}/bin/mvn"
fi
start() {
docker volume create ${rootArtifactId}-acs-volume
docker volume create ${rootArtifactId}-db-volume
docker volume create ${rootArtifactId}-ass-volume
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" up --build -d
}
start_share() {
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" up --build -d ${rootArtifactId}-share
}
start_acs() {
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" up --build -d ${rootArtifactId}-acs
}
down() {
if [ -f "${symbol_dollar}COMPOSE_FILE_PATH" ]; then
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" down
fi
}
purge() {
docker volume rm -f ${rootArtifactId}-acs-volume
docker volume rm -f ${rootArtifactId}-db-volume
docker volume rm -f ${rootArtifactId}-ass-volume
}
build() {
${symbol_dollar}MVN_EXEC clean package
}
build_share() {
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" kill ${rootArtifactId}-share
yes | docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" rm -f ${rootArtifactId}-share
${symbol_dollar}MVN_EXEC clean package -pl ${rootArtifactId}-share,${rootArtifactId}-share-docker
}
build_acs() {
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" kill ${rootArtifactId}-acs
yes | docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" rm -f ${rootArtifactId}-acs
${symbol_dollar}MVN_EXEC clean package -pl ${rootArtifactId}-integration-tests,${rootArtifactId}-platform,${rootArtifactId}-platform-docker
}
tail() {
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" logs -f
}
tail_all() {
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" logs --tail="all"
}
prepare_test() {
${symbol_dollar}MVN_EXEC verify -DskipTests=true -pl ${rootArtifactId}-platform,${rootArtifactId}-integration-tests,${rootArtifactId}-platform-docker
}
test() {
${symbol_dollar}MVN_EXEC verify -pl ${rootArtifactId}-platform,${rootArtifactId}-integration-tests
}
case "${symbol_dollar}1" in
build_start)
down
build
start
tail
;;
build_start_it_supported)
down
build
prepare_test
start
tail
;;
start)
start
tail
;;
stop)
down
;;
purge)
down
purge
;;
tail)
tail
;;
reload_share)
build_share
start_share
tail
;;
reload_acs)
build_acs
start_acs
tail
;;
build_test)
down
build
prepare_test
start
test
tail_all
down
;;
test)
test
;;
*)
echo "Usage: ${symbol_dollar}0 {build_start|build_start_it_supported|start|stop|purge|tail|reload_share|reload_acs|build_test|test}"
esac

View File

@@ -0,0 +1,58 @@
<?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>alfresco-platform-jar-archetype</artifactId>
<packaging>maven-archetype</packaging>
<name>Alfresco SDK - Platform JAR Archetype</name>
<description>Sample project with full support for lifecycle and rapid development of Platform/Repository JARs and AMPs (Alfresco Module Packages)</description>
<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-aggregator</artifactId>
<version>4.6.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>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>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>
<addDefaultExcludes>false</addDefaultExcludes>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,2 @@
def file = new File( request.getOutputDirectory(), request.getArtifactId()+"/run.sh" );
file.setExecutable(true, false);

View File

@@ -0,0 +1,85 @@
<?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="Alfresco Platform 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 encoding="UTF-8" filtered="true">
<directory>docker</directory>
<includes>
<include>**</include>
</includes>
</fileSet>
<fileSet filtered="false" packaged="false" encoding="UTF-8">
<directory>src/main/assembly</directory>
<includes>
<include>**</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8" filtered="false">
<directory>src/main/docker</directory>
<includes>
<include>license/**</include>
<include>Dockerfile</include>
<include>disable-webscript-caching-context.xml</include>
</includes>
<excludes>
<exclude>**/*.properties</exclude>
</excludes>
</fileSet>
<fileSet encoding="UTF-8" filtered="true">
<directory>src/main/docker</directory>
<includes>
<include>**/*.properties</include>
</includes>
<excludes>
<exclude>license/**</exclude>
<exclude>Dockerfile</exclude>
<exclude>disable-webscript-caching-context.xml</exclude>
</excludes>
</fileSet>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<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="false">
<directory>src/main/resources</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*-context.xml</exclude>
</excludes>
</fileSet>
<fileSet encoding="UTF-8" filtered="true" packaged="false">
<directory>src/main/resources</directory>
<includes>
<include>**/*-context.xml</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8" filtered="true">
<directory></directory>
<includes>
<include>.gitignore</include>
<include>run.sh</include>
<include>run.bat</include>
<include>README.md</include>
</includes>
</fileSet>
</fileSets>
</archetype-descriptor>

View 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

View File

@@ -0,0 +1,44 @@
# Alfresco ACS JAR Module - SDK 4.6
This is an ACS project for Alfresco SDK 4.6.
Run with `./run.sh build_start` or `./run.bat build_start` and verify that it
* Runs Alfresco Content Service (ACS)
* (Optional) Runs Alfresco Share
* Runs Alfresco Search Service (ASS)
* Runs PostgreSQL database
* Deploys the JAR assembled module
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 docker image, start the dockerised environment composed by ACS, Share (optional), 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 docker image, start the dockerised environment
composed by ACS, Share (optional), 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_acs`. Build the ACS module, recreate the ACS docker image and restart the ACS container.
* `build_test`. Build the whole project, recreate the ACS docker image, start the dockerised environment, execute the integration tests 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, 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 [JRebel integration documentation]
* AMP as an assembly
* Persistent test data through restart thanks to the use of Docker volumes for ACS, ASS and database data
* 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
* Functional/remote unit tests

View File

@@ -0,0 +1,73 @@
#set( $symbol_dollar = '$' )
version: '3.4'
services:
# Optional
# ${rootArtifactId}-share:
# image: ${symbol_dollar}{docker.share.image}:${symbol_dollar}{alfresco.share.version}
# environment:
# REPO_HOST: ${rootArtifactId}-acs
# REPO_PORT: 8080
# ports:
# - "${symbol_dollar}{share.port}:8080"
${rootArtifactId}-acs:
image: alfresco-content-services-${rootArtifactId}:development
build:
dockerfile: ./Dockerfile
context: ../../../target
environment:
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

View File

@@ -0,0 +1,560 @@
<?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>${artifactId} Platform/Repository JAR Module</name>
<description>Platform/Repo JAR Module (to be included in the alfresco.war)</description>
<packaging>jar</packaging>
<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>
<!-- Properties used in dependency declarations, you don't need to change these -->
<alfresco.groupId>org.alfresco</alfresco.groupId>
<alfresco.bomDependencyArtifactId>@@alfresco.bomDependency.artifactId@@</alfresco.bomDependencyArtifactId>
<alfresco.platform.version>@@alfresco.platform.version@@</alfresco.platform.version>
<alfresco.platform.docker.user>@@alfresco.platform.docker.user@@</alfresco.platform.docker.user>
<alfresco.share.version>@@alfresco.share.version@@</alfresco.share.version>
<alfresco.share.docker.version>@@alfresco.share.docker.version@@</alfresco.share.docker.version>
<!-- Docker images -->
<docker.acs.image>@@alfresco.platform.docker.image@@</docker.acs.image>
<docker.share.image>@@alfresco.share.docker.image@@</docker.share.image>
<keystore.settings>@@keystore.settings@@</keystore.settings>
<!-- JRebel Hot reloading of classpath stuff and web resource stuff -->
<jrebel.version>1.1.8</jrebel.version>
<!-- Environment configuration properties -->
<share.port>8180</share.port>
<acs.host>${artifactId}-acs</acs.host>
<acs.port>8080</acs.port>
<acs.debug.port>8888</acs.debug.port>
<postgres.port>5555</postgres.port>
<!-- This parameter is only required for those cases in which ACS is not exposed in http://localhost:8080/alfresco (i.e. Windows Docker) -->
<test.acs.endpoint.path></test.acs.endpoint.path>
</properties>
<!-- Libs used in Unit and Integration tests -->
<!-- IMPORTANT - Test dependencies need to be here in the top parent POM as
the Alfresco Maven IT Mojo runs as part of the parent project ... -->
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<scope>test</scope>
</dependency>
<!-- The main Alfresco Repo dependency for compiling Java code in src/main/java -->
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-remote-api</artifactId>
<scope>provided</scope>
</dependency>
<!-- Bring in Alfresco RAD so we get access to AlfrescoTestRunner classes -->
<dependency>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-rad</artifactId>
<version>${alfresco.sdk.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- This will import the dependencyManagement for all artifacts in the selected Alfresco platform.
NOTE: You still need to define dependencies in your POM, but you can omit version as
it's enforced by this dependencyManagement.
NOTE: It defaults to the latest version this SDK pom has been tested with,
but alfresco version can/should be overridden in your project's pom
-->
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>${alfresco.bomDependencyArtifactId}</artifactId>
<version>${alfresco.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<!--
Build an AMP if 3rd party libs are needed by the extensions
JARs are the default artifact produced in your modules, if you want to build an amp for each module
you have to enable this plugin and inspect the src/main/assembly.xml file if you want to customize
the layout of your AMP. The end result is that Maven will produce both a JAR file and an AMP with your
module.
-->
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>build-amp-file</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptor>src/main/assembly/amp.xml</descriptor>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>alfresco-maven-plugin</artifactId>
<version>${alfresco.sdk.version}</version>
</dependency>
</dependencies>
</plugin>
-->
<!-- Filter the test resource files in the AIO parent project, and do property substitutions.
We need this config so this is done before the Alfresco Maven Plugin 'run' is executed. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<encoding>UTF-8</encoding>
<nonFilteredFileExtensions> <!-- jpg, jpeg, gif, bmp and png are added automatically -->
<nonFilteredFileExtension>ftl</nonFilteredFileExtension>
<nonFilteredFileExtension>acp</nonFilteredFileExtension>
<nonFilteredFileExtension>svg</nonFilteredFileExtension>
<nonFilteredFileExtension>pdf</nonFilteredFileExtension>
<nonFilteredFileExtension>doc</nonFilteredFileExtension>
<nonFilteredFileExtension>docx</nonFilteredFileExtension>
<nonFilteredFileExtension>xls</nonFilteredFileExtension>
<nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
<nonFilteredFileExtension>ppt</nonFilteredFileExtension>
<nonFilteredFileExtension>pptx</nonFilteredFileExtension>
<nonFilteredFileExtension>bin</nonFilteredFileExtension>
<nonFilteredFileExtension>lic</nonFilteredFileExtension>
<nonFilteredFileExtension>swf</nonFilteredFileExtension>
<nonFilteredFileExtension>zip</nonFilteredFileExtension>
<nonFilteredFileExtension>msg</nonFilteredFileExtension>
<nonFilteredFileExtension>jar</nonFilteredFileExtension>
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
<nonFilteredFileExtension>eot</nonFilteredFileExtension>
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
<nonFilteredFileExtension>woff2</nonFilteredFileExtension>
<nonFilteredFileExtension>css</nonFilteredFileExtension>
<nonFilteredFileExtension>ico</nonFilteredFileExtension>
<nonFilteredFileExtension>psd</nonFilteredFileExtension>
<nonFilteredFileExtension>js</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
<executions>
<execution>
<id>copy-and-filter-docker-compose-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/docker</outputDirectory>
<resources>
<resource>
<directory>docker</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-and-filter-docker-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<resources>
<resource>
<directory>src/main/docker</directory>
<filtering>true</filtering>
<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>
<execution>
<id>copy-repository-extension</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
<resources>
<resource>
<directory>target</directory>
<includes>
<include>${project.build.finalName}.jar</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-repository-tests</id>
<phase>pre-integration-test</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/extensions</outputDirectory>
<resources>
<resource>
<directory>target</directory>
<includes>
<include>${project.build.finalName}-tests.jar</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
<executions>
<!-- Copy 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 to 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>
<!-- Make sure we attach the tests so we can include them when running -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Runs the integration tests, any class that follows naming convention
"**/IT*.java", "**/*IT.java", and "**/*ITCase.java" will be considered an integration test -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<systemPropertyVariables>
<acs.endpoint.path>${test.acs.endpoint.path}</acs.endpoint.path>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify-test</id>
<phase>verify</phase>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>3.0.0-M1</version>
</dependency>
</dependencies>
</plugin>
<!-- Compress JavaScript files and store as *-min.js -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<!-- Compress the JS files under the assembly folder -->
<execution>
<id>compress-assembly</id>
<goals>
<goal>compress</goal>
</goals>
<configuration>
<sourceDirectory>${project.basedir}/src/main/assembly/web</sourceDirectory>
<outputDirectory>${project.basedir}/src/main/assembly/web</outputDirectory>
<excludes>
<exclude>**/webscripts/**</exclude>
<exclude>**/site-webscripts/**</exclude>
<exclude>**/META-INF/**</exclude>
<exclude>**/*.lib.js</exclude>
<exclude>**/*.css</exclude>
<exclude>**/*-min.js</exclude>
<exclude>**/*-min.css</exclude>
</excludes>
<force>true</force>
<jswarn>false</jswarn>
</configuration>
</execution>
<!-- Compress the JS files under the resources folder -->
<execution>
<id>compress-resources</id>
<goals>
<goal>compress</goal>
</goals>
<configuration>
<excludes>
<exclude>**/webscripts/**</exclude>
<exclude>**/site-webscripts/**</exclude>
<exclude>**/*.lib.js</exclude>
<exclude>**/*.css</exclude>
<exclude>**/*-min.js</exclude>
<exclude>**/*-min.css</exclude>
</excludes>
<force>true</force>
<jswarn>false</jswarn>
</configuration>
</execution>
</executions>
</plugin>
<!-- Hot reloading with JRebel -->
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<version>${jrebel.version}</version>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- For more information about how to configure JRebel plugin see:
http://manuals.zeroturnaround.com/jrebel/standalone/maven.html#maven-rebel-xml -->
<classpath>
<fallback>all</fallback>
<resources>
<resource>
<directory>${project.build.outputDirectory}</directory>
<directory>${project.build.testOutputDirectory}</directory>
</resource>
</resources>
</classpath>
<!--
alwaysGenerate - default is false
If 'false' - rebel.xml is generated if timestamps of pom.xml and the current rebel.xml file are not equal.
If 'true' - rebel.xml will always be generated
-->
<alwaysGenerate>true</alwaysGenerate>
</configuration>
</plugin>
</plugins>
<resources>
<!-- Filter the resource files in this project and do property substitutions -->
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</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>
</testResources>
</build>
<profiles>
<profile>
<id>java8</id>
<activation>
<jdk>[1.8,11.0)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>java11</id>
<activation>
<jdk>[11.0, 17)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>java17</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>17</release>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!--
Alfresco Maven Repositories
-->
<repositories>
<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>
<repository>
<id>alfresco-internal</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/internal</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>

View File

@@ -0,0 +1,100 @@
#set( $symbol_dollar = '$' )
@ECHO OFF
SET COMPOSE_FILE_PATH=%CD%\target\classes\docker\docker-compose.yml
IF [%M2_HOME%]==[] (
SET MVN_EXEC=mvn
)
IF NOT [%M2_HOME%]==[] (
SET MVN_EXEC=%M2_HOME%\bin\mvn
)
IF [%1]==[] (
echo "Usage: %0 {build_start|build_start_it_supported|start|stop|purge|tail|build_test|test}"
GOTO END
)
IF %1==build_start (
CALL :down
CALL :build
CALL :start
CALL :tail
GOTO END
)
IF %1==build_start_it_supported (
CALL :down
CALL :build
CALL :prepare_test
CALL :start
CALL :tail
GOTO END
)
IF %1==start (
CALL :start
CALL :tail
GOTO END
)
IF %1==stop (
CALL :down
GOTO END
)
IF %1==purge (
CALL:down
CALL:purge
GOTO END
)
IF %1==tail (
CALL :tail
GOTO END
)
IF %1==build_test (
CALL :down
CALL :build
CALL :prepare_test
CALL :start
CALL :test
CALL :tail_all
CALL :down
GOTO END
)
IF %1==test (
CALL :test
GOTO END
)
echo "Usage: %0 {build_start|start|stop|purge|tail|build_test|test}"
:END
EXIT /B %ERRORLEVEL%
:start
docker volume create ${rootArtifactId}-acs-volume
docker volume create ${rootArtifactId}-db-volume
docker volume create ${rootArtifactId}-ass-volume
docker-compose -f "%COMPOSE_FILE_PATH%" up --build -d
EXIT /B 0
:down
if exist "%COMPOSE_FILE_PATH%" (
docker-compose -f "%COMPOSE_FILE_PATH%" down
)
EXIT /B 0
:build
call %MVN_EXEC% clean package
EXIT /B 0
:tail
docker-compose -f "%COMPOSE_FILE_PATH%" logs -f
EXIT /B 0
:tail_all
docker-compose -f "%COMPOSE_FILE_PATH%" logs --tail="all"
EXIT /B 0
:prepare_test
call %MVN_EXEC% verify -DskipTests=true
EXIT /B 0
:test
call %MVN_EXEC% verify
EXIT /B 0
:purge
docker volume rm -f ${rootArtifactId}-acs-volume
docker volume rm -f ${rootArtifactId}-db-volume
docker volume rm -f ${rootArtifactId}-ass-volume
EXIT /B 0

View File

@@ -0,0 +1,93 @@
#set( $symbol_dollar = '$' )
#!/bin/sh
export COMPOSE_FILE_PATH="${symbol_dollar}{PWD}/target/classes/docker/docker-compose.yml"
if [ -z "${symbol_dollar}{M2_HOME}" ]; then
export MVN_EXEC="mvn"
else
export MVN_EXEC="${symbol_dollar}{M2_HOME}/bin/mvn"
fi
start() {
docker volume create ${rootArtifactId}-acs-volume
docker volume create ${rootArtifactId}-db-volume
docker volume create ${rootArtifactId}-ass-volume
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" up --build -d
}
down() {
if [ -f "${symbol_dollar}COMPOSE_FILE_PATH" ]; then
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" down
fi
}
purge() {
docker volume rm -f ${rootArtifactId}-acs-volume
docker volume rm -f ${rootArtifactId}-db-volume
docker volume rm -f ${rootArtifactId}-ass-volume
}
build() {
${symbol_dollar}MVN_EXEC clean package
}
tail() {
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" logs -f
}
tail_all() {
docker-compose -f "${symbol_dollar}COMPOSE_FILE_PATH" logs --tail="all"
}
prepare_test() {
${symbol_dollar}MVN_EXEC verify -DskipTests=true
}
test() {
${symbol_dollar}MVN_EXEC verify
}
case "${symbol_dollar}1" in
build_start)
down
build
start
tail
;;
build_start_it_supported)
down
build
prepare_test
start
tail
;;
start)
start
tail
;;
stop)
down
;;
purge)
down
purge
;;
tail)
tail
;;
build_test)
down
build
prepare_test
start
test
tail_all
down
;;
test)
test
;;
*)
echo "Usage: ${symbol_dollar}0 {build_start|build_start_it_supported|start|stop|purge|tail|build_test|test}"
esac

View File

@@ -0,0 +1,66 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<!--
Note that the Module dependency specified in the configuration section for the Alfresco Maven Plugin
needs to be set to amp if any 3rd party libs should be applied by MMT:
`
<platformModules>
<moduleDependency>
<groupId>${project.groupId}</groupId>
<artifactId>some-platform-jar</artifactId>
<version>${project.version}</version>
<type>amp</type>
</moduleDependency>
-->
<id>build-amp-file</id>
<formats>
<format>amp</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<files>
<!-- Filter module.properties and put at top level in the AMP -->
<file>
<source>src/main/resources/alfresco/module/${project.artifactId}/module.properties</source>
<filtered>true</filtered>
</file>
<!-- Include AMP -> WAR mapping file (needed for custom mappings) -->
<file>
<source>src/main/assembly/file-mapping.properties</source>
<filtered>false</filtered>
</file>
<!-- Add module-specific log4j.properties configuration at top level in the AMP -->
<file>
<source>src/main/resources/alfresco/module/${project.artifactId}/log4j.properties</source>
<filtered>false</filtered>
</file>
</files>
<fileSets>
<!-- Anything in the assembly/web directory will end up in the /web directory in the AMP -->
<fileSet>
<directory>src/main/assembly/web</directory>
<outputDirectory>web</outputDirectory>
<filtered>true</filtered> <!-- Will filter files and substitute POM props such as for example ${project.name} -->
<excludes>
<exclude>README.md</exclude>
</excludes>
</fileSet>
</fileSets>
<!-- Include the project artifact (JAR) in the /lib directory in the AMP, and any 3rd party libraries (JARs)
used by the customization.
-->
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>

View File

@@ -0,0 +1,27 @@
# Custom AMP to WAR location mappings
#
# The following property can be used to include the standard set of mappings.
# The contents of this file will override any defaults. The default is
# 'true', i.e. the default mappings will be augmented or modified by values in
# this file.
#
# Default mappings are:
#
# /config=/WEB-INF/classes
# /lib=/WEB-INF/lib
# /licenses=/WEB-INF/licenses
# /web/jsp=/jsp
# /web/css=/css
# /web/images=/images
# /web/scripts=/scripts
# /web/php=/php
#
include.default=true
#
# Custom mappings. If 'include.default' is false, then this is the complete set.
# Map /web to / in AMP so we can override things like favicon.ico
#
/web=/

View File

@@ -0,0 +1,22 @@
# Web resources that should override out-of-the-box files
Put here any web resources that should override out-of-the-box
web resources, such as favicon.ico. They will then end up in the
*/web* directory in the AMP, and applied to the WAR, and override
any existing web resources in the Alfresco.WAR.
**Note**. Module dependency needs to be set to amp for the web resources to be applied by MMT:
`
<moduleDependency>
<groupId>${project.groupId}</groupId>
<artifactId>some-platform-jar</artifactId>
<version>${project.version}</version>
<type>amp</type>
</moduleDependency>
`
**Important**. New web resources should not be located here, but instead
in the usual place in the *src/main/resources/META-INF/resources* directory.

View File

@@ -0,0 +1,23 @@
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-log4j.properties $TOMCAT_DIR/shared/classes/alfresco/extension
COPY disable-webscript-caching-context.xml $TOMCAT_DIR/shared/classes/alfresco/extension
# Copy Dockerfile to avoid an error if no license file exists
COPY Dockerfile license/*.* $TOMCAT_DIR/webapps/alfresco/WEB-INF/classes/alfresco/extension/license/
USER ${USERNAME}

View File

@@ -0,0 +1,88 @@
#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.
# 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.
#
# Alfresco Repo Webapp (alfresco.war) context, ports etc
alfresco.context=alfresco
alfresco.host=localhost
alfresco.port=8080
alfresco.protocol=http
# Alfresco Share Webapp (share.war) context, ports etc
share.context=share
share.host=localhost
share.port=8180
share.protocol=http
# Don't try and recover any index
index.recovery.mode=NONE
# These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date
# See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597
# If you want to enable them (and so full WQS functionality), please also set index.subsystem.name=lucene
wcmqs.dynamicCollectionProcessor.schedule=0 30 2 * * ? 2060
wcmqs.feedbackProcessor.schedule=0 40 2 * * ? 2060
wcmqs.publishQueueProcessor.schedule=0 50 2 * * ? 2060
# Fail or not when there are node integrity checker errors
integrity.failOnError=true
# Alfresco Repository PostgreSQL Database configuration.
# The PostgreSQL Driver is brought in via the tomcat7-maven-plugin as a dependency.
db.driver=org.postgresql.Driver
# 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
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

View File

@@ -0,0 +1,270 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
# Set root logger level to error
log4j.rootLogger=error, Console, File
# All outputs currently set to be a ConsoleAppender.
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
# use log4j NDC to replace %x with tenant domain / username
log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n
#log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=logs/alfresco.log
log4j.appender.File.Append=true
log4j.appender.File.DatePattern='.'yyyy-MM-dd
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n
#log4j.appender.file=org.apache.log4j.FileAppender
#log4j.appender.file.File=hibernate.log
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
# Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit)
# Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime
# control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via
# Log4j addLoggerMBean as long as the logger exists and has been loaded.
# Hibernate
log4j.logger.org.hibernate=error
log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal
log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal
log4j.logger.org.hibernate.type=warn
log4j.logger.org.hibernate.cfg.SettingsFactory=warn
# Spring
log4j.logger.org.springframework=warn
# Turn off Spring remoting warnings that should really be info or debug.
log4j.logger.org.springframework.remoting.support=error
log4j.logger.org.springframework.util=error
# Axis/WSS4J
log4j.logger.org.apache.axis=info
log4j.logger.org.apache.ws=info
# CXF
log4j.logger.org.apache.cxf=error
# MyFaces
log4j.logger.org.apache.myfaces.util.DebugUtils=info
log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error
log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error
log4j.logger.org.apache.myfaces.taglib=error
# OpenOfficeConnection
log4j.logger.net.sf.jooreports.openoffice.connection=fatal
# log prepared statement cache activity log4j.logger.org.hibernate.ps.PreparedStatementCache=info
# Alfresco
log4j.logger.org.alfresco=error
log4j.logger.org.alfresco.repo.admin=info
log4j.logger.org.alfresco.repo.transaction=warn
log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn
log4j.logger.org.alfresco.repo.model.filefolder=warn
log4j.logger.org.alfresco.repo.tenant=info
log4j.logger.org.alfresco.config=warn
log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn
log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn
log4j.logger.org.alfresco.repo.management.subsystems=warn
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info
log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn
log4j.logger.org.alfresco.repo.security.sync=info
log4j.logger.org.alfresco.repo.security.person=info
log4j.logger.org.alfresco.sample=info
log4j.logger.org.alfresco.web=info
#log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug
#log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug
#log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug
#log4j.logger.org.alfresco.web.bean.clipboard=debug
log4j.logger.org.alfresco.service.descriptor.DescriptorService=info
#log4j.logger.org.alfresco.web.page=debug
log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error
#log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info
log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info
log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info
# Specific patches
log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info
log4j.logger.org.alfresco.repo.version.VersionMigrator=info
log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info
log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info
log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info
log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn
log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn
log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info
log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info
log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn
log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn
log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn
log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn
log4j.logger.org.alfresco.util.AbstractTriggerBean=warn
log4j.logger.org.alfresco.enterprise.repo.cluster=info
log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn
#log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug
log4j.logger.org.alfresco.repo.node.db.NodeStringLengthWorker=info
log4j.logger.org.alfresco.repo.workflow=info
# CIFS server debugging
log4j.logger.org.alfresco.smb.protocol=error
#log4j.logger.org.alfresco.smb.protocol.auth=debug
#log4j.logger.org.alfresco.acegi=debug
# FTP server debugging
log4j.logger.org.alfresco.ftp.protocol=error
#log4j.logger.org.alfresco.ftp.server=debug
# WebDAV debugging
#log4j.logger.org.alfresco.webdav.protocol=debug
log4j.logger.org.alfresco.webdav.protocol=info
# NTLM servlet filters
#log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug
#log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug
# Kerberos servlet filters
#log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug
#log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug
# File servers
log4j.logger.org.alfresco.fileserver=warn
# Repo filesystem debug logging
#log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug
# Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated
log4j.logger.org.alfresco.repo.node.integrity=ERROR
# Indexer debugging
log4j.logger.org.alfresco.repo.search.Indexer=error
#log4j.logger.org.alfresco.repo.search.Indexer=debug
log4j.logger.org.alfresco.repo.search.impl.lucene.index=error
log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn
#log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG
# Audit debugging
# log4j.logger.org.alfresco.repo.audit=DEBUG
# log4j.logger.org.alfresco.repo.audit.model=DEBUG
# Property sheet and modelling debugging
# change to error to hide the warnings about missing properties and associations
log4j.logger.alfresco.missingProperties=warn
# Dictionary/Model debugging
log4j.logger.org.alfresco.repo.dictionary=warn
log4j.logger.org.alfresco.repo.dictionary.types.period=warn
# Virtualization Server Registry
log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error
# Spring context runtime property setter
log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info
# Debugging options for clustering
log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error
log4j.logger.org.alfresco.repo.content.replication=error
#log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug
# Activity service
log4j.logger.org.alfresco.repo.activities=warn
# User usage tracking
log4j.logger.org.alfresco.repo.usage=info
# Sharepoint
log4j.logger.org.alfresco.module.vti=info
# Forms Engine
log4j.logger.org.alfresco.web.config.forms=info
log4j.logger.org.alfresco.web.scripts.forms=info
# CMIS
log4j.logger.org.alfresco.opencmis=error
log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error
log4j.logger.org.alfresco.cmis=error
log4j.logger.org.alfresco.cmis.dictionary=warn
log4j.logger.org.apache.chemistry.opencmis=info
log4j.logger.org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet=OFF
log4j.logger.org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet=OFF
# IMAP
log4j.logger.org.alfresco.repo.imap=info
# JBPM
# Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler
log4j.logger.org.jbpm.graph.def.GraphElement=fatal
#log4j.logger.org.alfresco.repo.googledocs=debug
# Web Framework
log4j.logger.org.springframework.extensions.webscripts=info
log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn
log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off
# Repository
log4j.logger.org.alfresco.repo.web.scripts=warn
log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off
log4j.logger.org.alfresco.repo.jscript=error
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn
log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info
log4j.logger.org.alfresco.repo.domain.schema.script.ScriptBundleExecutorImpl=off
log4j.logger.org.alfresco.repo.domain.schema.script.ScriptExecutorImpl=info
log4j.logger.org.alfresco.repo.search.impl.solr.facet.SolrFacetServiceImpl=info
# Bulk Filesystem Import Tool
log4j.logger.org.alfresco.repo.bulkimport=warn
# Freemarker
# Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler
log4j.logger.freemarker.runtime=
# Metadata extraction
log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn
# Reduces PDFont error level due to ALF-7105
log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal
log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal
log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal
# no index support
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal
log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal
# lucene index warnings
log4j.logger.org.alfresco.repo.search.impl.lucene.index.IndexInfo=warn
# Warn about RMI socket bind retries.
log4j.logger.org.alfresco.util.remote.server.socket.HostConfigurableSocketFactory=warn
log4j.logger.org.alfresco.repo.usage.RepoUsageMonitor=info
# Authorization
log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationService=info
log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationsConsistencyMonitor=warn
#-----------------------------------------------------------------------
# Platform module logging
#-----------------------------------------------------------------------
log4j.logger.${package}.platformsample.DemoComponent=debug
log4j.logger.${package}.platformsample.HelloWorldWebScript=debug

View File

@@ -0,0 +1,63 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans>
<!--
To support hot reloading of server side Javascript files in Share, we have to turn on development mode.
This setting will tell the Rhinoscript Processor not to compile and cache the JS files.
Cool, we can now change server side JS files and have the changes picked up,
without having to restart or refresh web scripts.
But… Due to a known bug in the Surf framework (ALF-9970) this will break the admin consoles in Share.
Override this bean and disable javascript compilation so that webscripts can be hot reloaded.
We have changed the 'compile' property from true to false.
-->
<bean id="javaScriptProcessor" class="org.alfresco.repo.jscript.RhinoScriptProcessor" init-method="register">
<property name="name">
<value>javascript</value>
</property>
<property name="extension">
<value>js</value>
</property>
<!-- Do not "compile javascript and cache compiled scripts" -->
<property name="compile">
<value>false</value>
</property>
<!-- allow sharing of sealed scopes for performance -->
<!-- disable to give each script it's own new scope which can be extended -->
<property name="shareSealedScopes">
<value>true</value>
</property>
<property name="scriptService">
<ref bean="scriptService"/>
</property>
<!-- Creates ScriptNodes which require the ServiceRegistry -->
<property name="serviceRegistry">
<ref bean="ServiceRegistry"/>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
<property name="storePath">
<value>${spaces.company_home.childname}</value>
</property>
</bean>
</beans>

View File

@@ -0,0 +1,51 @@
#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
#autoHotswap.port=8000
# Add a directory prior to application classpath (load classes and resources).
#
# This may be useful for example in multi module maven project to load class changes from upstream project
# classes. Set extraClasspath to upstream project compiler output and .class file will have precedence to
# classes from built JAR file.
# i.e. monitor /target/classes
# should work with extraClasspath=${project.build.outputDirectory}
# If not try
extraClasspath=/usr/local/tomcat/hotswap-agent
# Comma separated list of disabled plugins
# 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
# Add a directory prior to webapp path (load webapp resources).
#
# 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=/usr/local/tomcat/hotswap-agent/${rootArtifactId}/target/classes/META-INF/resources;
# Load static web resources from different directory.
#
# This setting is dependent on application server plugin(Jetty, Tomcat, JBoss, ...)
webappDir=/usr/local/tomcat/hotswap-agent/${rootArtifactId}/target/classes/META-INF/resources;
# Watch for changes in a directory (resources only).
#
# Similar to extraClasspath this property adds classpath when searching for resources (not classes).
# While extra classpath just modifies the classloader, this setting does nothing until the resource
# is really changed.
#
# Sometimes it is not possible to point extraClasspath to your i.e. src/main/resources, because there are multiple
# replacements of resources in a building step (maven filtering resource option).
# This setting will leave i.e. src/target/classes as default source for resources, but after the resource is modified
# in src/main/resources, the new changed resource is served instead.
# watchResources=
LOGGER.org.hotswap.agent=DEBUG
#LOGGER.org.hotswap.agent.plugin=TRACE
#LOGGER.org.hotswap.agent.watch=TRACE
#LOGGER.org.hotswap.agent.command=TRACE

View File

@@ -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.

View File

@@ -0,0 +1,35 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
/**
* This class does nothing except dump some output to <i>system.out</i>.
* This is a sample taken from Maven Alfresco SDK
*
* @author Derek Hulley
*/
public class Demo
{
public void init()
{
System.out.println("Platform JAR Module class has been loaded");
}
}

View File

@@ -0,0 +1,84 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
import org.alfresco.repo.module.AbstractModuleComponent;
import org.alfresco.repo.nodelocator.NodeLocatorService;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* A basic component that will be started for this module.
* Uses the NodeLocatorService to easily find nodes and the
* NodeService to display them
*
* @author Gabriele Columbro
* @author Maurizio Pillitu
*/
public class DemoComponent extends AbstractModuleComponent {
private static Log logger = LogFactory.getLog(DemoComponent.class);
private NodeService nodeService;
private NodeLocatorService nodeLocatorService;
public void setNodeService(NodeService nodeService) {
this.nodeService = nodeService;
}
public void setNodeLocatorService(NodeLocatorService nodeLocatorService) {
this.nodeLocatorService = nodeLocatorService;
}
/**
* Bogus component execution
*/
@Override
protected void executeInternal() throws Throwable {
System.out.println("DemoComponent has been executed");
logger.debug("Test debug logging. Congratulation your JAR Module is working");
logger.info("This is only for information purposes. Better remove me from the log in Production");
}
/**
* This is a demo service interaction with Alfresco Foundation API.
* This sample method returns the number of child nodes of a certain type
* under a certain node.
*
* @return
*/
public int childNodesCount(NodeRef nodeRef) {
return nodeService.countChildAssocs(nodeRef, true);
}
/**
* Returns the NodeRef of "Company Home"
*
* @return
*/
public NodeRef getCompanyHome()
{
return nodeLocatorService.getNode("companyhome", null, null);
}
}

View File

@@ -0,0 +1,51 @@
#set($symbol_pound='#')
#set($symbol_dollar='$')
#set($symbol_escape='\' )
/**
* Copyright (C) 2017 Alfresco Software Limited.
* <p/>
* This file is part of the Alfresco SDK project.
* <p/>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${package}.platformsample;
import org.springframework.extensions.webscripts.Cache;
import org.springframework.extensions.webscripts.DeclarativeWebScript;
import org.springframework.extensions.webscripts.Status;
import org.springframework.extensions.webscripts.WebScriptRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.HashMap;
import java.util.Map;
/**
* A demonstration Java controller for the Hello World Web Script.
*
* @author martin.bergljung@alfresco.com
* @since 2.1.0
*/
public class HelloWorldWebScript extends DeclarativeWebScript {
private static Log logger = LogFactory.getLog(HelloWorldWebScript.class);
protected Map<String, Object> executeImpl(
WebScriptRequest req, Status status, Cache cache) {
Map<String, Object> model = new HashMap<String, Object>();
model.put("fromJava", "HelloFromJava");
logger.debug("Your 'Hello World' Web Script was called!");
return model;
}
}

View File

@@ -0,0 +1,8 @@
<webscript>
<shortname>Hello World Sample Webscript</shortname>
<description>Hands back a greeting</description>
<url>/sample/helloworld</url>
<authentication>user</authentication>
<format default="html"></format>
<lifecycle>sample</lifecycle>
</webscript>

Some files were not shown because too many files have changed in this diff Show More