2013-04-28 4 views
5

私は5ヶ月前に私が放棄した私のプレーフレームワークプロジェクトに取り掛かりたいと考えていましたが、プロジェクトはまだバージョン2.0.4で、2.1.1が最新バージョンこのチュートリアルでプロジェクトを更新しました:http://www.playframework.com/documentation/2.1.1/Migration。 (代わりに、現在のバージョンと一致する(%「SBT-プラグイン」%「2.1.1」を「再生」)addSbtPluginを行うため除く)プレイフレームワークを2.1.1に移行すると私に頭痛を与えます

しかし、すぐに、私はきれいなプレーやろうとして、私はこのエラーを取得する:

[error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected. 
[error] Note that conflicts were resolved for some dependencies: 
[error]  asm:asm 
[error]  asm:asm-tree 
[error]  asm:asm-util 
[error]  jline:jline 
[error]  junit:junit 
[error]  com.jcraft:jsch 
[error]  commons-logging:commons-logging 
[error]  commons-codec:commons-codec 
[error] Use 'last' for the full log. 
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? 

私はこのlink以外のトピックについてはほとんど見つけられませんが、問題を修正したのは明らかではありません。また、移行チュートリアルですべてのサンプルの依存関係を追加しようとしましたが、それは何も変わりませんでした。

これは解決できますか、それとも2.0.4に戻す必要がありますか?

EDIT 1-5-12' 追加設定ファイル、私は

Build.scala

import sbt._ 
import Keys._ 
import play.Project._ 

object ApplicationBuild extends Build { 

    val appName   = "Workshop0182Host" 
    val appVersion  = "1.0-SNAPSHOT" 

    val appDependencies = Seq(
     // Add your project dependencies here, 
    ) 

    val main = play.Project(appName, appVersion, appDependencies).settings(
     // Add your own project settings here  
    ) 

} 

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.1.1") 

考えるordinairyのうち何もありませんbuild.properties

sbt.version=0.12.2 

私はaddSbtPlugin("play" % "sbt-plugin" % "2.1.0")を実行しようとしましたが、play cleanは、間違ったバージョンを使用しています。クリーンすべての罰金走ったけど、何も1-5-12' を追加しましたログここで

その後EDITを変更しないプレーすることは、私が実行しようとエラーログへのリンク(pastebin)であるplay cleanまたはplay run私は問題がスケーラ版と関係があると思うが、そこからどこに行くのか分からない。

+0

にgithubのレポ

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

から引き出されたプロジェクトで作業するために、クリーンなプレー '試してみてくださいそれが役立つかどうかを確認してください。 – maba

+0

'play clean'が失敗した場合、' target'フォルダを削除しました。同じ効果があります。 –

+0

カスタムsbtプラグインを使用していますか? –

答えて

4

私は同じ問題を抱えていました。それはすべてバージョンを変えてバージョンを再生します。だから、project/build.propertiesにあなたは

play clean 
play ~run 

は2.0.4バージョンでゼロから新しいプロジェクトを作成し、どのような方法では2.1.0

に移行するようにしてください、その後sbt.version=0.12.2project/plugins.sbtaddSbtPlugin("play" % "sbt-plugin" % "2.1.0")にしておく必要があり、それは次のようになりますあなたの設定ファイルを見てうれしい。

+0

だから私はplay 2.1.1を使用していますが、私はplugins.sbtで2.1.0を使用する必要がありますか? – Tim

+0

正確には、あなたはsbt-plugin 2.1.0を使用する必要があります – arussinov

+0

次に私はこれを取得します:このプロジェクトは、プレイ2.1.0を使用しています! Play sbt-pluginのバージョンを2.1.1にアップデートしてください(通常はproject/plugins.sbtにあります) – Tim

0

私は、プロジェクトを変更しなければならなかった同様の問題があった/ plugins.sbt

// Use the Play sbt plugin for Play projects 
    addSbtPlugin("play" % "sbt-plugin" % "2.1.0") 
関連する問題