The article you mentioned is tested on 6.4 and should work for you. Community members are using R7 annotations and a Maven Archetype 15. Can you check if you are using the same?
Also, For "com.aem.authen.core.OTPBasedAuthenticationHandler" , check which dependency is failing?