yahoo / CMAK

CMAK is a tool for managing Apache Kafka clusters
Apache License 2.0
11.84k stars 2.5k forks source link

Compilation fails #809

Open supermarille opened 4 years ago

supermarille commented 4 years ago

I'm using arch linux and the compilation fails with this log:

[info] Loading settings for project cmak-3-0-0-4-build from plugins.sbt ...
[info] Loading project definition from /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/project
[warn] insecure HTTP request is deprecated 'Patterns(ivyPatterns=Vector(http://dl.bintray.com/content/sbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=Vector(http://dl.bintray.com/content/sbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false)'; switch to HTTPS or opt-in as Resolver.url("bintray-sbt-plugin-releases", url(...)).withAllowInsecureProtocol(true)
[warn] insecure HTTP request is deprecated 'Patterns(ivyPatterns=Vector(http://dl.bintray.com/content/sbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=Vector(http://dl.bintray.com/content/sbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false)'; switch to HTTPS or opt-in as Resolver.url("bintray-sbt-plugin-releases", url(...)).withAllowInsecureProtocol(true)
[warn] insecure HTTP request is deprecated 'http://repo.typesafe.com/typesafe/releases/'; switch to HTTPS or opt-in as ("Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/").withAllowInsecureProtocol(true)
[warn] insecure HTTP request is deprecated 'http://repo.typesafe.com/typesafe/releases/'; switch to HTTPS or opt-in as ("Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/").withAllowInsecureProtocol(true)
[warn] insecure HTTP request is deprecated 'Patterns(ivyPatterns=Vector(http://dl.bintray.com/content/sbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=Vector(http://dl.bintray.com/content/sbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false)'; switch to HTTPS or opt-in as Resolver.url("bintray-sbt-plugin-releases", url(...)).withAllowInsecureProtocol(true)
[warn] insecure HTTP request is deprecated 'http://repo.typesafe.com/typesafe/releases/'; switch to HTTPS or opt-in as ("Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/").withAllowInsecureProtocol(true)
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Loading settings for project root from build.sbt ...
[info] Set current project to cmak (in build file:/home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/)
[success] Total time: 0 s, completed 28 oct. 2020 10:40:51
[warn] insecure HTTP request is deprecated 'Patterns(ivyPatterns=Vector(http://dl.bintray.com/content/sbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), artifactPatterns=Vector(http://dl.bintray.com/content/sbt/sbt-plugin-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)([branch]/)[revision]/[type]s/[artifact](-[classifier]).[ext]), isMavenCompatible=false, descriptorOptional=false, skipConsistencyCheck=false)'; switch to HTTPS or opt-in as Resolver.url("bintray-sbt-plugin-releases", url(...)).withAllowInsecureProtocol(true)
[warn] insecure HTTP request is deprecated 'http://repo.typesafe.com/typesafe/releases/'; switch to HTTPS or opt-in as ("Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/").withAllowInsecureProtocol(true)
[info] Wrote /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/target/scala-2.12/cmak_2.12-3.0.0.4.pom
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Main Scala API documentation to /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/target/scala-2.12/api...
[info] Compiling 136 Scala sources and 2 Java sources to /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/target/scala-2.12/classes ...
[info] LESS compiling on 1 source(s)
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/actor/cluster/KafkaStateActor.scala:115:29: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]       cp => props.putAll(cp.asMap)
[error]                             ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/actor/cluster/KafkaStateActor.scala:275:29: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]       cp => props.putAll(cp.asMap)
[error]                             ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/actor/cluster/KafkaStateActor.scala:115:29: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]       cp => props.putAll(cp.asMap)
[error]                             ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/actor/cluster/KafkaStateActor.scala:275:29: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]       cp => props.putAll(cp.asMap)
[error]                             ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/logkafka81/LogConfig.scala:177:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/logkafka82/LogConfig.scala:177:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/logkafka81/LogConfig.scala:177:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/logkafka82/LogConfig.scala:177:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero10/LogConfig.scala:312:39: type mismatch;
[error]  found   : java.util.Map[_$5,_$6] where type _$6, type _$5
[error]  required: java.util.Map[_ <: Object, _ <: Object]
[error]     props.putAll(defaults.asInstanceOf[java.util.Map[_,_]])
[error]                                       ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero10/LogConfig.scala:313:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero11/LogConfig.scala:272:39: type mismatch;
[error]  found   : java.util.Map[_$5,_$6] where type _$6, type _$5
[error]  required: java.util.Map[_ <: Object, _ <: Object]
[error]     props.putAll(defaults.asInstanceOf[java.util.Map[_, _]])
[error]                                       ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero11/LogConfig.scala:273:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero81/LogConfig.scala:118:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero82/LogConfig.scala:184:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero90/LogConfig.scala:176:39: type mismatch;
[error]  found   : java.util.Map[_$5,_$6] where type _$6, type _$5
[error]  required: java.util.Map[_ <: Object, _ <: Object]
[error]     props.putAll(defaults.asInstanceOf[java.util.Map[_, _]])
[error]                                       ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero90/LogConfig.scala:177:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero10/LogConfig.scala:312:39: type mismatch;
[error]  found   : java.util.Map[_$5,_$6] where type _$6, type _$5
[error]  required: java.util.Map[_ <: Object, _ <: Object]
[error]     props.putAll(defaults.asInstanceOf[java.util.Map[_,_]])
[error]                                       ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero10/LogConfig.scala:313:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero11/LogConfig.scala:272:39: type mismatch;
[error]  found   : java.util.Map[_$5,_$6] where type _$6, type _$5
[error]  required: java.util.Map[_ <: Object, _ <: Object]
[error]     props.putAll(defaults.asInstanceOf[java.util.Map[_, _]])
[error]                                       ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero11/LogConfig.scala:273:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero81/LogConfig.scala:118:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero82/LogConfig.scala:184:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero90/LogConfig.scala:176:39: type mismatch;
[error]  found   : java.util.Map[_$5,_$6] where type _$6, type _$5
[error]  required: java.util.Map[_ <: Object, _ <: Object]
[error]     props.putAll(defaults.asInstanceOf[java.util.Map[_, _]])
[error]                                       ^
[error] /home/marie/.cache/yay/kafka-manager/src/CMAK-3.0.0.4/app/kafka/manager/utils/zero90/LogConfig.scala:177:28: type mismatch;
[error]  found   : java.util.Map[_$1,_$2] where type _$2, type _$1
[error]  required: java.util.Map[? <: Object, ? <: Object]
[error] Note: _$1 >: ? <: Object, but Java-defined trait Map is invariant in type K.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error] Note: _$2 >: ? <: Object, but Java-defined trait Map is invariant in type V.
[error] You may wish to investigate a wildcard type such as `_ >: ? <: Object`. (SLS 3.2.10)
[error]     props.putAll(overrides.asMap)
[error]                            ^
[error] 12 errors found
[info] No documentation generated with unsuccessful compiler run
[error] 12 errors found
[error] (Compile / compileIncremental) Compilation failed
[error] (Compile / doc) Scaladoc generation failed
[error] Total time: 18 s, completed 28 oct. 2020 10:41:09

Any idea how to fix this ?

hiralsp commented 4 years ago

Did you try using the compiled binary here: https://github.com/yahoo/CMAK/releases/tag/3.0.0.5 ?

doddys commented 3 years ago

I believe you need to use Java 11 to compile starting from v3

jiansenzheng commented 2 years ago

the compiled binary works for me, thanks a lot!

pranavbhole commented 2 years ago

we have added the build screwdriver pipeline that will run with every PR.