Java Play 2 - 编译错误 - > Heroku的 [英] Java Play 2 - Compile error -> Heroku
本文介绍了Java Play 2 - 编译错误 - > Heroku的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做了一些谷歌搜索没有任何成功。我也试图改变sbt的版本。它也运行得很好,
播放运行
我正在使用Play 2.0.2。
任何解决方案?
[info]从/ tmp / build
[warn]模块未找到:play#sbt-plugin; 2.0
[warn] ==== typesafe-ivy-releases:试过
[warn] http:// repo.typesafe.com/typesafe/ivy-re
.9.1 / sbt_0.11.3 / 2.0 / ivys / ivy.xml
[warn] ==== local:尝试
[warn] /tmp/build_2gxtp2n2ct352/.sbt_home/.ivy2
.9.1 / sbt_0.11.3 / 2.0 / ivys / ivy.xml
[warn] ==== Typesafe存储库:尝试
[warn] http://repo.typesafe.com/typesafe/releas
3 / 2.0 / sbt-plugin-2.0.pom
[warn] ==== heroku-sbt-typesafe:试过
[警告] ==== heroku-central:试过
[警告] http://s3pository.heroku.com/maven-centr
3 / 2.0 / sbt-plugin-2.0.pom
[warn] ==== typesafe:试过
[警告] http://repo.typesafe.com/typesafe/repo/p
0 / sbt-plugin-2.0.pom
[warn] ==== heroku-sbt-typesafe:试过
[warn] ==== heroku-centra l:尝试
[警告] http://s3pository.heroku.com/maven-centr
3 / 2.0 / sbt-plugin-2.0.pom
[warn] ==== typesafe :尝试
[警告] http://repo.typesafe.com/typesafe/repo/p
0 / sbt-plugin-2.0.pom
[警告] :::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::********************************************************************************************警告] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :play#sbt-plugin; 2.0:not found
[warn] :::::::::::::::::::::::::::::::::请注意:某些未解决的依赖项有
这些依赖关系与请求的attrib存在
[warn] play:sbt- plugin:2.0(sbtVersion =
[warn]
[error] {file:/ tmp / build_2gxtp2n2ct352 / project /} d
solveException:未解析的依赖关系:play#sbt-pl
项目加载失败:(r)etry,(q)uit,(l)ast,
构建应用程序与sbt
Heroku推送拒绝,无法编译播放2.0
@ heroku.com:pure-chamber-6292.git
mote rejected] master - > master(pre-receive hook
无法推一些参考文献'git@heroku.com:pure-
解决方案
看起来像 sbt-plugin
的版本号错误,请确保您的 project / plugins.sbt
文件包含:
//注释在初始化期间获取更多信息
logLevel:= Level.Warn
// Typesafe存储库
resolvers + =Typesafe存储库在http://repo.typesafe.com/typesafe/releases/
//使用Play项目的Play sbt插件
addSbtPlugin(播放%sbt-plugin%2.0.2)
I am trying to deploy my app to heroku , but I always get the same error msg and I don't know how to fix it.
I made some google searches without any success. I also tried to change the version of sbt. It also runs perfecly fine with
play run
I am using Play 2.0.2.
Any solutions?
[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-
解决方案
It looks like the version number of the sbt-plugin
is wrong. Make sure that your project/plugins.sbt
file contains:
// 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 - 编译错误 - > Heroku的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文