0

我正在尝试将基于 maven 的 docbook 项目移植到 sbt ......但到目前为止,这是一场噩梦 :-(

给定标准项目目录:

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

...最后 project/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

4

1 回答 1

0

原来的项目似乎不再维护了,它使用了 0.10.0,这对你来说可能已经过时了。

那里有叉子,这是最新的。

但必须自己构建并在本地发布。

顺便说一句ScalaToolsSnapshots 被贬低了。

于 2012-10-27T21:04:15.640 回答