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
Next up you generate a project from the archetype:
mvn archetype:generate -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/archetype-catalog.xml -Dfilter=org.alfresco:
Select the archetype you want to use, and make sure to select 1.2.0-SNAPSHOT.
Now you’re ready to go, simply run ./run.sh to get started and enjoy all the nice features.
Please raise an issue on our GitHub issue tracker if you encounter any bugs.