资源下载播放2 - 编译错误 - >的Heroku(Java Play 2 - Compil

2019-09-21 03:07发布

我想我的应用程序部署到Heroku的,但我总是得到同样的错误味精,我不知道如何解决它。

我做了一些谷歌搜索没有任何成功。 我也试图改变SBT的版本。 但同时也要向perfecly罚款

play run

我使用的播放2.0.2。

任何解决方案?

[info] Loading project definition from /tmp/build
     [warn]   module not found: play#sbt-plugin;2.0
     [warn] ==== typesafe-ivy-releases: tried
     [warn]   http://repo.typesafe.com/typesafe/ivy-re
    .9.1/sbt_0.11.3/2.0/ivys/ivy.xml
     [warn] ==== local: tried
     [warn]   /tmp/build_2gxtp2n2ct352/.sbt_home/.ivy2
    .9.1/sbt_0.11.3/2.0/ivys/ivy.xml
     [warn] ==== Typesafe repository: tried
     [warn]   http://repo.typesafe.com/typesafe/releas
    3/2.0/sbt-plugin-2.0.pom
     [warn] ==== heroku-sbt-typesafe: tried
     [warn] ==== heroku-central: tried
     [warn]   http://s3pository.heroku.com/maven-centr
    3/2.0/sbt-plugin-2.0.pom
     [warn] ==== typesafe: tried
     [warn]   http://repo.typesafe.com/typesafe/repo/p
    0/sbt-plugin-2.0.pom
     [warn] ==== heroku-sbt-typesafe: tried
     [warn] ==== heroku-central: tried
     [warn]   http://s3pository.heroku.com/maven-centr
    3/2.0/sbt-plugin-2.0.pom
     [warn] ==== typesafe: tried
     [warn]   http://repo.typesafe.com/typesafe/repo/p
    0/sbt-plugin-2.0.pom
     [warn]   ::::::::::::::::::::::::::::::::::::::::
     [warn]   ::          UNRESOLVED DEPENDENCIES
     [warn]   ::::::::::::::::::::::::::::::::::::::::
     [warn]   :: play#sbt-plugin;2.0: not found
     [warn]   ::::::::::::::::::::::::::::::::::::::::
     [warn]
     [warn]   Note: Some unresolved dependencies have
    these dependencies exist with the requested attrib
     [warn]           play:sbt-plugin:2.0 (sbtVersion=

     [warn]
     [error] {file:/tmp/build_2gxtp2n2ct352/project/}d
    solveException: unresolved dependency: play#sbt-pl
     Project loading failed: (r)etry, (q)uit, (l)ast,
    build app with sbt
     Heroku push rejected, failed to compile Play 2.0

    @heroku.com:pure-chamber-6292.git
    mote rejected] master -> master (pre-receive hook
     failed to push some refs to 'git@heroku.com:pure-

Answer 1:

它看起来像的版本号sbt-plugin是错误的。 请确保您的project/plugins.sbt文件包括:

// Comment to get more information during initialization
logLevel := Level.Warn

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.0.2")


文章来源: Java Play 2 - Compile error -> Heroku