2012-05-17 4 views
6

に2.1-SNAPSHOTベースのアプリケーションを再生する展開:私はローカル罰金実行されますが、私はHerokuのに展開しようとすると、私は次のエラーを取得するプレイ2.1-SNAPSHOTベースのアプリケーション持ってHerokuの

[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] ::   UNRESOLVED DEPENDENCIES   :: 
    [warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] :: play#sbt-plugin;2.1-SNAPSHOT: not found 
    [warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] 
    [warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested 

attributes.

マイplugins.sbtを2.1-SNAPSHOTの依存関係を含むローカルリポジトリへのファイルのポイント:

resolvers ++= Seq( 
    "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/", 
    Resolver.file("My Repository", file("repository/local")) 
) 

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

ディレクトリ「リポジトリ/ローカルは、」私のGITリポジトリにチェックされています。これは、Herokuの上のSBTは、私は次の警告を参照してください「未解決の依存関係」のエラー以前からローカルリポジトリに見ているように見えるん:

[warn] ==== Typesafe repository: tried 
    [warn] http://repo.typesafe.com/typesafe/releases/play/sbt-plugin_2.9.1_0.11.2/2.1-SNAPSHOT/sbt-plugin-2.1-SNAPSHOT.pom 
    [warn] ==== My Repository: tried 
    [warn] ==== heroku-sbt-typesafe: tried 
    [warn] ==== heroku-central: tried 

コマンド「遊戯ステージ」を実行すると、ローカルで正常に終了します。

+0

別のアプローチは、ローカルファイルリポジトリを使用する代わりにCloudBees CIスナップショットリポジトリを追加することです。 –

答えて

6

問題が見つかりました。私はこのようなファイルリゾルバの後に「Resolver.ivyStylePatterns」を追加することにより、アイビーのリポジトリとして「マイ・リポジトリ」を宣言するために必要な:

Resolver.file("My Repository", file("repository/local/"))(Resolver.ivyStylePatterns) 
8

代替は、あなたがしたい場合は、プラグインのリゾルバとしてタイプセーフivy-snapshotsリポジトリを追加することですローカルのファイルリポジトリを使用しないことをお勧めします。

プロジェクトで

/plugins.sbt

resolvers += Resolver.url("Typesafe Ivy Snapshots", url("http://repo.typesafe.com/typesafe/ivy-snapshots/"))(Resolver.ivyStylePatterns) 
0

http://repo.typesafe.com/typesafe/ivy-snapshots/はもはや有効と思われるが、以下の構成が私の作品:あなたのplugins.sbtで

//play sbt-plugin snapshot 

resolvers += Resolver.url("Typesafe Simple Snapshots", url("https://repo.typesafe.com/typesafe/simple/snapshots/"))(Resolver.ivyStylePatterns) 

//play snapshot 

resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/" 

// The Play plugin 

addSbtPlugin("com.typesafe.play" %% "sbt-plugin" % "2.4-SNAPSHOT") 

in build.sbt

//play snapshot 

resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/" 
関連する問題

 関連する問題