Thank you team. I had not got the pom file that was being talked about. I finally got it .The build was successful after removing code from the pom file as indicated in the thread.
You can also checkout @dkayiwa 's comments on your pr https://github.com/openmrs/openmrs-module-registrationapp/pull/87#issuecomment-706009972
Thanks @herbert24