The classnames generated from the build system can be too long.
Creating too long filenames in some encrypted filesystems is not possible, including encfs which is what Ubuntu uses.
This the same as this Spark issue
The workaround (taken from the linked issue) is to add in Maven under the compile options:
And in SBT add: