The home of Ole Hejlskov (ohej)

Main menu

Post navigation

Alfresco 4.2.x and Alfresco SDK

During the hackathon at Alfresco Summit in London I worked on porting the nice features of the Alfresco SDK 2.0 to work with Alfresco 4.2.x.

Sadly, we have hit a bump on the road: The Alfresco artifacts changed too much between 4.2.x and 5.x. Because of this we have to branch out and maintain two separate branches. What does this mean for you? Well, remember these two sentences an help other users out, as this will be a very difficult thing to grasp:

FOR ALFRESCO 4.2.x USE ALFRESCO SDK 1.2.0 OR NEWER

FOR ALFRESCO 5.X USE ALFRESCO SDK 2.0 OR NEWER

We have not released 1.2.0 just yet, but we do have a snapshot version out that seems pretty stable, but I need people to help test it.

Here is a small guide on how to use Alfresco SDK 1.2.0-SNAPSHOT to work with 4.2.x.

First of all you need to allow Maven to use Sonatype’s snapshots repository. You have to add this to your ~/.m2/settings.xml

I’ve tested version 1.2.0-SNAPSHOT on https://github.com/softwareloop/uploader-plus – a main pom project with two amp modules, one for repo the other for share.
I was upgrading from 1.1.1 and I had to modify tomcat/context.xml and add a few properties in the poms but, other than that, the SDK worked perfectly. Thanks for the great work!

Just tested this out using the all-in-one and it works well. Even was able to modify the POM to point to the Enterprise version 4.2.3.3 and it worked.
One question I have and noticed this with the SDK 5 all-in-one under the share interface the all of the Tools under the Admin Tools are blank. Any idea why?

I am getting several errors with SOLR when adding content. The new content appears to not get indexed as well.
Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 10100038 api/solr/aclchangesets return status:500

I have noticed that when running the all-in-one that it is loaded items from the config twice. I noticed that the context-repo.xml have the config of the repo-amp as a virtual. Is it possible that this is causing the issue in that since the runner gets a copy of the config from the war and then you add another reference via the virtual. I am not that familiar with using runner so please correct me if I am off base here. Main issue I am running into is that I get an error when it trys to load my custom audit config complaining that it already has that audit key.

Sorry for not replying here, my email notification has been broken for my blog, so I just saw your comments now. The proper place to discuss would be github, feel free to raise an issue there and I’ll have a look at it.

I think the problem could be related with a multi-module maven projects where both a jar sub-module and alfresco-amp sub-module could inherit the junit dependency configuration from the alfresco-sdk-parent-1.2.0 root archetype.
In the alfresco-amp sub-module the junit version is explicitly declared, in a any other sub-module it could be inherited from the parent archetype (the alfresco-sdk-parent-1.2.0 where it’s mssing…)
I created a blank multi-modules project to reproduce the error, I can’t attach it on github. If you need i can provide the zip.
Here the issue:https://github.com/Alfresco/alfresco-sdk/issues/240