I have a project with scala and java. For scala compilation scala-maven-plugin is used.
So during the build there are some messages like that:
[INFO] --- scala-maven-plugin:3.1.6:testCompile (scala-test-compile) @ project_name ---
...
[ERROR] Nothing <: com.some.SomeType?
[INFO] true
...
What does it mean? The source of scala class is below:
package com.some
package object model {
type SomeType = List[String]
object SomeType {
def apply(msg: String): SomeType = List(msg)
}
type SecondType[I] = AnyRef {
def id: I
def version: Long
}
type AnotherSecondType = SecondType[Another] {
def id: Another
def version: Long
}
}
P.S. Also, there are other such message pairs for other scala classes.
UPDATED Maven build completes successfull, but I have these messages in the log.