'Failed While Installing JPA 2.1

I am doing a group project on Maven Eclipse, I have forked the repo successfully, cloned the repo, and converted my project to a Maven Project and that worked fine, however when I try to convert my project to a JPA project I get an error message saying that the conversion failed because the installation of JPA 2.1 failed. I have tried selecting Java 17 and Java 16 for my conversion and get the same error either way. The full error from the error message window says: Failed while installing JPA 2.1. Cannot invoke "org.eclipse.core.resources.IContainer.getFullPath()" because the return value of "org.eclipse.jpt.common.core.resource.ProjectResourceLocator.getDefaultLocation()" is null



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source