2012-10-27 85 views
0

我想我的端口基於Maven的文檔項目中,以SBT ......但到目前爲止,它是一場噩夢:-(SBT docbook的插件

給出的標準項目目錄:

mydoc 
    + src 
    | + docbook 
    |  + main.xml 
    |  + chapter1.xml 
    |  + chapter2.xml 
    + project 
    | + plugins.sbt 
    + build.sbt 

... build.sbt看起來是這樣的:

name := "mydoc" 

version := "1.0" 

scalaVersion := "2.9.2" 

docBookHtmlStyleSheet in DocBook := "http://mywebside.com/docbook/xhtml/docbook.xsl 

docBookXslFoStyleSheet in DocBook := "http://mywebside.com/docbook/fo/docbook.xsl 

...終於項目/ plugins.sbt看起來是這樣的:

resolvers += ScalaToolsSnapshots 

addSbtPlugin("de.undercouch" % "sbt-docbook-plugin" % "0.2-SNAPSHOT") 

......我一直得到以下錯誤:

[warn]  :::::::::::::::::::::::::::::::::::::::::::::: 
[warn]  ::   UNRESOLVED DEPENDENCIES   :: 
[warn]  :::::::::::::::::::::::::::::::::::::::::::::: 
[warn]  :: de.undercouch#sbt-docbook-plugin;0.2-SNAPSHOT: not found 
[warn]  :::::::::::::::::::::::::::::::::::::::::::::: 
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes. 
[warn]    de.undercouch:sbt-docbook-plugin:0.2-SNAPSHOT (sbtVersion=0.11.3, scalaVersion=2.9.1) 
[warn] 
[error] {file:/home/j3d/Projects/home/technotes_sbt/csharp-coding-guideliens/src/project/}default-3b0f83/*:update: sbt.ResolveException: unresolved dependency: de.undercouch#sbt-docbook-plugin;0.2-SNAPSHOT: not found 
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? 

任何想法?任何幫助將非常感激。我會進一步嘗試,然後我會放棄。

感謝, J3D

回答