Error shown when creating new Maven project in Eclipse
Delete maven resource plugin jars (delete the whole folder) from this location - {user.home}.m2\repository\org\apache\maven\plugins\maven-resources-plugin and then try to rebuild again.
The following steps worked for me:
- Close Eclipse.
- Navigate to user home directory. (For example: "C:\Users\YourUserName\.m2")
- Delete the "repository" folder.
- Re-open Eclipse.
- Click on the Maven project that has an issue and go to "Project" --> "Clean".
- Right-click on the project and go to "Maven" --> "Update Project...".
- Close Eclipse.
- Open Eclipse.
- Click on the project folder in the "Project Explorer" window (usually on the left).
- Hit the F5 key a few times to Refresh your project.
- Done!
These steps worked for me. If this works for you make sure to upvote, otherwise drop a comment.