I accidentally found the following steps to resolve this issue but honestly I still don't know why.
Step 1: Delete the project that met the compile errors in Eclipse, but don't delete it on disk.
Step 2: Open the project (by Windows Explorer if you use Windows) and remove file/folder ".classpath", ".settings" and ".project" .
Step 3: Import the project back into Eclipse.
---^0^---
Maven is a build automation tool used primarily for Java projects.
Eclipse is an integrated development environment (IDE).