Не удалось получить доступ к типу BSONElement в пакете reactivemongo.bson.package

#scala #reactivemongo #play-reactivemongo

#scala #reactivemongo #воспроизведение-reactivemongo

Вопрос:

Привет, я пытаюсь скомпилировать play framework приложение, которое использует reactivemongo драйвер.

./activator compile Отлично работает на моем компьютере разработчика, но выдает следующую ошибку на удаленном компьютере ubuntu. Это build.sbt точно то же самое на обеих машинах.

 summer@nights:/var/jenkins/workspace/myApp$ ./activator compile
    [info] Loading project definition from /home/summer/.sbt/0.13/staging/38ee4fc38fad7d5824e0/myApp/project
    [info] Set current project to myApp (in build file:/var/jenkins/workspace/myApp/)
    [info] Compiling 8 Scala sources and 1 Java source to /home/summer/.sbt/0.13/staging/38ee4fc38fad7d5824e0/myApp/target/scala-2.11/classes...
    [error] missing or invalid dependency detected while loading class file 'LowerImplicitBSONHandlers.class'.
    [error] Could not access type BSONElement in package reactivemongo.bson.package,
    [error] because it (or its dependencies) are missing. Check your build definition for
    [error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
    [error] A full rebuild may help if 'LowerImplicitBSONHandlers.class' was compiled against an incompatible version of reactivemongo.bson.package.
    [error] one error found
    [error] (compile:compileIncremental) Compilation failed
    [error] Total time: 16 s, completed Oct 7, 2016 10:19:29 AM
  

Комментарии:

1. Вы используете разные зависимости ReactiveMongo, версии которых несовместимы. Вы должны обеспечить согласованность ваших dep.

2. Как бы это работало на моей машине разработчика, если сборка. sbt не был изменен?