I had created a share extension project in eclipse using alfresco-amp-archetype and build is also successful. But I am getting a warning " [WARNING] The requested profile "amp-to-war" could not be activated because it does not exist. "
Re: Warning while integrating alfresco with eclipse
Alfresco has intended for SDK 3 to be the official SDK version for Alfresco 5.2, but unfortunately they did not manage to properly release it in time. A beta has been available since middle of last year. As far as I know, SDK 2.2 can generally be made to work with Alfresco 5.2. Personally, I do not use the SDK myself so the experience / list of suggestions is very limited.