Lets be honest: The Share application and the framework also do have weaknesses and our mileage varies.
Make Sense … and Fun !
I like Grails and the Groovy way – because it can be really productive (and fun !) once you passed the first hurdles and left the initial pain behind.
For quite some time, I was thinking about how to make sense of Groovy/Grails and the Alfresco stack at the same time (… and I don’t care if I’m the only one on the planet ;). In the past, there have been efforts getting these together at small scale – e.g. the introduction of Groovy (Web)Scripting.
Here is a short demo video of the Alfresco Share Grails Plugin:
If you would like to try it, out follow the steps below:
# Make sure you have grails 2.0.x installed and
# an alfresco repository ready to serve at
grails create-app gshare
# add mavenRepo "http://vcs.contentreich.de/m2"
# to grails-app/conf/BuildConfig.groovy
grails install-plugin alfresco-share 0.1
grails -Dserver.port=9080 run-app
# You are in the business now ;)
# Share is at http://localhost:9080/page
Where to go next
As the plugin code is standing there now, it almost required no tweaking to Alfresco code at all. The library-dependency situation should stay stable for a little while, so I hope overall maintainance effort is minimal. That is fairly important to me.
So Grails and Alfresco Share can be squeezed into one webapplication. I would be interested to know whether that can be done with the repo as well. ;)
Seriously, I have to say I’m not quite sure yet where to go from here – suggestions welcome.
Update: Jira issue with fix created