Scala and Maven… a kinda’ fragile combination
Today i got the following error when trying to compile my scala-project with “mvn compile”:
[ERROR] error: error while loading Function1, class file needed by Function1 is missing.
[INFO] reference value Unit of package scala refers to nonexisting symbol.
[ERROR] one error found
[INFO] ————————————————————————
[ERROR] BUILD ERROR
[INFO] ————————————————————————
[INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
Nothing worked anymore – no compiling, cleaning, testing or anything else concerning scala and maven.
My solution: Delete all scala-folders/files in your Maven Repository (%USER%/.M2), so that maven re-downloads them.
After that, anything worked again for me.
Maven Scala Build Error “error while loading Function1, class file needed by Function1 is missing”
Scala and Maven… a kinda’ fragile combination
Today i got the following error when trying to compile my scala-project with “mvn compile”:
[ERROR] error: error while loading Function1, class file needed by Function1 is missing.
[INFO] reference value Unit of package scala refers to nonexisting symbol.
[ERROR] one error found
[INFO] ————————————————————————
[ERROR] BUILD ERROR
[INFO] ————————————————————————
[INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
Nothing worked anymore – no compiling, cleaning, testing or anything else concerning scala and maven.
My solution: Delete all scala-folders/files in your Maven Repository (%USER%/.M2), so that maven re-downloads them.
After that, anything worked again for me.