The eclipse task does not add all src and testsrc directories to the project path. generateTestJpaMetamodelClasses is not run either.