The "eclipse" task will add the "src/main/resources" folder to eclipse project build/classpath which causes the Eclipse compiler to try to treat this folder as a java source location that causes multiple problems.
We need to configure the eclipse task to remove these folders from Eclipse project classpath