2011-07-16 4 views
7

私はAssembla Lift wikisbt 0.10ための手順に従い、次のエラーを取得しています:リフトはsbtでビルドされませんか?

http://siasia.github.com/maven2 

http://mpeltonen.github.com/maven/ 

存在しません:?両方のページがあるため、おそらく

[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: UNRESOLVED DEPENDENCIES :: 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] :: com.github.mpeltonen#sbt-idea_2.8.1;0.10.0-SNAPSHOT: not found 
[warn] :: com.github.siasia#xsbt-web-plugin_2.8.1;0.10.1: not found 
[warn] :::::::::::::::::::::::::::::::::::::::::::::: 
[info] 

マイbuild.sbt

name := "MyWeb" 

scalaVersion := "2.9.0" 

seq(WebPlugin.webSettings: _*) 

resolvers += "Web plugin repo" at "http://siasia.github.com/maven2" 
resolvers += "Web plugin repo2" at "http://mpeltonen.github.com/maven/" 


libraryDependencies ++= { 

    val liftVersion = "2.4-M1" 

    Seq(
    "net.liftweb" %% "lift-webkit" % liftVersion % "compile->default", 
    "net.liftweb" %% "lift-mapper" % liftVersion % "compile->default", 
    "net.liftweb" %% "lift-wizard" % liftVersion % "compile->default" 
) 

} 

libraryDependencies ++= Seq(
    "junit" % "junit" % "4.5" % "test->default", 
    "org.mortbay.jetty" % "jetty" % "6.1.22" % "jetty", 
    "javax.servlet" % "servlet-api" % "2.5" % "provided->default", 
    "com.h2database" % "h2" % "1.2.138", 
    "ch.qos.logback" % "logback-classic" % "0.9.26" % "compile->default" 
) 

とプラグイン/ build.sbt:

resolvers += "Web plugin repo" at "http://siasia.github.com/maven2" 

libraryDependencies <+= sbtVersion("com.github.siasia" %% "xsbt-web-plugin" % _) 

は私が間違って何をしているのですか?

答えて

13

このリンクは役立ちます。

https://github.com/siasia/xsbt-web-plugin

resolvers ++= Seq(
    "Web plugin repo" at "http://siasia.github.com/maven2", 
    Resolver.url("Typesafe repository", new java.net.URL("http://typesafe.artifactoryonline.com/typesafe/ivy-releases/"))(Resolver.defaultIvyPatterns) 
) 

//Following means libraryDependencies += "com.github.siasia" %% "xsbt-web-plugin" % "0.1.0-<sbt version>"" 
libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-web-plugin" % ("0.1.0-"+v)) 

以下のようなプロジェクト/プラグイン/ build.sbtの内容を交換し、プロジェクトのルートのbuild.sbtでseq(webSettings :_*)

+0

seq(WebPlugin.webSettings: _*)を置き換えるこれは本当に助け – axaluss

+0

を助けたまさにでした私を出す。私は既存のテストをコンパイルしようとする問題に遭遇しました。 '' org.mortbay.jetty "%" jetty "%" 6.1.22 "%" jetty、test "'に変更し、 '' org.scala-tools.testing "%" specs_2.9.0を追加する必要がありました"%" 1.6.8 "%" test "'と同様に依存性も – Dylan

+0

なぜ小文字の "seq"ですか? – jpswain

関連する問題