mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-06-02 17:35:25 +00:00
Archetypes - Update README files
Update the README files of the archetypes with the new approach of the Alfresco SDK.
This commit is contained in:
parent
6cd3e0c0c2
commit
4c2ac6db7d
@ -2,30 +2,43 @@
|
||||
|
||||
This is an All-In-One (AIO) project for Alfresco SDK 4.0.
|
||||
|
||||
Run with `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it
|
||||
Run with `./run.sh build_start` or `./run.bat build_start` and verify that it
|
||||
|
||||
* Runs the embedded Tomcat + H2 DB
|
||||
* Runs Alfresco Platform (Repository)
|
||||
* Runs Alfresco Solr4
|
||||
* Runs Alfresco Content Service (ACS)
|
||||
* Runs Alfresco Share
|
||||
* Packages both as JAR and AMP assembly for modules
|
||||
* Runs Alfresco Search Service (ASS)
|
||||
* Runs PostgreSQL database
|
||||
* Deploys the JAR assembled modules
|
||||
|
||||
All the services of the project are now run as docker containers. The run script offers the next tasks:
|
||||
|
||||
* `build_start`. Build the whole project, recreate the ACS and Share docker images, start the dockerised environment composed by ACS, Share, ASS and
|
||||
PostgreSQL and tail the logs of all the containers.
|
||||
* `start`. Start the dockerised environment without building the project and tail the logs of all the containers.
|
||||
* `stop`. Stop the dockerised environment.
|
||||
* `purge`. Stop the dockerised container and delete all the persistent data (docker volumes).
|
||||
* `tail`. Tail the logs of all the containers.
|
||||
* `reload_share`. Build the Share module, recreate the Share docker image and restart the Share container.
|
||||
* `reload_acs`. Build the ACS module, recreate the ACS docker image and restart the ACS container.
|
||||
* `build_test`. Build the whole project, recreate the ACS and Share docker images, start the dockerised environment, execute the integration tests from the
|
||||
`integration-tests` module and stop the environment.
|
||||
* `test`. Execute the integration tests (the environment must be already started).
|
||||
|
||||
# Few things to notice
|
||||
|
||||
* No parent pom
|
||||
* No WAR projects, all handled by the Alfresco Maven Plugin
|
||||
* No runner project - it's all in the Alfresco Maven Plugin
|
||||
* No WAR projects, the jars are included in the custom docker images
|
||||
* No runner project - the Alfresco environment is now managed through [Docker](https://www.docker.com/)
|
||||
* Standard JAR packaging and layout
|
||||
* Works seamlessly with Eclipse and IntelliJ IDEA
|
||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so`
|
||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml [JRebel integration documentation]
|
||||
* AMP as an assembly
|
||||
* [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin`
|
||||
* No unit testing/functional tests just yet
|
||||
* Persistent test data through restart thanks to the use of Docker volumes for ACS, ASS and database data
|
||||
* Integration tests module to execute tests against the final environment (dockerised)
|
||||
* Resources loaded from META-INF
|
||||
* Web Fragment (this includes a sample servlet configured via web fragment)
|
||||
|
||||
# TODO
|
||||
|
||||
* Abstract assembly into a dependency so we don't have to ship the assembly in the archetype
|
||||
* Purge
|
||||
* Functional/remote unit tests
|
||||
|
@ -1,34 +1,42 @@
|
||||
# Alfresco Platform JAR Module - SDK 3
|
||||
# Alfresco ACS JAR Module - SDK 4.0
|
||||
|
||||
To run use `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it
|
||||
This is an ACS project for Alfresco SDK 4.0.
|
||||
|
||||
* Runs the embedded Tomcat
|
||||
* Runs Alfresco Platform (Repository)
|
||||
* Packages both as JAR and AMP assembly
|
||||
|
||||
Try cloning it, change the port and play with `enableShare` and `enablePlatform`.
|
||||
|
||||
Protip: This module will work just fine as a Share module if the files are changed and
|
||||
if the enablePlatform and enableSolr is disabled.
|
||||
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.
|
||||
* `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
|
||||
* WAR assembly is handled by the Alfresco Maven Plugin configuration
|
||||
* No WAR projects, the jars are included in the custom docker images
|
||||
* No runner project - the Alfresco environment is now managed through [Docker](https://www.docker.com/)
|
||||
* Standard JAR packaging and layout
|
||||
* Works seamlessly with Eclipse and IntelliJ IDEA
|
||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so`
|
||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml [JRebel integration documentation]
|
||||
* AMP as an assembly
|
||||
* [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin`
|
||||
* No unit testing/functional tests just yet
|
||||
* Persistent test data through restart thanks to the use of Docker volumes for ACS, ASS and database data
|
||||
* Resources loaded from META-INF
|
||||
* Web Fragment (this includes a sample servlet configured via web fragment)
|
||||
|
||||
|
||||
# TODO
|
||||
|
||||
|
||||
* Abstract assembly into a dependency so we don't have to ship the assembly in the archetype
|
||||
* Purge,
|
||||
* Functional/remote unit tests
|
||||
|
||||
|
||||
|
||||
|
@ -1,29 +1,43 @@
|
||||
# Alfresco Share JAR Module - SDK 4.0
|
||||
|
||||
To run this module use `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it
|
||||
This is a Share project for Alfresco SDK 4.0.
|
||||
|
||||
* Runs the embedded Tomcat + H2 DB
|
||||
Run with `./run.sh build_start` or `./run.bat build_start` and verify that it
|
||||
|
||||
* Runs Alfresco Content Service (ACS)
|
||||
* Runs Alfresco Share
|
||||
* Packages both as JAR and AMP assembly
|
||||
* 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:
|
||||
|
||||
Note. You access Share as follows: http://localhost:8081/share
|
||||
|
||||
Note. You need an Alfresco Platform instance running at http://localhost:8080/alfresco that Share can talk to.
|
||||
Typically you will just kick off a platform-jar module for that.
|
||||
* `build_start`. Build the whole project, recreate the Share docker image, 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 Share docker image, 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
|
||||
* WAR assembly is handled by the Alfresco Maven Plugin configuration, if needed
|
||||
* No WAR projects, the jars are included in the custom docker images
|
||||
* No runner project - the Alfresco environment is now managed through [Docker](https://www.docker.com/)
|
||||
* Standard JAR packaging and layout
|
||||
* Works seamlessly with Eclipse and IntelliJ IDEA
|
||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so`
|
||||
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml [JRebel integration documentation]
|
||||
* AMP as an assembly
|
||||
* [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin`
|
||||
* No unit testing/functional tests just yet
|
||||
* Persistent test data through restart thanks to the use of Docker volumes for ACS, ASS and database data
|
||||
* 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
|
||||
|
7
pom.xml
7
pom.xml
@ -103,6 +103,13 @@
|
||||
<timezone>-5</timezone>
|
||||
<url>http://rgauss.com/</url>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Jose Luis Osorno Gil</name>
|
||||
<email>joseluis.osorno@ixxus.com</email>
|
||||
<organization>Ixxus</organization>
|
||||
<organizationUrl>http://www.ixxus.com</organizationUrl>
|
||||
<timezone>+1</timezone>
|
||||
</contributor>
|
||||
</contributors>
|
||||
|
||||
<!-- All the modules of the Alfresco SDK -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user