Best thing is create a new project from latest AEM maven archetype and start copy pasting code as needed from the integration post along with pom dependencies..
If you want to upgrade, start comparing dependencies version from newly created project vs the post
Ex: uberjar which is 6.3.0 in that post, to run on 6.5 you need 6.5.0 or more etc..