Updated to work with Alfresco SDK 3 and Alfresco community 5.2
mvn clean install
for generate the amp packages, after that use the alfresco offical tool for the installation on the alfresco.war and share.war or the following command with the assembly plugin
mvn clean source:jar install package assembly:single
All right of these code belong to rouxemmanuel.