The path about CMIS project.

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

The path about CMIS project.

Jump to solution

Hello Team;

          I do not know where to put the new Maven project down?

          Please refer the URL as below;

          "https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html"

          Thanks a lot!

project path.png

1 Solution

Accepted Solutions
abhinavmishra14
Advanced

Re: The path about CMIS project.

Jump to solution

Use the SDK3.X version the project as you are currently using.  The error complains about the java version. I think you have jdk8 installed currently. The project you have checked out, requires java11. I just gave the example of project paths.

From all the responses above, i believe you are using this one: https://github.com/jpotts/alfresco-developer-series/releases/tag/SDK-3.0.1

so continue to use it if you need to work with sdk3.

 

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View solution in original post

6 Replies
abhinavmishra14
Advanced

Re: The path about CMIS project.

Jump to solution

There are subprojects per specific tutorials. The one you showed is about maven sdk. 

This is the correct path for content tutorial if you are following the examples as is: 

https://github.com/jpotts/alfresco-developer-series/tree/master/content (same path applies to sdk3.x as well).

Make sure you run "mvn clean install" command on this path: D:\WORK-Alfresco\ADF\TUTORIAL_HOME

Here is cmis project : https://github.com/jpotts/alfresco-developer-series/tree/master/content/content-tutorial-cmis (same path applies to sdk3.x as well).

Import the project in your IDE and play around with it.

If you want to create the project from scratch, then you should generate the project via maven archetype and name it "content-tutorial-cmis"  , steps are given here (how to generate the archetype): https://github.com/jpotts/alfresco-developer-series/blob/master/maven-sdk/tutorial/tutorial.md

mvn archetype:generate -Dfilter=org.alfresco:

You can also refer this thread to see the steps to generate the archetype : https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-configure-the-development-environ... 

 

 

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
YanFeiHu
Member II

Re: The path about CMIS project.

Jump to solution

Hello Abhinav;

     Thank you for your help!

     I downloaded the CMIS project 'content-tutorial-cmis', and then run "mvn clean install" command, but failed to do it.

     Please see the picture as below.

Mvn build failure.png

abhinavmishra14
Advanced

Re: The path about CMIS project.

Jump to solution

That is expected, you need to first run "mvn clean install" at this project, https://github.com/jpotts/alfresco-developer-series/tree/master/content/content-tutorial

cmis tutorial project is using the artifact from https://github.com/jpotts/alfresco-developer-series/tree/master/content/content-tutorial subproject.  See the example below:

In this order (path based on your screenshot, adjust the path and name as per your project structure):

mvn clean install D:\WORK-Alfresco\ADF\$TUTORIAL_HOME\alfresco-developer-series\content\content-tutorial\pom.xml

mvn clean install D:\WORK-Alfresco\ADF\$TUTORIAL_HOME\alfresco-developer-series\content\content-tutorial-cmis\pom.xml

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
YanFeiHu
Member II

Re: The path about CMIS project.

Jump to solution

Hi Abhinav;

     Thanks again!

     I have downloaded the project as you suggest, and then run "mvn clean install", but failed.

     Please refer pictures  as follow.

content-tutorial.png

Mvn build failure1.png

abhinavmishra14
Advanced

Re: The path about CMIS project.

Jump to solution

Use the SDK3.X version the project as you are currently using.  The error complains about the java version. I think you have jdk8 installed currently. The project you have checked out, requires java11. I just gave the example of project paths.

From all the responses above, i believe you are using this one: https://github.com/jpotts/alfresco-developer-series/releases/tag/SDK-3.0.1

so continue to use it if you need to work with sdk3.

 

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
YanFeiHu
Member II

Re: The path about CMIS project.

Jump to solution

Yes, SDK3.X version and JDK1.8 build success.

Thank you so much!

build success.png