UberJar upgrade issues - AEM 6.5 (SP - 6.5.12)
Hi all,
I am having issues upgrading to UberJar version from 6.4.0 to 6.5.12. Please allow me to explain the context behind this upgrade.
Part 1
I am trying to achieve clearing cache on the dispatchers through an event handler that would look for 'Activate' events and perform 'Invalidate' Distribution request supported from Sling Content Distribution methods (SCD)

During this process, I found out while creating an object of the SimpleDistributionRequest class requires member Invalidate from enum DistributionRequestType. This member is not present in the UberJar version 6.4.0.

Part 2
Did some research and found out the UberJar version needs to match the AEM version as well.
I made changes to project POM file to 6.5.12 which is according to version installed for me. Below is the first set of errors that cropped up on the build.

On some more research, found that after some version, maven had blocked use of resources from http URLs for security reasons. They have explained the same in their release notes below. My version is 3.8.5.
Maven – Release Notes – Maven 3.8.1 (apache.org)
Followed instructions mentioned in the above notes and created a mirror with blocked as false in users/m.2/settings.xml file. Posting a link below to understand even more about how I found to counter this.
Changes that I made in the m.2 settings file,

Got the secure maven repository URL from their site.
Post which I got the below errors,

Turns out these (Nexus and others) repositories are mentioned right where I created a mirror block in my settings file. Did some research and sources mentioned to remove those. Also, when accessing these links on a browser it says cannot reach. Removed them and got something else,

I am deep into this but stuck here. Apologies for the huge post but I just wanted to put up all that I found/tried to solve this. Thanks for reading this, any help is highly appreciated!!
Regards,
Kashyap