Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-8526

Marathon Compilation Error w/ OpenJDK 11

    Details

    • Type: Task
    • Status: Accepted
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Marathon 1.7
    • Fix Version/s: None
    • Component/s: Build & CI
    • Labels:

      Description

      ERROR:
      [warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
      [warn]  * com.google.code.findbugs:jsr305:3.0.0 is selected over 2.0.1
      [warn]      +- com.github.fge:json-schema-validator:2.2.6         (depends on 3.0.0)
      [warn]      +- com.github.fge:btf:1.2                             (depends on 2.0.1)
      [warn]      +- com.github.fge:uri-template:0.9                    (depends on 2.0.1)
      [warn]      +- com.github.fge:json-schema-core:1.2.5              (depends on 2.0.1)
      [warn]      +- com.github.fge:msg-simple:1.1                      (depends on 2.0.1)
      [warn]      +- com.github.fge:jackson-coreutils:1.8               (depends on 2.0.1)
      [warn]  * org.codehaus.plexus:plexus-utils:3.0.17 is selected over {2.1, 1.5.5}
      [warn]      +- org.apache.maven:maven-settings:3.2.2              (depends on 3.0.17)
      [warn]      +- org.apache.maven:maven-repository-metadata:3.2.2   (depends on 3.0.17)
      [warn]      +- org.apache.maven:maven-aether-provider:3.2.2       (depends on 3.0.17)
      [warn]      +- org.apache.maven:maven-model:3.2.2                 (depends on 3.0.17)
      [warn]      +- org.apache.maven:maven-core:3.2.2                  (depends on 3.0.17)
      [warn]      +- org.apache.maven:maven-artifact:3.2.2              (depends on 3.0.17)
      [warn]      +- org.apache.maven:maven-settings-builder:3.2.2      (depends on 3.0.17)
      [warn]      +- org.apache.maven:maven-model-builder:3.2.2         (depends on 3.0.17)
      [warn]      +- org.sonatype.plexus:plexus-sec-dispatcher:1.3      (depends on 1.5.5)
      [warn]      +- org.eclipse.sisu:org.eclipse.sisu.plexus:0.0.0.M5  (depends on 2.1)
      [warn]  * com.google.guava:guava:20.0 is selected over {16.0.1, 18.0, 10.0.1, 16.0}
      [warn]      +- com.spotify:docker-client:8.9.0                    (depends on 20.0)
      [warn]      +- com.fasterxml.jackson.datatype:jackson-datatype-guava:2.8.8 (depends on 16.0)
      [warn]      +- org.eclipse.sisu:org.eclipse.sisu.plexus:0.0.0.M5  (depends on 10.0.1)
      [warn]      +- com.github.fge:uri-template:0.9                    (depends on 16.0.1)
      [warn]      +- org.raml:yagi:1.0.3                                (depends on 16.0.1)
      [warn]      +- com.github.fge:jackson-coreutils:1.8               (depends on 16.0.1)
      [warn] Run 'evicted' to see detailed eviction warnings
      [info] Compiling 5 Scala sources to /tmp/marathon/project/target/scala-2.12/sbt-1.0/classes ...
      [info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.4. Compiling...
      [info]   Compilation completed in 5.473s.
      [error] /tmp/marathon/project/src/main/scala/com/mesosphere/RamlTypeGenerator.scala:350:38: type mismatch;
      [error]  found   : java.util.stream.Stream[String]
      [error]  required: scala.collection.GenTraversableOnce[?]
      [error]       val lines = comments.flatMap(_.lines)
      [error]                                      ^
      [error] one error found
      [error] (Compile / compileIncremental) Compilation failed
      Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

       

      Dockerfile (to recreate):
      FROM debian:busterWORKDIR /tmpRUN apt-get -qqy update \
      && apt-get install -qqy -f \
      apt-transport-https ca-certificates dirmngr lsb-release gnupg curl git \
      && echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list \
      && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 \
      && apt-get -qqy updateRUN apt-get -qqy install sbtRUN apt-get -qqy install openjdk-11-jdk-headlessRUN git clone --depth=1 WORKDIR" class="external-link" rel="nofollow">https://github.com/mesosphere/marathon.gitWORKDIR /tmp/marathonRUN sbt universal:packageZipTarball

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ken Ken Sipe
                Reporter:
                nmani nmani
                Team:
                Orchestration Team
                Watchers:
                Ken Sipe, nmani
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: