Get Started with Alfresco 6 and alfresco SDK 4

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member II

Get Started with Alfresco 6 and alfresco SDK 4

Hi 

 

I wanted to start with Alfresco 6 developement with SDK 4,

can someone help me with the ressources or any references to get start with it.

 

Regards,

Brahmaiah Ganna

2 Replies
Highlighted
Active Member

Re: Get Started with Alfresco 6 and alfresco SDK 4

Please have a look a this Tutorial:

https://ecmarchitect.com/alfresco-developer-series

Highlighted
Moderator
Moderator

Re: Get Started with Alfresco 6 and alfresco SDK 4


Concept wise everytihng is same as previous version, If you are very much new to alfresco then refer this post for more details:

https://hub.alfresco.com/t5/alfresco-content-services-forum/new-to-alfresco-need-suggestions-directi...

To start with SDK4.x you should have idea about docker, docker-compose, DockerFile etc. You can go through this blog to understand the docker based deployments:

https://hub.alfresco.com/t5/alfresco-content-services-blog/deploying-and-running-alfresco-content-se...

You can follow the below given steps to generate and test a sample sd4 based project which uses ACS 6.2.x:

1- Generate the archetype [ use: mvn archetype:generate -Dfilter=org.alfresco: ] using SDK 4.1.0 (meant for ACS 6.2.x).
Decide to generate AIO or individual archetypes based on your current setup/preference.

See steps here:

https://hub.alfresco.com/t5/alfresco-content-services-forum/problem-when-creating-an-all-in-one-proj...

You would get additional project named "yourproject-share-docker/yourproject-platform-docker". It will have DockerFile containing the base image and steps to be performed while launching the containers. You will also get a project named as "docker", this will have docker-compose.yml file which basically defines all the services which using which containers will be launced.

Make sure you provide the same groupId and artifactId as per your current project.

To get basic info of DockerFile, refer:

https://dzone.com/articles/understanding-dockerfile

https://docs.docker.com/engine/reference/builder/

To get basic info of docker-compose.yml, refer: https://docs.docker.com/compose/

2- Build and Start the containers and see if everything works ok. Use "run.bat build_start" (run.sh build_start for linux) command to build and start the docker containers. You can refer "run.bat or run.sh" files.

3- To remote debug and put breakpoints you can follow these documents. Make sure you add below step in platform DockerFile:

Add the below given line in your platform-docker project's DockerFile:

COPY hotswap-agent.properties $TOMCAT_DIR/webapps/alfresco/WEB-INF/classes
For remote debugging follow the instructions given here:

Intellij: https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-intellij.m...

Eclipse: https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/debugging/debug-eclipse.md

Have a look at this documentation as well: https://hub.alfresco.com/t5/alfresco-content-services-hub/alfresco-sdk-4-0/ba-p/289257

If you have not used any versions of SDK so far, then you can generate a sample artifact by referring to this post, you can find steps to generate base artifact here:

https://hub.alfresco.com/t5/alfresco-content-services-forum/problem-when-creating-an-all-in-one-proj...

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)