I tried invalidating caches, but It didnt fix the problem.
I wonder if Maven isnt properly installed.
Any troubleshooting thread it talked about deleting the maven-deploy-plugin folder, yet in my root folder for m2 theres no folders for maven, so it could be that.
But I also cant really find any case of this happening googling so im not sure if an incomplete install even is possible.
Edit: I fully manually reinstalled Maven and that seems to not have been the problem. I wish I knew what was causing this.