Reputation: 23
I don't know what exactly happened, but since today I am struggling to build the maven package I got an error I am struggling with.
When running:
mvn package
or
mvn install
I get the following error:
[INFO] 'compiler-interface' not yet compiled for Scala 2.10.4. Compiling...
error: error while loading package, Missing dependency 'object java.lang.Object in compiler mirror',
required by /.m2/repository/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.jar(scala/package.class)
error: error while loading package, Missing dependency 'object java.lang.Object in compiler mirror',
required by /.m2/repository/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.jar(scala/runtime/package.class)
error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found.
I have checked and the folder exists.
I have renamed the folder 2.10.4 and re-downloaded the dependencies from maven to get them new.
I still run in to this error and I don't know why or what to do, any suggestion?
Upvotes: 1
Views: 2103
Reputation: 23
For some reason my java version upgraded and was not compatible with the scala version I used.
Upvotes: 1