An archetype for Alfresco Share in the new Maven Alfresco Lifecycle release

As promised, just a brief heads up on the quite few changes ongoing in the Maven Alfresco Lifecycle project which is now supported by the Alfresco Community Maven repository.ย  Also I managed to pull out a new version of the Cmis Maven toolkit against the new repository.

Proceeding with order, first of all, I released today a new version (1.1.0) of the maven-alfresco-lifecycle package with the main interesting news (full changes report):

The long Maven Alfresco marathon was then completed by the release of version 1.0-beta-2 of the CMIS 1.0cd04 Maven Toolkit, pointing to the new Maven repository. No actual functionality was modified and it keeps on working happily (by default against using the latest snapshots from the Chemistry AtomPub TCK trunk. I updated the documentation on the Alfresco wiki as well.

I hope this really helps as it’s just *not that* funny to go over those growing many documentation files to change repos again, so any edit or error you guys can spot in the docs === a beer on me when you seem me ๐Ÿ™‚

Though I first have to apologize to the end users of this build, promising this is the last time this project moves hosting.
Now everything is consolidated, content as artifacts, as in the pure ECM spirit. And with a promising Share archetype to work and customize it productively.

Eager to hear your feedback (curious about the Share archetype), and especially at my Tech Talk on Maven and Alfresco

…don’t be shy ๐Ÿ™‚

Dreams come true … launching the Alfresco Community Maven Repository :)

Busy days busy days, busy but definitely happy days ๐Ÿ˜‰

after working a lot on the CMIS 1.0 Webinar (recording out soon) and having made my first official commit for Apache, I saw an unexpected but never so welcome outstanding speedup of one of the processes that I’ve been pushing in the Alfresco Community for about 3 years now.

I’m proudly announcing the institution of an Alfresco hosted Maven Repository, capable of consolidating and bring the Maven Alfresco Community to the next level. Hosting a repository (for Community artifacts only for now) means a great step towards a even more mature open source community which works against high standards of quality and automation.

I’ll be discussing and demoing this and other Maven Alfresco related topics in next Friday’s Alfresco Tech Talk Live. You’ll find more info on the Alfresco wiki.

For now, here’s a screenshot of our new shiny Sonatype Nexus 1.4.0 instance, which will allow a proper consolidation still scale-out for our community by the means of repositories proxying and Alfresco Community artifacts hosting. Kudos to everyone that made this happen ๐Ÿ™‚

Alfresco Maven Repository

This is is a big step for the community which is growing around projects like the Maven Alfresco Lifecycleย  and the small CMIS 1.0 Maven toolkit which I built for my recent training engagements.

In addition to that,ย  the mighty great news about the Alfresco SURF and Alfresco Webscripts project now being contributed to the Spring Framework under the newly born Spring Surf Extension (follow our work here), all of which is powered by Maven gives even a more central role to this technology in the company I work for.ย  Great job guys and thanks for giving me the opportunity to participate in this!

This is such a nice moment for me which I pushed for this since a long time, when I was still working for Sourcesense. And a special thanks must go to them for having first allowed me to work on a Maven Alfresco suite in the past and for having supported it with their Nexus instance, until we introduced an Alfresco Maven repo. Most content is now migrated so you can safely use the new repo in your POMs.

I’m still in the process of migrating (tomorrow should be done) all the apps to the new repo, so expect changes in the docs. I’ll keep you posted with the coming changes and news.

Also, please provide your feedback on this event so we can offer the best service around this important open source Application Lifecycle Management technology.

I just committed at Apache…now I can be a dad :)

Today is a shiny day in my humble open source geek existence: after about 9 months after having been awarded the Apache Chemistry committership, I finally did my first ASF code commit.
About the slowest ever…

When tweeting about it, I go this interesting consideration by my friend and ex-colleague Mario :

@mindthegabz Congratulations! 9 months for a commit is like a childbirth…

While I tend to agree on the quite same importance ofย  having a casino online kid and doing an Apache Commit :p ,
does this also imply I should start seriously thinking about a larger family? ๐Ÿ™‚

Don’t see it mentioned anywhere in the New Committers guide, am I missing something ? ๐Ÿ™‚

Maven Alfresco Lifecycle to gather all Maven Alfresco components

Few Build Successful’s were more satifsactory then the one which you can see in the window below ๐Ÿ˜‰

Maven Alfresco Lifecycle build successful

Finally all the modules that I’ve been working together with the community, including AMP & Alfresco Extension Maven archetypes and the AMP plugin, under one single build, control and with a proper release process, called (almost obviously) Maven Alfresco Lifecycle featuring:

It was time to wrap up all this work (merging m2Alfresco, maven4Alfresco and other Maven Alfresco related activities) in a more usable and sustainable platform for growing it.

As usual, many thanks go to Mao that provided 1st class infrastructure support (and much more ๐Ÿ™‚ on the new Nexus Sourcesense repository.

And this being a double advantage, not only for the community but for the growing number of enterprise customers interested in working with Maven on Alfresco.
I would like now to grow it with features already present in some development branches and exciting new improvements like:

  • Alfresco Share archetype support (already in 3.x branches)
  • SURF / Spring tool suite integration (as Uzi shown us so to be so cool with the new spring-surf)
  • Update and improve the quality of the sample contexts to match the latest and greatest capabilities

As said, I see the interest of the community at large around the project is growing so in case you’re interested I suggest you to participate by joining the lists or opening issues.

So just give it a try…it’s two Maven commands away ๐Ÿ˜‰

Would love to hear your thoughts on how to improve the platform and grow it to the next (enterprise) level. Don’t forget to check out the 3.1.0-stripped branch, where a Maven Calm based version is hosted and there’s already a working Alfresco Share sample project.

Have fun!

Maven and Chemistry strike back … a Maven archetype as CMIS Labs and toolkit

CMIS is cool indeed, and especially working on it with Open Source tools like Alfresco, Maven and Chemistry can result in quite a bit of fun.

I’ve been working quite a lot lately on producing some sample and training material for the coming Alfresco meetups (tomorrow I’ll be presenting the CMIS Master classย  live from Madrid), and so I decided to mix and match the two things I can do best:

  • Using my beloved Apache Maven
  • Using the Chemistry AtomPub TCK (former Alfresco CMIS TCK) that we contributed to ASF to provide high level access to the CMIS ReST API

This effort, which I’ll probably heavily use in the next days Master Classes and training session, turned out to be quite productive as in a couple of days of work I was able to:

  • develop a Labs framework which wraps Chemistry TCK embedded CMISClient
  • provide an easy CMIS 0.62 application(s) scaffolding platform using a Maven multimodule project
  • produce and release a Maven archetype which is now hosted our partner Sourcesense repositories ( big thanks go to this folks for being always supportive with their Maven maven infrastructure) and can be used as CMIS launchpad / labs / toolkit

Trying it is very easy, due to Maven archetypes power, and you can have the full Labs toolkit downloaded and installed on your by just selecting ‘cmis-master-labs-archetype‘ in the options of the command below:


mvn archetype:generate 
mvn archetype:generate 

mvn archetype:generate -DarchetypeRepository= -DarchetypeGroupId=org.alfresco.enablement.codecamps.cmis -DarchetypeArtifactId=cmis-master-labs-archetype -DarchetypeVersion=1.0

This will create a multiproject structure ready for use. You’ll just need to configure (in a single sourced fashion for the whole suite)ย  the CMIS endpoint properties in the main POM, by editing the following properties:

<!-- Configure here the CMIS endopoint For the whole suite -->

All the nice tracing and validation features of the Chemistry TCK are exposed, once that you configured the POM to point to a proper CMIS 0.62 compliant server (e.g. Alfresco, and an Ubuntu Alfresco VM is available here for this purpose). Specifically the toolkit offers 3 Maven submodules

  • cmis-support –> Support JAR which wraps Chemistry TCK CMISClient
  • cmis-query-webapp –> Very basic SpringMVC webapp querying a CMIS repository and showing results/entries
  • cmis-lab-atompub-binding –> Learning lab on how to import data in Alfresco (complete class in the solution folders)

and a lab-solutions folder.

Using it is pretty straighforward. A simple

mvn install

will test the support against the provided configuration, while entering the cmis-query-webapp folder and running

mvn jetty:run-exploded

will result in the (quite ugly) but functional CMIS Query interface you can see below:

CMIS Query Webapp

using a simple three tiered architecture like the one that follows:

CMIS Query Webapp architecture

Lastly entering the lab-atompub-binding folder and running

mvn test

will run the sample JUnit empty test for the data import lab. Solution (real Test class) is to be found in the labs-solutionsย  folder.

It’s a beginning but I believe it’s a very nice tool to overcome the somehow still steep learning curve around CMIS, so I warmly suggest you start installing the VM and the archetype and play around with it, and even use it as start for your integration/contribution projects. Especially if you are going to attend Alfresco meetups this month. I’ll surely post the Labs slides later this month, so stay posted!


The CMIS 1.0 Public Review compliant toolkit (working against Chemistry AtomPub TCK Trunk 1.0) is available on the Sourcesense repository and it’s added to the remote catalo mentioned in the previous command.

As a side note, at the moment this toolkit provide support for CMIS 0.62 while is Alfresco supporting CMIS 0.70: I’m planning to update the archetype (just a mere Maven dependency ๐Ÿ™‚ ) to use the HEAD version of Chemistry TCK that is supporting 0.70.

Feedback welcome as usual!

Hope this really helps ๐Ÿ™‚

A Maven based CMIS Tck to contribute in Apache Chemistry

My first real involvement in Chemistry definitely deserves a first post on the subject ๐Ÿ˜‰

Lately I’ve been involved into refactoring the Alfresco CMIS Test Harness into an external Tck (Test Compatibility Kit) module to contribute to the Apache Chemistry. At the moment it’s mostly focused on the AtomPub part (including an Apache Adbera extension), but being based on Apache Maven standards should be fairly easy to scale out to WebServices binding testing.

This would be this first real contribution from Alfresco to the Chemistry project, where me and David Caruana have the luck of being involved as committers. At the moment the code for the will-be-called chemistry-atompub-tck is still hosted under the Alfresco contrib SVN space as still to be completed, but already offering quite some nice functionalities to test the compatibility of your server to the CMIS 0.6.2 standard.

The code (which was already in Alfresco and kept up to date to the CMIS standard directly by David) is now almost ready for contribution as it’s completely decoupled from Alfresco and uses a standard Maven build process (Junit + Surefire) to run compatibility tests against an existing (and running) CMIS server.

So, running a plain :

mvn test

will run all Junit tests against the specified serviceUrl with specified the username and password, using Maven POM properties as configuration mechanism. Additional configuration can be done in the POM to trace HTTP request/response conversation (useful for debugging purposes), and to configure some behaviors of the HTTP client.

In addition to that, due to the mighty Maven power a small addition to the previous command:

mvn test site:run

will allow you to point to anembedded Jetty server which publishes the test reports and shows errors and exceptions (amongst all the other nice Maven site features).

The idea at the base of this contribution is that this TCK can be used to test virtually any CMIS implementation and Maven profiles provide us a nice way to aggregate the full test fixture and publish the result in a nicely aggregated fashion. In fact, I started defining a profile called ‘alfresco’ which once run with:

mvn test -Palfresco

will configure the TCK to run against an Alfresco provided CMIS reference URL (or to do any Alfresco specific pre-requisite steps, like downloading it, installing a custom model and run it in Jetty for self contained testing).

In the same way I’d like all the other open source vendors involved in Chemistry to maintain their own profile which will serve as community reference for the CMIS readiness of a specific platform. Likewise we could setup ‘sharepoint’ or ‘documentum’ profiles to test existing public instances of those CMIS implementors, to always be up to date with their state of the art.

This will, of course, make much more sense once integrated in Chemistry but it’s already fully functional against the CMIS 0.6.2 standard and might be worth a try already. And if you feel to participate to the testing game, why don’t you make a CMIS server instance available and contribute the few lines of POM configuration to the project, filing a nice and easy JIRA issue?

Too much of a salesguy ? ๐Ÿ™‚

Introduccion a Alfresco SHARE y SURF en Castellano

(Sorry to my few fellow English speaking readers, but I just took the decision that Spanish language is widespread enough to make my blog multilingual, effective as of now ๐Ÿ˜‰ )

Esto tiene que ser mi primer post en Castellano, pero vale la pena intentarlo para compartir con la comunidad hispanofona la disponibilidad (en la Alfresco Content Community) de unas ponencias (PDF) que introducen conceptos teoricos y practicos de Alfresco SHARE y SURF, en Castellano! ย Ademas aqui’ hay una introduccion a los projectos basados en Alfresco en contextos institucionales, en Castellano tambien.Presente’ esta ponencias durante los eventos de la semana pasada, hospedados en Valencia por los partners Alfresco Tissat y Indra.Cualquier comentario y consejo seria interesante para mejorar los temas y las practicas (voy a postar el codigo de los labs y ejercicios ASAP, especialmente lo para anadir una Dashlet que se conecta a Twitter).A ver si puede ser util para suportar la ya vibrante comunidad hispanofona!

Launching Calm – an opensource answer to Application Lifecycle Management

ย It’s still at its early stages but it’s definitely collecting already lots of interest and potential use cases.

Maven Calm is an Apache Maven based attempt to provide a simple and collaborative implementation to the problems of ALM (Application Lifecycle Management), which is based on a simple rationale developed in 3+ years of complex architectures development on Maven:

“All best practices can be externalized, in a cross technology and cross organization fashion, using Maven project inheritance capabilities”

As Mau explains in his wonderful Maven Calm tutorial, simply by the means of using Calm as parent POM and setting some properties, you have access to a number of pre-configured behaviors of your build, neatly bound to lifecycle phases.

Hopefully this list is meant to grow pretty soon, but at the moment Maven Calm support ALM processes like:

  • Application Packaging and Deployment
  • Release, distribution and change management
  • User and developer documentation site publishing
  • Continuous Unit, integration and regression testing
  • Add your own best practice and avoid re-writing it per project/company!

Calm is open source and hosted on Google Code, so if you want to know more you can find all the info by joining our Google Group ๐Ÿ˜‰

Italian fascists are pushing back and they are not too far

Sorry to have such a eye-catching title, but that’s not cool, way not cool.
After coming back from a nice business week in Italy, once again appreciating the good weather, people and food of my city, Rome, I sadly had once again to see how my beloved home country, Italy, is going in a direction I really was fearing.

Recently, Berlusconi’s Italian government has started the legalization process for a best practice of Italian of Fascism: during those 20 years, self organized fascist citizen patrols were referred asย  “squadre” for a phenomenon called “squadrismo”, meaning having a sort of non military vigilantes all around the Italian territory. Those phenomenon shortly lead to the diffusion of Blackshirts which performed politic cleaning, opening the road for the state Fascism and the march on Rome.

The government, constantly leveraging old racist fears, was almost forced by Lega Nord (the secessionist north Italy party) to legalize local “Ronde” (patrols) by the so called “Camicie Verdi” (green shirts),ย  which are mainly northern Lega Nord followers who desire to promote some old fashioned self social security model.

But what has convinced me it was the time to post about what was just a dangerous and annoying thought until now, is the fact that the Italian National Guardย  (very similar to Mussolini’s Italian National Republic Guard), a neo-fascist NPO managed by ex-convicted characters and ex-army figures is claiming to have at least 2k people ready to be sent in the street in complete legality when the new security law will complete its approval process going back to the Senate.

It does not take a genious to see where this is going: Berlusconi already had a 5 years bullet-proof legislation in which he consolidated media control and economic power, now it’s time wants to complete his masterpiece, Italy under his complete power, before the end of this one. Not that I was not expecting it, maybe I was just not expecting it to happen so fast.

I don’t think I’m an alarmist here saying that we need to do something for our country, Italy, and especially if you live abroad like me, this can be very difficult if we approach it in the classical italian way: each one on his own, and let’s hope in a better future. We need to create a critical communication mass to tell the world what’s actually going on in Italy, have international attention on the topic so that this and the many other neo-con and neo-fascist activities of this government are stopped.

I really see not that much difference from what’s going on in Italy and what happened so many times in the past and all over the world: Berlusconi might be a bit more charmy and wearing italian clothes, but, world, don’t let yourself fooled. He’s just a very smart guy, doing his own interest and driving

I’m sure Mr. Obama won’t , in the day of Berlusconi’s visit to the White House, he should ask him something like :

How come, Mr.Berlusconi, you’re trying to legalize and re-create that fascist movement my country has spent so many lives for helping you in eradicating it?

In general, everyone Italian and foreigner, should ask himself:

what is the big difference between what’s going on in Italy and the pattern we have learned from history on how most dictatorships have begun?

Sorry but I can’t see any: here we have media control, fear based politics (communists or immigrates or you tell me the next one), army deployed all over italy (for security reasons), now we also have legal Fascist “squadre” that in a short time are going to give you a warm welcome when you go to Italy.

A refreshing touch of history, back to the latest dark age of our country. A blog post is the least anyone should do (still searching for something more effective) to spread this message, raise critics and move public opinion towards a modern view of society, instead of digging in too-recent-to-be-forgotten extreme political measures.

I’m seriously worried.